| @@ -162,7 +162,7 @@ | ||
| 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() { | 
| @@ -35,7 +35,7 @@ | ||
| 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 | } | 
| @@ -32,14 +32,14 @@ | ||
| 32 | 32 | /** @var ControllerCollection $controller */ | 
| 33 | 33 | $controller = $app['controllers_factory']; | 
| 34 | 34 | |
| 35 | -        $controller->get('/{action?}', function (Request $request, $action = null) { | |
| 36 | -            return $this->respond($request, function (BreadCrumbsTrail $crumbs, ParameterReader $reader) use ($action, $request) { | |
| 35 | +        $controller->get('/{action?}', function(Request $request, $action = null) { | |
| 36 | +            return $this->respond($request, function(BreadCrumbsTrail $crumbs, ParameterReader $reader) use ($action, $request) { | |
| 37 | 37 | $execution = new ExecutionResource($this->domin, $reader, $crumbs); | 
| 38 | 38 | return $execution->handleGet($action, $request->get(ExecutionResource::TOKEN_ARG)); | 
| 39 | 39 | }); | 
| 40 | 40 | }); | 
| 41 | -        $controller->post('/{action}', function (Request $request, $action) { | |
| 42 | -            return $this->respond($request, function (BreadCrumbsTrail $crumbs, ParameterReader $reader) use ($action, $request) { | |
| 41 | +        $controller->post('/{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->handlePost($action, $request->get(ExecutionResource::TOKEN_ARG)); | 
| 45 | 45 | }); |