@@ -62,7 +62,7 @@ |
||
| 62 | 62 | // unique validator |
| 63 | 63 | $this->addValidator( |
| 64 | 64 | 'key', |
| 65 | - v::callback(function () { |
|
| 65 | + v::callback(function() { |
|
| 66 | 66 | return !$this->getTable()->findRowWhere(['key' => $this->key, 'namespace' => $this->namespace]); |
| 67 | 67 | })->setError('Key name "{{input}}" already exists') |
| 68 | 68 | ); |
@@ -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 | */ |
@@ -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 | */ |
@@ -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 | |