| @@ -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); | 
| @@ -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 | } | 
| @@ -89,7 +89,7 @@ discard block | ||
| 89 | 89 | private function getParams($method, array $server, array $post) : array | 
| 90 | 90 |      { | 
| 91 | 91 | // post data exists | 
| 92 | -        if ($method === 'post' && ! empty($post)) { | |
| 92 | +        if ($method === 'post' && !empty($post)) { | |
| 93 | 93 | return $post; | 
| 94 | 94 | } | 
| 95 | 95 | |
| @@ -113,7 +113,7 @@ discard block | ||
| 113 | 113 | return $put; | 
| 114 | 114 | } | 
| 115 | 115 | $isApplicationJson = strpos($contentType, self::APPLICATION_JSON) !== false; | 
| 116 | -        if (! $isApplicationJson) { | |
| 116 | +        if (!$isApplicationJson) { | |
| 117 | 117 | return []; | 
| 118 | 118 | } | 
| 119 | 119 | $content = json_decode($this->getRawBody($server), true); |