Completed
Push — compiler ( c86005...d6bb7f )
by Akihito
01:36
created
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/Router/RouterCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 
43 43
                 return $this->routeNotFound();
44 44
             }
45
-            if (! $match instanceof NullMatch) {
45
+            if (!$match instanceof NullMatch) {
46 46
                 return $match;
47 47
             }
48 48
         }
Please login to merge, or discard this patch.
src/Injector.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,13 +37,13 @@  discard block
 block discarded – undo
37 37
 
38 38
     public static function getInstance(string $appName, string $context, string $appDir, ?CacheProvider $cache = null): InjectorInterface
39 39
     {
40
-        $injectorId = $appName . $context;
40
+        $injectorId = $appName.$context;
41 41
         if (isset(self::$instances[$injectorId])) {
42 42
             return self::$instances[$injectorId];
43 43
         }
44 44
 
45 45
         $meta = new Meta($appName, $context, $appDir);
46
-        $cache = $cache ?? new PhpFileCache($meta->tmpDir . '/injector');
46
+        $cache = $cache ?? new PhpFileCache($meta->tmpDir.'/injector');
47 47
         $cache->setNamespace($injectorId);
48 48
         /** @var ?InjectorInterface $cachedInjector */
49 49
         $cachedInjector = $cache->fetch(InjectorInterface::class);
@@ -64,14 +64,14 @@  discard block
 block discarded – undo
64 64
 
65 65
     private static function factory(Meta $meta, string $context): InjectorInterface
66 66
     {
67
-        $scriptDir = $meta->tmpDir . '/di';
68
-        ! is_dir($scriptDir) && ! @mkdir($scriptDir) && ! is_dir($scriptDir);
67
+        $scriptDir = $meta->tmpDir.'/di';
68
+        !is_dir($scriptDir) && !@mkdir($scriptDir) && !is_dir($scriptDir);
69 69
         $module = (new Module())($meta, $context, '');
70 70
         $rayInjector = new RayInjector($module, $scriptDir);
71 71
         $isProd = $rayInjector->getInstance('', Compile::class);
72 72
         assert(is_bool($isProd));
73 73
         if ($isProd) {
74
-            return new ScriptInjector($scriptDir, static function () use ($scriptDir, $module) {
74
+            return new ScriptInjector($scriptDir, static function() use ($scriptDir, $module) {
75 75
                 return new ScriptinjectorModule($scriptDir, $module);
76 76
             });
77 77
         }
Please login to merge, or discard this patch.
src/Module/AppMetaModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     protected function configure(): void
28 28
     {
29 29
         $this->bind(AbstractAppMeta::class)->toInstance($this->appMeta);
30
-        $this->bind(AppInterface::class)->to($this->appMeta->name . '\Module\App')->in(Scope::SINGLETON);
30
+        $this->bind(AppInterface::class)->to($this->appMeta->name.'\Module\App')->in(Scope::SINGLETON);
31 31
         $this->bind()->annotatedWith(AppName::class)->toInstance($this->appMeta->name);
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
src/Provide/Router/HttpMethodParams.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
     private function getParams(string $method, array $server, array $post): array
116 116
     {
117 117
         // post data exists
118
-        if ($method === 'post' && ! empty($post)) {
118
+        if ($method === 'post' && !empty($post)) {
119 119
             return $post;
120 120
         }
121 121
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
         }
146 146
 
147 147
         $isApplicationJson = strpos($contentType, self::APPLICATION_JSON) !== false;
148
-        if (! $isApplicationJson) {
148
+        if (!$isApplicationJson) {
149 149
             return [];
150 150
         }
151 151
 
Please login to merge, or discard this patch.
src/Provide/Router/WebRouter.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
         $request = new RouterMatch();
47 47
         /** @var array{HTTP_X_HTTP_METHOD_OVERRIDE?: string, REQUEST_METHOD: string} $server */
48 48
         [$request->method, $request->query] = $this->httpMethodParams->get($server, $globals['_GET'], $globals['_POST']);
49
-        $request->path = $this->schemeHost . parse_url($requestUri, 5); // 5 = PHP_URL_PATH
49
+        $request->path = $this->schemeHost.parse_url($requestUri, 5); // 5 = PHP_URL_PATH
50 50
 
51 51
         return $request;
52 52
     }
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
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         $ro = $invocation->proceed();
29 29
         assert($ro instanceof ResourceObject);
30 30
         $isCreated = $ro->code === 201 && isset($ro->headers['Location']);
31
-        if (! $isCreated) {
31
+        if (!$isCreated) {
32 32
             return $ro;
33 33
         }
34 34
 
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
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 
29 29
     public function toString(): string
30 30
     {
31
-        $this->view = json_encode($this->body, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . PHP_EOL;
31
+        $this->view = json_encode($this->body, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES).PHP_EOL;
32 32
 
33 33
         return $this->view;
34 34
     }
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
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     public function __construct(Throwable $e)
25 25
     {
26 26
         // phpcs:ignore SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFallbackGlobalName
27
-        $this->ref = hash('crc32b', get_class($e) . $e->getMessage() . $e->getFile() . $e->getLine());
27
+        $this->ref = hash('crc32b', get_class($e).$e->getMessage().$e->getFile().$e->getLine());
28 28
     }
29 29
 
30 30
     public function __toString(): string
Please login to merge, or discard this patch.