@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | */ |
76 | 76 | public function bind($key, $value) |
77 | 77 | { |
78 | - if (! array_key_exists($key, $this->registry)) { |
|
78 | + if (!array_key_exists($key, $this->registry)) { |
|
79 | 79 | $this->registry[$key] = $value; |
80 | 80 | } else { |
81 | 81 | throw new \Exception("{$key} is already bound in the container."); |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | */ |
90 | 90 | public function get($key) |
91 | 91 | { |
92 | - if (! array_key_exists($key, $this->registry)) { |
|
92 | + if (!array_key_exists($key, $this->registry)) { |
|
93 | 93 | throw new \Exception("No {$key} is bound in the container."); |
94 | 94 | } |
95 | 95 |
@@ -58,7 +58,7 @@ |
||
58 | 58 | |
59 | 59 | $jobs[ReplaceText::class]->handle( |
60 | 60 | '{{namespace}}', |
61 | - $namespace[0] . '\\' . $namespace[1] . '\\', |
|
61 | + $namespace[0] . '\\' . $namespace[1] . '\\', |
|
62 | 62 | $this->appContainer->get('app_dir') . '/app/code/' . $namespace[0] . '/' . $namespace[1] . '/Observer/' |
63 | 63 | ); |
64 | 64 |
@@ -5,6 +5,6 @@ |
||
5 | 5 | use \HotRodCli\Api\Processor; |
6 | 6 | |
7 | 7 | /** @var \Slim\App $api */ |
8 | -$api->post('/create/{command}', function (ServerRequestInterface $request, ResponseInterface $response, $args) use ($app) { |
|
8 | +$api->post('/create/{command}', function(ServerRequestInterface $request, ResponseInterface $response, $args) use ($app) { |
|
9 | 9 | return $response->getBody()->write($app->resolve(Processor::class)($request, $args)); |
10 | 10 | }); |
11 | 11 | \ No newline at end of file |