Passed
Branch master (94ee9e)
by Dmitrij
03:17
created
Category
src/Jobs/Xml/AddRoute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/AppContainer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Commands/Classes/CreateBlockCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Commands/Classes/CreateControllerCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Commands/Module/CreateCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Commands/Xml/CreateLayoutCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.