@@ -42,7 +42,7 @@ |
||
| 42 | 42 | 'allow' => true, |
| 43 | 43 | 'actions' => [], // apply to all actions by default |
| 44 | 44 | 'roles' => ['@'], |
| 45 | - 'matchCallback' => function ($rule, $action) { |
|
| 45 | + 'matchCallback' => function($rule, $action) { |
|
| 46 | 46 | // see if a controller property has been defined to disabled the permission checks |
| 47 | 47 | if ($action->controller->disablePermissionCheck) { |
| 48 | 48 | return true; |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | { |
| 89 | 89 | $data = array_filter($this->getDataProvider(), [$this, 'whereFilter']); |
| 90 | 90 | |
| 91 | - return (count($data) !== 0) ? $this->createItem(array_values($data)[0]): false; |
|
| 91 | + return (count($data) !== 0) ? $this->createItem(array_values($data)[0]) : false; |
|
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | /** |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | * Callculate to number of items when using count() function against the QueryIterator object. |
| 24 | 24 | * |
| 25 | 25 | * @return int The number of elements in the object. |
| 26 | - */ |
|
| 26 | + */ |
|
| 27 | 27 | public function count() |
| 28 | 28 | { |
| 29 | 29 | return count($this->data); |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | class PluginTest extends \tests\web\Base |
| 8 | 8 | { |
| 9 | 9 | public $constructors = [ |
| 10 | - 'CheckboxRelation' => ['\\tests\\data\\models\\UserModel', 'a', 'b', 'c', [1,2,3], 'de'], |
|
| 10 | + 'CheckboxRelation' => ['\\tests\\data\\models\\UserModel', 'a', 'b', 'c', [1, 2, 3], 'de'], |
|
| 11 | 11 | 'SelectArray' => [['foo' => 'bar', 'baz' => 'foo'], 'baz'], |
| 12 | 12 | 'SelectClass' => ['\\tests\\data\\models\\UserModel', 'id', 'firstname'], |
| 13 | 13 | 'CheckboxList' => [['foo' => 'Foo', 'bar' => 'Bar']], |