@@ -24,6 +24,6 @@ |
||
24 | 24 | { |
25 | 25 | $string = parent::__toString(); |
26 | 26 | |
27 | - return $string . $this->postBody; |
|
27 | + return $string.$this->postBody; |
|
28 | 28 | } |
29 | 29 | } |
@@ -30,7 +30,7 @@ |
||
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); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | protected function configure() |
31 | 31 | { |
32 | 32 | $this->bind(AbstractAppMeta::class)->toInstance($this->appMeta); |
33 | - $this->bind(AppInterface::class)->to($this->appMeta->name . '\Module\App'); |
|
33 | + $this->bind(AppInterface::class)->to($this->appMeta->name.'\Module\App'); |
|
34 | 34 | $this->bind()->annotatedWith(AppName::class)->toInstance($this->appMeta->name); |
35 | 35 | } |
36 | 36 | } |
@@ -18,7 +18,7 @@ |
||
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() |
@@ -30,7 +30,7 @@ |
||
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 |
@@ -21,7 +21,7 @@ |
||
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 | } |
@@ -21,7 +21,7 @@ |
||
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 | } |
@@ -33,7 +33,7 @@ |
||
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 | } |
@@ -26,7 +26,7 @@ |
||
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 | } |