@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is a part of Sculpin. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is a part of Sculpin. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is a part of Sculpin. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is a part of Sculpin. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is a part of Sculpin. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is a part of Sculpin. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is a part of Sculpin. |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of Symplify |
@@ -67,13 +67,13 @@ discard block |
||
67 | 67 | |
68 | 68 | $this->port = $port; |
69 | 69 | |
70 | - $this->reactHttpServer->on('request', function (Request $request, Response $response) { |
|
71 | - $path = $this->configuration->getOutputDirectory() . '/' . ltrim(rawurldecode($request->getPath()), '/'); |
|
70 | + $this->reactHttpServer->on('request', function(Request $request, Response $response) { |
|
71 | + $path = $this->configuration->getOutputDirectory().'/'.ltrim(rawurldecode($request->getPath()), '/'); |
|
72 | 72 | if (is_dir($path)) { |
73 | 73 | $path .= '/index.html'; |
74 | 74 | } |
75 | 75 | |
76 | - if (! file_exists($path)) { |
|
76 | + if (!file_exists($path)) { |
|
77 | 77 | $this->responseWriter->send404Response($request, $response); |
78 | 78 | } else { |
79 | 79 | $this->responseWriter->send200Response($request, $response, $path); |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of Symplify |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | ]); |
41 | 41 | |
42 | 42 | $response->end( |
43 | - '<h1>404 - Not Found</h1>' . |
|
43 | + '<h1>404 - Not Found</h1>'. |
|
44 | 44 | '<p>Sculpin web server could not find the requested resource.</p>' |
45 | 45 | ); |
46 | 46 | } |
@@ -75,6 +75,6 @@ discard block |
||
75 | 75 | $wrapClose = '</error>'; |
76 | 76 | } |
77 | 77 | |
78 | - return $wrapOpen . $message . $wrapClose; |
|
78 | + return $wrapOpen.$message.$wrapClose; |
|
79 | 79 | } |
80 | 80 | } |