@@ -148,7 +148,7 @@ |
||
148 | 148 | $query = $this->getFactory()->createUserHasRoleQuery(); |
149 | 149 | |
150 | 150 | $query->filterByFkAclGroup($idGroup) |
151 | - ->filterByFkUser($idUser); |
|
151 | + ->filterByFkUser($idUser); |
|
152 | 152 | |
153 | 153 | return $query; |
154 | 154 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | RouteNameResolverInterface $routeNameResolver |
29 | 29 | ) { |
30 | 30 | $serviceName = 'controller.service.' . str_replace('/', '.', $routeNameResolver->resolve()); |
31 | - $service = function () use ($application, $controllerResolver, $bundleControllerAction) { |
|
31 | + $service = function() use ($application, $controllerResolver, $bundleControllerAction) { |
|
32 | 32 | $controller = $controllerResolver->resolve($bundleControllerAction); |
33 | 33 | $controller->setApplication($application); |
34 | 34 | $controller->initialize(); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | public function register(Application $app) |
24 | 24 | { |
25 | - $app['url_generator'] = $app->share(function ($app) { |
|
25 | + $app['url_generator'] = $app->share(function($app) { |
|
26 | 26 | $app->flush(); |
27 | 27 | |
28 | 28 | return $app['routers']; |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | protected function createRedirectController($path, $name, $redirectPath, $status = 302) |
143 | 143 | { |
144 | 144 | $controller = $this->controllerCollection |
145 | - ->match($path, function () use ($redirectPath, $status) { |
|
145 | + ->match($path, function() use ($redirectPath, $status) { |
|
146 | 146 | return new RedirectResponse($redirectPath, $status); |
147 | 147 | }) |
148 | 148 | ->bind($name); |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | */ |
192 | 192 | private function addJsonParsing(Controller $controller) |
193 | 193 | { |
194 | - $controller->before(function (Request $request) { |
|
194 | + $controller->before(function(Request $request) { |
|
195 | 195 | $isJson = (strpos($request->headers->get('Content-Type'), 'application/json') === 0); |
196 | 196 | if ($isJson) { |
197 | 197 | $data = json_decode($request->getContent(), true); |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | */ |
25 | 25 | public function provideCommunicationLayerDependencies(Container $container) |
26 | 26 | { |
27 | - $container[self::FACADE_USER] = function (Container $container) { |
|
27 | + $container[self::FACADE_USER] = function(Container $container) { |
|
28 | 28 | return new AuthToUserBridge($container->getLocator()->user()->facade()); |
29 | 29 | }; |
30 | 30 | |
@@ -38,15 +38,15 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function provideBusinessLayerDependencies(Container $container) |
40 | 40 | { |
41 | - $container[self::FACADE_USER] = function (Container $container) { |
|
41 | + $container[self::FACADE_USER] = function(Container $container) { |
|
42 | 42 | return new AuthToUserBridge($container->getLocator()->user()->facade()); |
43 | 43 | }; |
44 | 44 | |
45 | - $container[self::PASSWORD_RESET_SENDER] = function (Container $container) { |
|
45 | + $container[self::PASSWORD_RESET_SENDER] = function(Container $container) { |
|
46 | 46 | return $this->getPasswordResetNotificationSender($container); |
47 | 47 | }; |
48 | 48 | |
49 | - $container[self::CLIENT_SESSION] = function (Container $container) { |
|
49 | + $container[self::CLIENT_SESSION] = function(Container $container) { |
|
50 | 50 | return $container->getLocator()->session()->client(); |
51 | 51 | }; |
52 | 52 |
@@ -21,7 +21,7 @@ |
||
21 | 21 | */ |
22 | 22 | public function provideServiceLayerDependencies(Container $container) |
23 | 23 | { |
24 | - $container[self::SERVICE_ZED] = function (Container $container) { |
|
24 | + $container[self::SERVICE_ZED] = function(Container $container) { |
|
25 | 25 | return $container->getLocator()->zedRequest()->client(); |
26 | 26 | }; |
27 | 27 |
@@ -135,7 +135,7 @@ |
||
135 | 135 | |
136 | 136 | $countries = array_filter( |
137 | 137 | array_flip($countries), |
138 | - function ($value) { |
|
138 | + function($value) { |
|
139 | 139 | return preg_match('~^(?!' . implode('|', $this->countrySettings->getTerritoriesBlacklist()) . '$)[A-Z]{2}$~i', $value); |
140 | 140 | } |
141 | 141 | ); |
@@ -182,7 +182,7 @@ |
||
182 | 182 | */ |
183 | 183 | public function getAllowedCodeCharactersLength() |
184 | 184 | { |
185 | - $charactersLength = array_reduce($this->getVoucherCodeCharacters(), function ($length, $items) { |
|
185 | + $charactersLength = array_reduce($this->getVoucherCodeCharacters(), function($length, $items) { |
|
186 | 186 | $length += count($items); |
187 | 187 | |
188 | 188 | return $length; |
@@ -23,8 +23,8 @@ |
||
23 | 23 | public function saveEvent(EventInterface $event) |
24 | 24 | { |
25 | 25 | $this->getFactory() |
26 | - ->createEventJournal() |
|
27 | - ->saveEvent($event); |
|
26 | + ->createEventJournal() |
|
27 | + ->saveEvent($event); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | } |