mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 13:33:14 +00:00
Add curly braces
This commit is contained in:
@@ -125,8 +125,10 @@ class Setup_Upgrade
|
||||
*/
|
||||
protected function get_percentage()
|
||||
{
|
||||
if ($this->total_steps === 0)
|
||||
if ($this->total_steps === 0) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
return round(max(min(($this->completed_steps / $this->total_steps), 1), 0), 2);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user