@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | * <https://www.peldax.com>. |
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | -declare(strict_types = 1); |
|
| 13 | +declare(strict_types=1); |
|
| 14 | 14 | |
| 15 | 15 | namespace Nepttune\Component; |
| 16 | 16 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | $data = $this->repository->findRow($rowId)->fetch()->toArray(); |
| 55 | 55 | |
| 56 | 56 | $roles = []; |
| 57 | - foreach($this->userAccessModel->findBy('user_id', $rowId) as $row) |
|
| 57 | + foreach ($this->userAccessModel->findBy('user_id', $rowId) as $row) |
|
| 58 | 58 | { |
| 59 | 59 | $roles[static::formatInput($row->resource)] = true; |
| 60 | 60 | } |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | $values->id = $this->id; |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | - $roles = \array_filter($values->roles, function ($value) {return $value === true;}); |
|
| 93 | + $roles = \array_filter($values->roles, function($value) {return $value === true; }); |
|
| 94 | 94 | |
| 95 | 95 | unset($values->password2, $values->roles); |
| 96 | 96 | $values->registered = new \Nette\Utils\DateTime(); |