Completed
Branch 09branch (740a7d)
by Anton
02:52
created
source/Spiral/Http/Middlewares/CsrfFirewall.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
             return (string)$request->getHeaderLine(self::HEADER);
77 77
         }
78 78
 
79
-             $data = $request->getParsedBody();
79
+                $data = $request->getParsedBody();
80 80
         if (is_array($data) && isset($data[self::PARAMETER])) {
81 81
             if (is_string($data[self::PARAMETER])) {
82 82
                 return (string)$data[self::PARAMETER];
Please login to merge, or discard this patch.
source/Spiral/Http/Routing/Route.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
 
67 67
         $route = $this;
68 68
 
69
-        return function (Request $request, Response $response) use ($route) {
69
+        return function(Request $request, Response $response) use ($route) {
70 70
             list($controller, $action) = explode(':', str_replace('::', ':', $route->target));
71 71
 
72 72
             if ($action == self::DYNAMIC_ACTION) {
Please login to merge, or discard this patch.
source/Spiral/Http/Routing/ControllersRoute.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     {
124 124
         $route = $this;
125 125
 
126
-        return function (Request $request, Response $response) use ($route) {
126
+        return function(Request $request, Response $response) use ($route) {
127 127
             $matches = $route->getMatches();
128 128
 
129 129
             //Due we are expecting part of class name we can remove some garbage (see to-do below)
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
                 //Aliased
134 134
                 $controller = $route->controllers[$controller];
135 135
             } else {
136
-                $controller = Inflector::classify($controller) . $route->postfix;
136
+                $controller = Inflector::classify($controller).$route->postfix;
137 137
                 $controller = "{$route->namespace}\\{$controller}";
138 138
             }
139 139
 
Please login to merge, or discard this patch.
source/Spiral/Http/Response/ResponseWrapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
         $response = $response->withHeader('Content-Length', (string)$stream->getSize());
117 117
         $response = $response->withHeader(
118 118
             'Content-Disposition',
119
-            'attachment; filename="' . addcslashes($name, '"') . '"'
119
+            'attachment; filename="'.addcslashes($name, '"').'"'
120 120
         );
121 121
 
122 122
         return $response->withBody($stream);
Please login to merge, or discard this patch.
source/Spiral/Http/RESTfulCore.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,6 +72,6 @@
 block discarded – undo
72 72
     protected function defineAction(Request $request, array $parameters, string $action)
73 73
     {
74 74
         //methodAction [putPost, getPost]
75
-        return strtolower($request->getMethod()) . ucfirst($action);
75
+        return strtolower($request->getMethod()).ucfirst($action);
76 76
     }
77 77
 }
78 78
\ No newline at end of file
Please login to merge, or discard this patch.
source/Spiral/Http/MiddlewarePipeline.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -150,11 +150,11 @@  discard block
 block discarded – undo
150 150
             $result = call_user_func($this->target, $request, $response);
151 151
         } finally {
152 152
             while (ob_get_level() > $outputLevel + 1) {
153
-                $output = ob_get_clean() . $output;
153
+                $output = ob_get_clean().$output;
154 154
             }
155 155
         }
156 156
 
157
-        return $this->wrapResponse($response, $result, ob_get_clean() . $output);
157
+        return $this->wrapResponse($response, $result, ob_get_clean().$output);
158 158
     }
159 159
 
160 160
     /**
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
         Request $outerRequest,
203 203
         Response $outerResponse
204 204
     ): \Closure {
205
-        $next = function ($request = null, $response = null) use (
205
+        $next = function($request = null, $response = null) use (
206 206
             $position,
207 207
             $outerRequest,
208 208
             $outerResponse
Please login to merge, or discard this patch.
source/Spiral/Http/Request/InputManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
143 143
         if (empty($path)) {
144 144
             return '/';
145 145
         } elseif ($path[0] !== '/') {
146
-            return '/' . $path;
146
+            return '/'.$path;
147 147
         }
148 148
 
149 149
         return $path;
Please login to merge, or discard this patch.
source/Spiral/Http/Request/Bags/InputBag.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      */
113 113
     public function fetch(array $keys, bool $fill = false, $filler = null)
114 114
     {
115
-        $result = array_intersect_key($this->all(), array_flip($keys));;
115
+        $result = array_intersect_key($this->all(), array_flip($keys)); ;
116 116
 
117 117
         if (!$fill) {
118 118
             return $result;
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
         $data = $this->data;
180 180
 
181 181
         //Generating path relative to a given name and prefix
182
-        $path = (!empty($this->prefix) ? $this->prefix . '.' : '') . $name;
182
+        $path = (!empty($this->prefix) ? $this->prefix.'.' : '').$name;
183 183
         $path = explode('.', rtrim($path, '.'));
184 184
 
185 185
         foreach ($path as $step) {
Please login to merge, or discard this patch.
source/Spiral/Http/Request/InputMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -246,7 +246,7 @@
 block discarded – undo
246 246
         }
247 247
 
248 248
         foreach (array_keys($iteration) as $key) {
249
-            $result[$key] = $prefix . '.' . $key;
249
+            $result[$key] = $prefix.'.'.$key;
250 250
         }
251 251
 
252 252
         return $result;
Please login to merge, or discard this patch.