@@ -54,7 +54,7 @@ |
||
54 | 54 | } |
55 | 55 | |
56 | 56 | $injector = new Injector(new Factory()); |
57 | - $instance = $injector->injectConstructor($this->getClass($parameter), $properties, function () { |
|
57 | + $instance = $injector->injectConstructor($this->getClass($parameter), $properties, function() { |
|
58 | 58 | return false; |
59 | 59 | }); |
60 | 60 |
@@ -24,7 +24,7 @@ |
||
24 | 24 | |
25 | 25 | /** |
26 | 26 | * @param array $value |
27 | - * @return mixed |
|
27 | + * @return string |
|
28 | 28 | */ |
29 | 29 | public function render($value) { |
30 | 30 | $items = []; |
@@ -74,7 +74,7 @@ |
||
74 | 74 | * @throws \Exception |
75 | 75 | */ |
76 | 76 | public function parameters() { |
77 | - return array_map(function (Parameter $parameter) { |
|
77 | + return array_map(function(Parameter $parameter) { |
|
78 | 78 | if (array_key_exists($parameter->getName(), $this->paramMap)) { |
79 | 79 | return call_user_func($this->paramMap[$parameter->getName()], $parameter); |
80 | 80 | } |
@@ -19,10 +19,10 @@ |
||
19 | 19 | ->setCaption(parent::caption()) |
20 | 20 | ->setDescription(parent::description()) |
21 | 21 | ->setParameters(parent::parameters()) |
22 | - ->setExecute(function ($parameters) { |
|
22 | + ->setExecute(function($parameters) { |
|
23 | 23 | return parent::execute($parameters); |
24 | 24 | }) |
25 | - ->setFill(function ($parameters) { |
|
25 | + ->setFill(function($parameters) { |
|
26 | 26 | return $parameters; |
27 | 27 | }); |
28 | 28 | } |
@@ -19,10 +19,10 @@ |
||
19 | 19 | ->setCaption(parent::caption()) |
20 | 20 | ->setDescription(parent::description()) |
21 | 21 | ->setParameters(parent::parameters()) |
22 | - ->setExecute(function ($parameters) { |
|
22 | + ->setExecute(function($parameters) { |
|
23 | 23 | return parent::execute($parameters); |
24 | 24 | }) |
25 | - ->setFill(function ($parameters) { |
|
25 | + ->setFill(function($parameters) { |
|
26 | 26 | return $parameters; |
27 | 27 | }); |
28 | 28 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | $actions = $this->actions; |
17 | 17 | |
18 | 18 | if ($this->access) { |
19 | - $actions = array_filter($actions, function ($id) { |
|
19 | + $actions = array_filter($actions, function($id) { |
|
20 | 20 | return $this->access->isVisible($id); |
21 | 21 | }, ARRAY_FILTER_USE_KEY); |
22 | 22 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * @return callable The factory to build a WebAccessControl |
32 | 32 | */ |
33 | 33 | public static function factory(AccessControl $access, callable $acquire = null) { |
34 | - return function (WebRequest $request) use ($access, $acquire) { |
|
34 | + return function(WebRequest $request) use ($access, $acquire) { |
|
35 | 35 | return new WebAccessControl($access, $request, $acquire); |
36 | 36 | }; |
37 | 37 | } |