@@ -67,7 +67,7 @@ |
||
67 | 67 | } |
68 | 68 | |
69 | 69 | /** |
70 | - * @return ConfigDefinitionInterface|null |
|
70 | + * @return ConfigDefinitionInterface |
|
71 | 71 | */ |
72 | 72 | final public function getConfigDefinition() |
73 | 73 | { |
@@ -147,7 +147,7 @@ |
||
147 | 147 | final protected function loadResource($fileName) |
148 | 148 | { |
149 | 149 | $resolver = $this->container->getParameterBag()->getResolver(); |
150 | - $fileName = $resolver->resolveString($this->getBundlePath().'/'.ltrim($fileName, '/')); |
|
150 | + $fileName = $resolver->resolveString($this->getBundlePath() . '/' . ltrim($fileName, '/')); |
|
151 | 151 | $resources = $this->loader->import(new FileLocator($fileName)); |
152 | 152 | $resources = $this->resource->process($this->loader, $resources); |
153 | 153 |
@@ -276,7 +276,7 @@ |
||
276 | 276 | { |
277 | 277 | $error = error_get_last(); |
278 | 278 | |
279 | - if( $error !== NULL) { |
|
279 | + if ($error !== NULL) { |
|
280 | 280 | $severity = $error["type"]; |
281 | 281 | $file = $error["file"]; |
282 | 282 | $line = $error["line"]; |
@@ -81,7 +81,7 @@ |
||
81 | 81 | protected function getExtensions() |
82 | 82 | { |
83 | 83 | $name = str_replace('Bundle', '', $this->getName()); |
84 | - $class = sprintf('%s\Extension\%s', $this->getNamespace(), $name.'Extension'); |
|
84 | + $class = sprintf('%s\Extension\%s', $this->getNamespace(), $name . 'Extension'); |
|
85 | 85 | |
86 | 86 | if (class_exists($class)) { |
87 | 87 | return array(new $class()); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | */ |
31 | 31 | public function add(array $bundles) |
32 | 32 | { |
33 | - foreach($bundles as $bundle) { |
|
33 | + foreach ($bundles as $bundle) { |
|
34 | 34 | $this->set($bundle); |
35 | 35 | } |
36 | 36 | } |
@@ -77,7 +77,7 @@ |
||
77 | 77 | { |
78 | 78 | $namespace = $this->getNamespace(); |
79 | 79 | |
80 | - return (false === empty($namespace) ? $namespace.'\\' : '').$this->getName(); |
|
80 | + return (false === empty($namespace) ? $namespace . '\\' : '') . $this->getName(); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | /** |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | if (is_string($handler)) { |
142 | 142 | return $this->compileStringHandler($route, $request, $handler); |
143 | 143 | } elseif (is_callable($handler)) { |
144 | - return $this->dispatchMiddlewares($route, function () use ($handler, $request) { |
|
144 | + return $this->dispatchMiddlewares($route, function() use ($handler, $request) { |
|
145 | 145 | return $this->container->getDi()->call($handler, (array) $request->getParameters()); |
146 | 146 | }); |
147 | 147 | } |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | )); |
177 | 177 | } |
178 | 178 | |
179 | - return $this->dispatchMiddlewares($route, function () use ($parameters, $controller, $action) { |
|
179 | + return $this->dispatchMiddlewares($route, function() use ($parameters, $controller, $action) { |
|
180 | 180 | if (!$this->responseEvent->hasResponse()) { |
181 | 181 | return $controller->callMethod($action . 'Action', $parameters); |
182 | 182 | } |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | $params = array(); |
250 | 250 | if (is_string($options)) { |
251 | 251 | $middleware = $options; |
252 | - } elseif(is_array($options)) { |
|
252 | + } elseif (is_array($options)) { |
|
253 | 253 | if (!isset($options['name'])) { |
254 | 254 | throw new InvalidArgumentException(sprintf( |
255 | 255 | 'Missing key "name" middleware on route "%s".', |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | * @param MiddlewareInvoker $dispatcher |
297 | 297 | * @param mixed $rules |
298 | 298 | */ |
299 | - private function setMiddlewareRule(MiddlewareInvoker &$dispatcher, $rules) |
|
299 | + private function setMiddlewareRule(MiddlewareInvoker & $dispatcher, $rules) |
|
300 | 300 | { |
301 | 301 | if (is_array($rules)) { |
302 | 302 | foreach (array('excepts' => 'except', 'only' => 'only') as $index => $method) { |
@@ -113,7 +113,7 @@ |
||
113 | 113 | { |
114 | 114 | $executes = array_reverse($this->executes); |
115 | 115 | foreach ($executes as $caller) { |
116 | - $next = function () use (&$request, &$caller, $next, $action) { |
|
116 | + $next = function() use (&$request, &$caller, $next, $action) { |
|
117 | 117 | return $caller($request, $next, $action); |
118 | 118 | }; |
119 | 119 | } |