@@ -38,7 +38,7 @@ |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * @return ServerRequestInterface|null |
|
| 41 | + * @return null|Diactoros\ServerRequest |
|
| 42 | 42 | */ |
| 43 | 43 | public function acceptRequest() |
| 44 | 44 | { |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | ])); |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | - /** |
|
| 110 | + /** |
|
| 111 | 111 | * Returns altered copy of _SERVER variable. Sets ip-address, |
| 112 | 112 | * request-time and other values. |
| 113 | 113 | * |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | * |
| 44 | 44 | * @param mixed $header |
| 45 | 45 | * |
| 46 | - * @return \Error|null|string |
|
| 46 | + * @return string |
|
| 47 | 47 | * @throws GoridgeException |
| 48 | 48 | */ |
| 49 | 49 | public function receive(&$header) |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | use Spiral\Goridge; |
| 4 | 4 | |
| 5 | 5 | ini_set('display_errors', 'stderr'); |
| 6 | -require dirname(__DIR__) . "/../vendor/autoload.php"; |
|
| 6 | +require dirname(__DIR__)."/../vendor/autoload.php"; |
|
| 7 | 7 | |
| 8 | 8 | if (count($argv) < 3) { |
| 9 | 9 | die("need 2 arguments"); |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | use Spiral\RoadRunner; |
| 5 | 5 | |
| 6 | 6 | ini_set('display_errors', 'stderr'); |
| 7 | -require dirname(__DIR__) . "/../../vendor/autoload.php"; |
|
| 7 | +require dirname(__DIR__)."/../../vendor/autoload.php"; |
|
| 8 | 8 | |
| 9 | 9 | if (count($argv) < 3) { |
| 10 | 10 | die("need 2 arguments"); |
@@ -249,17 +249,17 @@ |
||
| 249 | 249 | public function createHeader(): string |
| 250 | 250 | { |
| 251 | 251 | $header = [ |
| 252 | - rawurlencode($this->name) . '=' . rawurlencode($this->value) |
|
| 252 | + rawurlencode($this->name).'='.rawurlencode($this->value) |
|
| 253 | 253 | ]; |
| 254 | 254 | if ($this->lifetime !== null) { |
| 255 | - $header[] = 'Expires=' . gmdate(\DateTime::COOKIE, $this->getExpires()); |
|
| 256 | - $header[] = 'Max-Age=' . $this->lifetime; |
|
| 255 | + $header[] = 'Expires='.gmdate(\DateTime::COOKIE, $this->getExpires()); |
|
| 256 | + $header[] = 'Max-Age='.$this->lifetime; |
|
| 257 | 257 | } |
| 258 | 258 | if (!empty($this->path)) { |
| 259 | - $header[] = 'Path=' . $this->path; |
|
| 259 | + $header[] = 'Path='.$this->path; |
|
| 260 | 260 | } |
| 261 | 261 | if (!empty($this->domain)) { |
| 262 | - $header[] = 'Domain=' . $this->domain; |
|
| 262 | + $header[] = 'Domain='.$this->domain; |
|
| 263 | 263 | } |
| 264 | 264 | if ($this->secure) { |
| 265 | 265 | $header[] = 'Secure'; |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): ResponseInterface |
| 7 | 7 | { |
| 8 | 8 | $files = $req->getUploadedFiles(); |
| 9 | - array_walk_recursive($files, function (&$v) { |
|
| 9 | + array_walk_recursive($files, function(&$v) { |
|
| 10 | 10 | /** |
| 11 | 11 | * @var \Psr\Http\Message\UploadedFileInterface $v |
| 12 | 12 | */ |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | use Spiral\Goridge; |
| 4 | 4 | |
| 5 | 5 | ini_set('display_errors', 'stderr'); |
| 6 | -require dirname(__DIR__) . "/../vendor/autoload.php"; |
|
| 6 | +require dirname(__DIR__)."/../vendor/autoload.php"; |
|
| 7 | 7 | |
| 8 | 8 | if (count($argv) < 3) { |
| 9 | 9 | die("need 2 arguments"); |