Completed
Push — compile ( d40a96...35acd8 )
by Akihito
03:33
created
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/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.
src/Module.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,17 +21,17 @@
 block discarded – undo
21 21
         $contextsArray = array_reverse(explode('-', $context));
22 22
         $module = new AssistedModule;
23 23
         foreach ($contextsArray as $contextItem) {
24
-            $class = $appMeta->name . '\Module\\' . ucwords($contextItem) . 'Module';
25
-            if (! class_exists($class)) {
26
-                $class = 'BEAR\Package\Context\\' . ucwords($contextItem) . 'Module';
24
+            $class = $appMeta->name.'\Module\\'.ucwords($contextItem).'Module';
25
+            if (!class_exists($class)) {
26
+                $class = 'BEAR\Package\Context\\'.ucwords($contextItem).'Module';
27 27
             }
28
-            if (! is_a($class, AbstractModule::class, true)) {
28
+            if (!is_a($class, AbstractModule::class, true)) {
29 29
                 throw new InvalidContextException($contextItem);
30 30
             }
31 31
             /* @var $module AbstractModule */
32 32
             $module = is_subclass_of($class, AbstractAppModule::class) ? new $class($appMeta, $module) : new $class($module);
33 33
         }
34
-        if (! $module instanceof AbstractModule) {
34
+        if (!$module instanceof AbstractModule) {
35 35
             throw new InvalidModuleException; // @codeCoverageIgnore
36 36
         }
37 37
         $module->override(new AppMetaModule($appMeta));
Please login to merge, or discard this patch.
src/Unlink.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,10 +22,10 @@
 block discarded – undo
22 22
 
23 23
     public function __invoke(string $path) : void
24 24
     {
25
-        if ($this->isOptional && file_exists($path . '/.do_not_clear')) {
25
+        if ($this->isOptional && file_exists($path.'/.do_not_clear')) {
26 26
             return;
27 27
         }
28
-        foreach ((array) glob(rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . '*') as $file) {
28
+        foreach ((array) glob(rtrim($path, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.'*') as $file) {
29 29
             is_dir((string) $file) ? $this->__invoke((string) $file) : unlink((string) $file);
30 30
             @rmdir((string) $file);
31 31
         }
Please login to merge, or discard this patch.