Completed
Pull Request — master (#8)
by Joao
01:20
created
example.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@
 block discarded – undo
6 6
 
7 7
 echo $webRequest->get([
8 8
 	'httpmethod' => 'obterVersao'
9
-]) . "\n";
9
+])."\n";
10 10
 
11 11
 echo $webRequest->post([
12 12
 	'httpmethod' => 'obterLogradouro',
13 13
 	'cep' => '30130000'
14
-]) . "\n";
14
+])."\n";
15 15
 
16
-echo $webRequest->soapCall('obterLogradouro', ['cep' => '30130000']) . "\n";
16
+echo $webRequest->soapCall('obterLogradouro', ['cep' => '30130000'])."\n";
Please login to merge, or discard this patch.
src/Whoops/PlainResponseHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 
51 51
         $debug = $this->getDataTable();
52 52
         if (count($debug) > 0) {
53
-            $response .= "\n\n" . json_encode(["debug" => $debug]);
53
+            $response .= "\n\n".json_encode(["debug" => $debug]);
54 54
         }
55 55
 
56 56
         $this->setProperHeader($this->getException());
Please login to merge, or discard this patch.
src/UploadedFiles.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
             $newName = $this->getFileName($key);
47 47
         }
48 48
 
49
-        move_uploaded_file($this->getFileByKey($key, 'tmp_name'), $destinationPath . '/' . $newName);
49
+        move_uploaded_file($this->getFileByKey($key, 'tmp_name'), $destinationPath.'/'.$newName);
50 50
     }
51 51
 
52 52
     public function clearTemp($key)
Please login to merge, or discard this patch.
src/HttpResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
         foreach ($this->headers as $header => $values) {
133 133
             $replace = true;
134 134
             foreach ($values as $value) {
135
-                $result[] = [ "$header: $value", $replace ];
135
+                $result[] = ["$header: $value", $replace];
136 136
                 $replace = false;
137 137
             }
138 138
         }
Please login to merge, or discard this patch.
src/ResponseBag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     public function add($object)
21 21
     {
22 22
         if (!is_object($object) && !is_array($object)) {
23
-            $object = [ $object ];
23
+            $object = [$object];
24 24
         }
25 25
 
26 26
         if ($this->serializationRule !== ResponseBag::SINGLE_OBJECT) {
Please login to merge, or discard this patch.
src/HttpRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -186,13 +186,13 @@
 block discarded – undo
186 186
         $servername = $this->getServerName();
187 187
 
188 188
         if ($port && $this->server('SERVER_PORT' !== false)) {
189
-            $servername .= ':' . $this->server('SERVER_PORT');
189
+            $servername .= ':'.$this->server('SERVER_PORT');
190 190
         }
191 191
 
192 192
         if ($protocol) {
193 193
             $servername = (
194 194
                 ($this->server('HTTPS') !== 'off'
195
-                    || $this->server('SERVER_PORT') == 443) ? "https://" : "http://") . $servername
195
+                    || $this->server('SERVER_PORT') == 443) ? "https://" : "http://").$servername
196 196
             ;
197 197
         }
198 198
 
Please login to merge, or discard this patch.
src/ErrorHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
     {
69 69
         if (method_exists($this->handler, 'addDataTable')) {
70 70
             $data = $this->handler->getDataTable();
71
-            $this->handler->addDataTable('Info #' . (count($data) + 1), array($name => $value));
71
+            $this->handler->addDataTable('Info #'.(count($data) + 1), array($name => $value));
72 72
         }
73 73
     }
74 74
 }
Please login to merge, or discard this patch.
web/app-swagger.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once __DIR__ . '/../vendor/autoload.php';
3
+require_once __DIR__.'/../vendor/autoload.php';
4 4
 
5 5
 $restServer = new \ByJG\RestServer\ServerRequestHandler();
6 6
 
7
-$restServer->setRoutesSwagger(__DIR__ . '/../tests/swagger-example.json');
7
+$restServer->setRoutesSwagger(__DIR__.'/../tests/swagger-example.json');
8 8
 
9 9
 $restServer->handle();
Please login to merge, or discard this patch.
web/app-dist.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
  *
8 8
  */
9 9
 
10
-require_once __DIR__ . '/../vendor/autoload.php';
10
+require_once __DIR__.'/../vendor/autoload.php';
11 11
 
12 12
 $restServer = new \ByJG\RestServer\ServerRequestHandler();
13 13
 
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     'GET',
24 24
     '/testclosure',
25 25
     \ByJG\RestServer\HandleOutput\JsonHandler::class,
26
-    function ($response, $request) {
26
+    function($response, $request) {
27 27
         $response->write('OK');
28 28
     }
29 29
 ));
Please login to merge, or discard this patch.