@@ -15,7 +15,7 @@ |
||
15 | 15 | * @privilege Management |
16 | 16 | * @return void |
17 | 17 | */ |
18 | -return function () { |
|
18 | +return function() { |
|
19 | 19 | /** |
20 | 20 | * @var Controller $this |
21 | 21 | */ |
@@ -19,7 +19,7 @@ |
||
19 | 19 | * |
20 | 20 | * @return mixed |
21 | 21 | */ |
22 | -return function () { |
|
22 | +return function() { |
|
23 | 23 | /** |
24 | 24 | * @var Controller $this |
25 | 25 | */ |
@@ -23,7 +23,7 @@ |
||
23 | 23 | * @param array $data |
24 | 24 | * @return array |
25 | 25 | */ |
26 | -return function ($crud, $primary, $data) { |
|
26 | +return function($crud, $primary, $data) { |
|
27 | 27 | try { |
28 | 28 | $crud->createOne($data); |
29 | 29 |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | * @link https://github.com/bluzphp/skeleton |
5 | 5 | */ |
6 | 6 | |
7 | -declare(strict_types=1); |
|
7 | +declare(strict_types = 1); |
|
8 | 8 | |
9 | 9 | namespace Application\Options; |
10 | 10 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | // unique validator |
61 | 61 | $this->addValidator('key') |
62 | 62 | ->callback( |
63 | - function () { |
|
63 | + function() { |
|
64 | 64 | return !$this->getTable()->findRowWhere(['key' => $this->key, 'namespace' => $this->namespace]); |
65 | 65 | }, |
66 | 66 | 'Key name is already exists' |
@@ -4,7 +4,7 @@ |
||
4 | 4 | * @link https://github.com/bluzphp/skeleton |
5 | 5 | */ |
6 | 6 | |
7 | -declare(strict_types=1); |
|
7 | +declare(strict_types = 1); |
|
8 | 8 | |
9 | 9 | namespace Application\Options; |
10 | 10 |
@@ -4,7 +4,7 @@ |
||
4 | 4 | * @link https://github.com/bluzphp/skeleton |
5 | 5 | */ |
6 | 6 | |
7 | -declare(strict_types=1); |
|
7 | +declare(strict_types = 1); |
|
8 | 8 | |
9 | 9 | namespace Application\Options; |
10 | 10 |
@@ -4,7 +4,7 @@ |
||
4 | 4 | * @link https://github.com/bluzphp/skeleton |
5 | 5 | */ |
6 | 6 | |
7 | -declare(strict_types=1); |
|
7 | +declare(strict_types = 1); |
|
8 | 8 | |
9 | 9 | namespace Application\Options; |
10 | 10 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | * |
20 | 20 | * @return mixed |
21 | 21 | */ |
22 | -return function () { |
|
22 | +return function() { |
|
23 | 23 | /** |
24 | 24 | * @var Controller $this |
25 | 25 | */ |