Completed
Pull Request — master (#7)
by joseph
04:16
created
src/StaticRouter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
         $contentType = $contentType ?? mime_content_type($fileResponse);
158 158
         $this->addCallbackRoute(
159 159
             $uri,
160
-            function (Request $request) use ($fileResponse, $contentType): Response {
160
+            function(Request $request) use ($fileResponse, $contentType): Response {
161 161
 
162 162
                 $response = new Response(file_get_contents($fileResponse));
163 163
                 $response->prepare($request);
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
     {
210 210
         $this->addCallbackRoute(
211 211
             $uri,
212
-            function (Request $request) use ($pathToFile): Response {
212
+            function(Request $request) use ($pathToFile): Response {
213 213
                 $response = new BinaryFileResponse($pathToFile);
214 214
                 $response->setContentDisposition(
215 215
                     ResponseHeaderBag::DISPOSITION_ATTACHMENT,
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
             'server' => $request->server->all(),
358 358
             'files'  => $request->files->all(),
359 359
         ];
360
-        $uri         = $request->getRequestUri();
360
+        $uri = $request->getRequestUri();
361 361
         if (true === $this->verbose) {
362 362
             file_put_contents('php://stderr', "\nRequest: $uri\n".var_export($output, true));
363 363
         }
Please login to merge, or discard this patch.
src/include/routerTop.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
 }
15 15
 if (!$autoloadFileFound) {
16 16
     echo 'You need to set up the project dependencies using the following commands:'.PHP_EOL.
17
-         'curl -s http://getcomposer.org/installer | php'.PHP_EOL.
18
-         'php composer.phar install'.PHP_EOL;
17
+            'curl -s http://getcomposer.org/installer | php'.PHP_EOL.
18
+            'php composer.phar install'.PHP_EOL;
19 19
     die(1);
20 20
 }
21 21
 
Please login to merge, or discard this patch.
src/MockServer.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -133,14 +133,14 @@
 block discarded – undo
133 133
         }
134 134
 
135 135
         return $noXdebugFunction
136
-               .'cd '.$this->htdocsPath.';'
137
-               .$nohup
138
-               .'php'
139
-               .$iniPathConfig
140
-               .' -d error_reporting=E_ALL'
141
-               .' -d error_log=\''.$logFilePath.'\''
142
-               .' -S '.$this->ipAddress.':'.$this->port.' '.$this->routerPath
143
-               .$detatch;
136
+                .'cd '.$this->htdocsPath.';'
137
+                .$nohup
138
+                .'php'
139
+                .$iniPathConfig
140
+                .' -d error_reporting=E_ALL'
141
+                .' -d error_log=\''.$logFilePath.'\''
142
+                .' -S '.$this->ipAddress.':'.$this->port.' '.$this->routerPath
143
+                .$detatch;
144 144
     }
145 145
 
146 146
 
Please login to merge, or discard this patch.