Completed
Push — master ( e02510...dc0204 )
by Iqbal
14:38
created
src/Bundling/AbstractExtension.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
     }
68 68
 
69 69
     /**
70
-     * @return ConfigDefinitionInterface|null
70
+     * @return ConfigDefinitionInterface
71 71
      */
72 72
     final public function getConfigDefinition()
73 73
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         }
77 77
 
78 78
         $name = str_replace('Extension', '', $this->getName());
79
-        $class = sprintf('%s\%s', $this->getNamespace(), $name . 'ConfigDefinition');
79
+        $class = sprintf('%s\%s', $this->getNamespace(), $name.'ConfigDefinition');
80 80
 
81 81
         if (class_exists($class)) {
82 82
             return new $class();
Please login to merge, or discard this patch.
src/Bundling/BundleManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/AbstractKernel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
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"];
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
      */
312 312
     private function importEnvironmentFile()
313 313
     {
314
-        $envFile = $this->getPath() . '/' . $this->envFile;
314
+        $envFile = $this->getPath().'/'.$this->envFile;
315 315
         if (file_exists($envFile)) {
316 316
             $loader = new FileLoader();
317 317
             $vars = $loader->import(new FileLoader\FileLocator($envFile));
Please login to merge, or discard this patch.
src/ResourceBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 
45 45
         foreach ($bundles as $bundle) {
46 46
             if ($bundle instanceof BundleInterface) {
47
-                $this->bundlesPath['@' . $bundle->getName()] = $bundle->getPath();
47
+                $this->bundlesPath['@'.$bundle->getName()] = $bundle->getPath();
48 48
             }
49 49
         }
50 50
     }
Please login to merge, or discard this patch.
src/RouterListener.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
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, $request, function () use ($handler, $request) {
144
+            return $this->dispatchMiddlewares($route, $request, function() use ($handler, $request) {
145 145
                 return $this->container->getDi()->call($handler, (array) $request->getParameters());
146 146
             });
147 147
         }
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
         $action = end($parts);
169 169
         $controller = $this->buildController($handler, $parts, $parameters);
170 170
 
171
-        if (!method_exists($controller->getOriginalInstance(), $action . 'Action')) {
171
+        if (!method_exists($controller->getOriginalInstance(), $action.'Action')) {
172 172
             throw new HttpNotFoundException(sprintf(
173 173
                 'Action "%sAction" not found on controller "%s".',
174 174
                 $action,
@@ -176,9 +176,9 @@  discard block
 block discarded – undo
176 176
             ));
177 177
         }
178 178
 
179
-        return $this->dispatchMiddlewares($route, $request, function () use ($parameters, $controller, $action) {
179
+        return $this->dispatchMiddlewares($route, $request, function() use ($parameters, $controller, $action) {
180 180
             if (!$this->responseEvent->hasResponse()) {
181
-                return $controller->callMethod($action . 'Action', $parameters);
181
+                return $controller->callMethod($action.'Action', $parameters);
182 182
             }
183 183
 
184 184
             return $this->responseEvent->getResponse();
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
                 break;
224 224
             default:
225 225
                 throw new RuntimeException(sprintf(
226
-                    'Unknown string handler format for "%s". ' .
226
+                    'Unknown string handler format for "%s". '.
227 227
                     'String handler should be service_id:action or Bundle:Controller:action',
228 228
                     $handler
229 229
                 ));
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
      * @param MiddlewareInvoker $dispatcher
299 299
      * @param mixed             $rules
300 300
      */
301
-    private function setMiddlewareRule(MiddlewareInvoker &$dispatcher, $rules)
301
+    private function setMiddlewareRule(MiddlewareInvoker & $dispatcher, $rules)
302 302
     {
303 303
         if (is_array($rules)) {
304 304
             foreach (array('excepts' => 'except', 'only' => 'only') as $index => $method) {
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
     {
352 352
         $bundleManager = $this->kernel->getBundleManager();
353 353
         if (null !== $bundle = $bundleManager->get($bundleName)) {
354
-            $class = $bundle->getNamespace() . '\\' . $this->prefix . '\\' . $controller . 'Controller';
354
+            $class = $bundle->getNamespace().'\\'.$this->prefix.'\\'.$controller.'Controller';
355 355
             if (!class_exists($class)) {
356 356
                 throw new RuntimeException(sprintf('Controller "%s" is undefined.', $class));
357 357
             }
Please login to merge, or discard this patch.
src/Middleware/MiddlewareContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
     {
128 128
         $executes = array_reverse($this->executes);
129 129
         foreach ($executes as $caller) {
130
-            $next = function () use (&$request, &$context, $caller, $next, $action) {
130
+            $next = function() use (&$request, &$context, $caller, $next, $action) {
131 131
                 return $caller($request, $context, $next, $action);
132 132
             };
133 133
         }
Please login to merge, or discard this patch.