Completed
Push — master ( 0bf110...1f7de4 )
by Nikolas
03:30
created
src/delivery/web/resources/ExecutionResource.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
                 'token' => $action->isModifying() && $this->app->token ? [
94 94
                     'name' => self::TOKEN_ARG,
95 95
                     'value' => $this->app->token->generate($actionId)
96
-                ]: null
96
+                ] : null
97 97
             ]);
98 98
     }
99 99
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     }
112 112
 
113 113
     private function assembleBreadCrumbs() {
114
-        return array_map(function (BreadCrumb $crumb) {
114
+        return array_map(function(BreadCrumb $crumb) {
115 115
             return [
116 116
                 'target' => $crumb->getTarget(),
117 117
                 'caption' => $crumb->getCaption()
Please login to merge, or discard this patch.
src/delivery/web/WebApplication.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
     }
163 163
 
164 164
     private function registerDefaultAction() {
165
-        $this->actions->add(self::INDEX_ACTION , new ListActions($this->actions, $this->groups, $this->access, $this->parser));
165
+        $this->actions->add(self::INDEX_ACTION, new ListActions($this->actions, $this->groups, $this->access, $this->parser));
166 166
     }
167 167
 
168 168
     public function prepare() {
Please login to merge, or discard this patch.
src/delivery/web/home/ActionList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 
36 36
     public function getActionsOf($group) {
37 37
         $actions = array_keys($this->groups->getActionsOf($group));
38
-        return array_filter($this->actions, function (ActionListItem $action) use ($actions) {
38
+        return array_filter($this->actions, function(ActionListItem $action) use ($actions) {
39 39
             return in_array($action->getId(), $actions);
40 40
         });
41 41
     }
Please login to merge, or discard this patch.
src/delivery/web/adapters/silex/SilexControllerProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -32,20 +32,20 @@
 block discarded – undo
32 32
         /** @var ControllerCollection $controller */
33 33
         $controller = $app['controllers_factory'];
34 34
 
35
-        $controller->get('/', function (Request $request) {
36
-            return $this->respond($request, function (BreadCrumbsTrail $crumbs, ParameterReader $reader) {
35
+        $controller->get('/', function(Request $request) {
36
+            return $this->respond($request, function(BreadCrumbsTrail $crumbs, ParameterReader $reader) {
37 37
                 $execution = new ExecutionResource($this->domin, $reader, $crumbs);
38 38
                 return $execution->handleGet(null);
39 39
             });
40 40
         });
41
-        $controller->get('/{action}', function (Request $request, $action) {
42
-            return $this->respond($request, function (BreadCrumbsTrail $crumbs, ParameterReader $reader) use ($action, $request) {
41
+        $controller->get('/{action}', function(Request $request, $action) {
42
+            return $this->respond($request, function(BreadCrumbsTrail $crumbs, ParameterReader $reader) use ($action, $request) {
43 43
                 $execution = new ExecutionResource($this->domin, $reader, $crumbs);
44 44
                 return $execution->handleGet($action, $request->get(ExecutionResource::TOKEN_ARG));
45 45
             });
46 46
         });
47
-        $controller->post('/{action}', function (Request $request, $action) {
48
-            return $this->respond($request, function (BreadCrumbsTrail $crumbs, ParameterReader $reader) use ($action, $request) {
47
+        $controller->post('/{action}', function(Request $request, $action) {
48
+            return $this->respond($request, function(BreadCrumbsTrail $crumbs, ParameterReader $reader) use ($action, $request) {
49 49
                 $execution = new ExecutionResource($this->domin, $reader, $crumbs);
50 50
                 return $execution->handlePost($action, $request->get(ExecutionResource::TOKEN_ARG));
51 51
             });
Please login to merge, or discard this patch.