Completed
Push — spike ( cf37b2...26327a )
by Akihito
01:36
created
src/Provide/Error/ErrorPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,6 +24,6 @@
 block discarded – undo
24 24
     {
25 25
         $string = parent::__toString();
26 26
 
27
-        return $string . $this->postBody;
27
+        return $string.$this->postBody;
28 28
     }
29 29
 }
Please login to merge, or discard this patch.
src/Provide/Representation/CreatedResourceInterceptor.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
         /** @var ResourceObject $ro */
31 31
         $ro = $invocation->proceed();
32 32
         $isCreated = $ro->code === 201 && isset($ro->headers['Location']);
33
-        if (! $isCreated) {
33
+        if (!$isCreated) {
34 34
             return $ro;
35 35
         }
36 36
         $ro->setRenderer($this->renderer);
Please login to merge, or discard this patch.
src/Provide/Error/LogRef.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
     public function __construct(\Exception $e)
20 20
     {
21
-        $this->ref = hash('crc32b', \get_class($e) . $e->getMessage() . $e->getFile() . $e->getLine());
21
+        $this->ref = hash('crc32b', \get_class($e).$e->getMessage().$e->getFile().$e->getLine());
22 22
     }
23 23
 
24 24
     public function __toString()
Please login to merge, or discard this patch.
src/Context/Provider/ProdCacheProvider.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 __construct(AbstractAppMeta $appMeta, string $namespace)
32 32
     {
33
-        $this->cacheDir = $appMeta->tmpDir . '/cache';
33
+        $this->cacheDir = $appMeta->tmpDir.'/cache';
34 34
         $this->namespace = $namespace;
35 35
     }
36 36
 
Please login to merge, or discard this patch.
src/Provide/Error/DevVndErrorPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
     public function toString()
23 23
     {
24
-        $this->view = json_encode($this->body, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . PHP_EOL;
24
+        $this->view = json_encode($this->body, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES).PHP_EOL;
25 25
 
26 26
         return $this->view;
27 27
     }
Please login to merge, or discard this patch.
src/Provide/Error/ProdVndErrorPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
     public function toString()
23 23
     {
24
-        $this->view = json_encode($this->body, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . PHP_EOL;
24
+        $this->view = json_encode($this->body, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES).PHP_EOL;
25 25
 
26 26
         return $this->view;
27 27
     }
Please login to merge, or discard this patch.
src/Provide/Router/RouterCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     {
34 34
         foreach ($this->routers as $route) {
35 35
             $match = $route->match($globals, $server);
36
-            if ($match instanceof RouterMatch && ! ($match instanceof NullMatch)) {
36
+            if ($match instanceof RouterMatch && !($match instanceof NullMatch)) {
37 37
                 return $match;
38 38
             }
39 39
         }
Please login to merge, or discard this patch.
src/Context/CliModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         $this->bind(RouterInterface::class)->to(CliRouter::class);
27 27
         $this->bind(TransferInterface::class)->to(CliResponder::class);
28 28
         $this->bind(HttpCacheInterface::class)->to(CliHttpCache::class);
29
-        $stdIn = tempnam(sys_get_temp_dir(), 'stdin-' . crc32(__FILE__));
29
+        $stdIn = tempnam(sys_get_temp_dir(), 'stdin-'.crc32(__FILE__));
30 30
         $this->bind()->annotatedWith(StdIn::class)->toInstance($stdIn);
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
src/Provide/Transfer/CliResponder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,11 +39,11 @@
 block discarded – undo
39 39
         $output = $isModified ? $this->getOutput($ro, $server) : $this->condResponse->getOutput($ro->headers);
40 40
 
41 41
         $statusText = (new Code)->statusText[$ro->code] ?? '';
42
-        $ob = $output->code . ' ' . $statusText . PHP_EOL;
42
+        $ob = $output->code.' '.$statusText.PHP_EOL;
43 43
 
44 44
         // header
45 45
         foreach ($output->headers as $label => $value) {
46
-            $ob .= "{$label}: {$value}" . PHP_EOL;
46
+            $ob .= "{$label}: {$value}".PHP_EOL;
47 47
         }
48 48
 
49 49
         // empty line
Please login to merge, or discard this patch.