@@ -35,7 +35,7 @@ |
||
35 | 35 | |
36 | 36 | $xmlArray->asXML($xmlFile); |
37 | 37 | |
38 | - } catch(\Throwable $e) { |
|
38 | + } catch (\Throwable $e) { |
|
39 | 39 | throw new \Exception($e->getMessage()); |
40 | 40 | } |
41 | 41 | } |
@@ -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 |
@@ -79,7 +79,7 @@ |
||
79 | 79 | . $namespace[1] . '\\Block\\' |
80 | 80 | . ucwords($name) . ' was successfully created</info>'); |
81 | 81 | |
82 | - } catch(\Throwable $e) { |
|
82 | + } catch (\Throwable $e) { |
|
83 | 83 | $output->writeln('<error>' . $e->getMessage() . '</error>'); |
84 | 84 | } |
85 | 85 | } |
@@ -88,7 +88,7 @@ |
||
88 | 88 | |
89 | 89 | $this->runProcessors($input, $output); |
90 | 90 | |
91 | - } catch(\Throwable $e) { |
|
91 | + } catch (\Throwable $e) { |
|
92 | 92 | $output->writeln('<error>' . $e->getMessage() . '</error>'); |
93 | 93 | } |
94 | 94 | } |
@@ -48,7 +48,7 @@ |
||
48 | 48 | ); |
49 | 49 | |
50 | 50 | $output->writeln('<info>Module ' . $input->getArgument('namespace') . ' was successfully created</info>'); |
51 | - } catch(\Throwable $e) { |
|
51 | + } catch (\Throwable $e) { |
|
52 | 52 | $output->writeln('<error>' . $e->getMessage() . '</error>'); |
53 | 53 | } |
54 | 54 | } |
@@ -83,7 +83,7 @@ |
||
83 | 83 | |
84 | 84 | $jobs[ReplaceText::class]->handle( |
85 | 85 | '{{block_template}}', |
86 | - $namespace[0] . '_' . $namespace[1] . '::' . $input->getArgument('template') . '.phtml' , |
|
86 | + $namespace[0] . '_' . $namespace[1] . '::' . $input->getArgument('template') . '.phtml', |
|
87 | 87 | $this->appContainer->get('app_dir') . '/app/code/' . $namespace[0] . '/' . $namespace[1] . '/view/' |
88 | 88 | ); |
89 | 89 |