@@ -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 the box project. |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | { |
40 | 40 | // convert errors to exceptions |
41 | 41 | set_error_handler( |
42 | - function ($code, $message, $file, $line): void { |
|
42 | + function($code, $message, $file, $line): void { |
|
43 | 43 | if (error_reporting() & $code) { |
44 | 44 | throw new ErrorException($message, 0, $code, $file, $line); |
45 | 45 | } |
@@ -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 part of the box project. |
@@ -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 part of the box project. |
@@ -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 part of the box project. |
@@ -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 part of the box project. |
@@ -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 part of the box project. |
@@ -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 part of the box project. |
@@ -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 the box project. |
@@ -682,7 +682,7 @@ discard block |
||
682 | 682 | return $main; |
683 | 683 | } |
684 | 684 | |
685 | - private function registerStub(Configuration $config, Box $box, ?string $main, BuildLogger $logger): void |
|
685 | + private function registerStub(Configuration $config, Box $box, ?string $main, BuildLogger $logger) : void |
|
686 | 686 | { |
687 | 687 | if (true === $config->isStubGenerated()) { |
688 | 688 | $logger->log( |
@@ -830,7 +830,7 @@ discard block |
||
830 | 830 | ?string $message, |
831 | 831 | bool $binary, |
832 | 832 | BuildLogger $logger |
833 | - ): void { |
|
833 | + ) : void { |
|
834 | 834 | static $count = 0; |
835 | 835 | |
836 | 836 | if (null === $iterator) { |
@@ -878,7 +878,7 @@ discard block |
||
878 | 878 | } |
879 | 879 | } |
880 | 880 | |
881 | - private function createStub(Configuration $config, ?string $main, BuildLogger $logger): StubGenerator |
|
881 | + private function createStub(Configuration $config, ?string $main, BuildLogger $logger) : StubGenerator |
|
882 | 882 | { |
883 | 883 | $stub = StubGenerator::create() |
884 | 884 | ->alias($config->getAlias()) |
@@ -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 the box project. |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | return realpath(self::FILE_NAME); |
67 | 67 | } |
68 | 68 | |
69 | - public function loadFile(?string $file): Configuration |
|
69 | + public function loadFile(?string $file) : Configuration |
|
70 | 70 | { |
71 | 71 | if (null === $file) { |
72 | 72 | $file = $this->findDefaultPath(); |