@@ -52,7 +52,9 @@ |
||
| 52 | 52 | public function getLevel($name) |
| 53 | 53 | { |
| 54 | 54 | $levels = $this->getLevels(); |
| 55 | - if (!isset($levels[$name])) throw new \DomainException("Authorization level '$name' isn't defined."); |
|
| 55 | + if (!isset($levels[$name])) { |
|
| 56 | + throw new \DomainException("Authorization level '$name' isn't defined."); |
|
| 57 | + } |
|
| 56 | 58 | |
| 57 | 59 | return $levels[$name]; |
| 58 | 60 | } |
@@ -61,7 +61,9 @@ |
||
| 61 | 61 | */ |
| 62 | 62 | public static function expandGroup($groups) |
| 63 | 63 | { |
| 64 | - if (!is_array($groups)) $groups = (array)$groups; |
|
| 64 | + if (!is_array($groups)) { |
|
| 65 | + $groups = (array)$groups; |
|
| 66 | + } |
|
| 65 | 67 | |
| 66 | 68 | $expanded = $groups; |
| 67 | 69 | |