@@ -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 SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
@@ -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 SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
@@ -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 SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
@@ -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 SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
@@ -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 SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
@@ -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 SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
@@ -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 SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
@@ -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 SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
@@ -54,14 +54,14 @@ discard block |
||
| 54 | 54 | $this->registerHttp($pimple); |
| 55 | 55 | $this->registerConsole($pimple); |
| 56 | 56 | |
| 57 | - $pimple[AnnotationReader::class] = function () { |
|
| 57 | + $pimple[AnnotationReader::class] = function() { |
|
| 58 | 58 | return new AnnotationReader( |
| 59 | 59 | new \Doctrine\Common\Annotations\AnnotationReader(), |
| 60 | 60 | DocBlockFactory::createInstance() |
| 61 | 61 | ); |
| 62 | 62 | }; |
| 63 | 63 | |
| 64 | - $pimple[Api\ApiBuilder::class] = function (Container $pimple) { |
|
| 64 | + $pimple[Api\ApiBuilder::class] = function(Container $pimple) { |
|
| 65 | 65 | $parser = new Api\ApiParser($pimple[HttpAsyncClient::class], $pimple[MessageFactory::class], new Crawler()); |
| 66 | 66 | $generator = new Api\ApiGenerator(new BuilderFactory()); |
| 67 | 67 | |
@@ -71,25 +71,25 @@ discard block |
||
| 71 | 71 | |
| 72 | 72 | public function registerHttp(Container $pimple) |
| 73 | 73 | { |
| 74 | - $pimple[HttpAsyncClient::class] = function () { |
|
| 74 | + $pimple[HttpAsyncClient::class] = function() { |
|
| 75 | 75 | return new PluginClient( |
| 76 | 76 | HttpAsyncClientDiscovery::find(), |
| 77 | 77 | [] |
| 78 | 78 | ); |
| 79 | 79 | }; |
| 80 | 80 | |
| 81 | - $pimple[MessageFactory::class] = function () { |
|
| 81 | + $pimple[MessageFactory::class] = function() { |
|
| 82 | 82 | return MessageFactoryDiscovery::find(); |
| 83 | 83 | }; |
| 84 | 84 | |
| 85 | - $pimple[UriFactory::class] = function () { |
|
| 85 | + $pimple[UriFactory::class] = function() { |
|
| 86 | 86 | return UriFactoryDiscovery::find(); |
| 87 | 87 | }; |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | private function registerDriver(Container $pimple) |
| 91 | 91 | { |
| 92 | - $pimple[Http::class] = function (Container $pimple) { |
|
| 92 | + $pimple[Http::class] = function(Container $pimple) { |
|
| 93 | 93 | return new Http( |
| 94 | 94 | $pimple[HttpAsyncClient::class], |
| 95 | 95 | $pimple[MessageFactory::class], |
@@ -99,14 +99,14 @@ discard block |
||
| 99 | 99 | ); |
| 100 | 100 | }; |
| 101 | 101 | |
| 102 | - $pimple[Cli::class] = function (Container $pimple) { |
|
| 102 | + $pimple[Cli::class] = function(Container $pimple) { |
|
| 103 | 103 | return new Cli(new ProcessBuilder(), $pimple[AnnotationReader::class], getenv('IPFS_BINARY') ?: 'ipfs'); |
| 104 | 104 | }; |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | private function registerConsole(Container $pimple) |
| 108 | 108 | { |
| 109 | - $pimple[CommandBuilder::class] = function (Container $pimple) { |
|
| 109 | + $pimple[CommandBuilder::class] = function(Container $pimple) { |
|
| 110 | 110 | return new CommandBuilder([ |
| 111 | 111 | new Api\Basics(), |
| 112 | 112 | new Api\Bitswap(), |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | ], $pimple); |
| 131 | 131 | }; |
| 132 | 132 | |
| 133 | - $pimple[Application::class] = function (Container $pimple) { |
|
| 133 | + $pimple[Application::class] = function(Container $pimple) { |
|
| 134 | 134 | $app = new Application('ipfs', '@git-version@'); |
| 135 | 135 | $app->addCommands($pimple[CommandBuilder::class]->generateCommands()); |
| 136 | 136 | $app->add(new ApiBuildCommand($pimple)); |