Completed
Push — master ( 903698...d8a46a )
by Iqbal
02:29
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
@@ -147,7 +147,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/AbstractKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -276,7 +276,7 @@
 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"];
Please login to merge, or discard this patch.
src/Bundling/AbstractBundle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
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());
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/IdentifierTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
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
     /**
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.
src/RouterListener.php 1 patch
Spacing   +3 added lines, -3 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
         }
@@ -176,7 +176,7 @@  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 181
                 return $controller->callMethod($action . 'Action', $parameters);
182 182
             }
@@ -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) {
Please login to merge, or discard this patch.