@@ -21,7 +21,7 @@ |
||
| 21 | 21 | { |
| 22 | 22 | $operationKey = ArrayUtils::find($this->permission, $operation); |
| 23 | 23 | |
| 24 | - if($operationKey === false) { |
|
| 24 | + if ($operationKey === false) { |
|
| 25 | 25 | return null; |
| 26 | 26 | } |
| 27 | 27 | |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace App\Controller\Admin; |
| 4 | 4 | |
| 5 | 5 | use Core\Application; |
| 6 | -use Core\Utils\ArrayUtils; |
|
| 7 | 6 | use Core\ViewModel; |
| 8 | 7 | use Prob\ArrayUtil\KeyGlue; |
| 9 | 8 | |
@@ -33,13 +33,13 @@ |
||
| 33 | 33 | /** |
| 34 | 34 | * @var ErrorReporter $reporter |
| 35 | 35 | */ |
| 36 | - set_exception_handler(function ($exception) { |
|
| 36 | + set_exception_handler(function($exception) { |
|
| 37 | 37 | foreach ($this->errorReporters as $reporter) { |
| 38 | 38 | $reporter->report($exception); |
| 39 | 39 | } |
| 40 | 40 | }); |
| 41 | 41 | |
| 42 | - set_error_handler(function ($errno, $errstr, $errfile, $errline, array $errcontext) { |
|
| 42 | + set_error_handler(function($errno, $errstr, $errfile, $errline, array $errcontext) { |
|
| 43 | 43 | throw new ErrorException($errstr, 0, $errno, $errfile, $errline); |
| 44 | 44 | }); |
| 45 | 45 | } |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | { |
| 37 | 37 | $user = $this->getUserEntity($accountId); |
| 38 | 38 | |
| 39 | - if($user === null) { |
|
| 39 | + if ($user === null) { |
|
| 40 | 40 | return null; |
| 41 | 41 | } |
| 42 | 42 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | public function getAccountById($accountId) |
| 36 | 36 | { |
| 37 | - if(isset($this->accounts[$accountId]) === false) { |
|
| 37 | + if (isset($this->accounts[$accountId]) === false) { |
|
| 38 | 38 | return null; |
| 39 | 39 | } |
| 40 | 40 | |