Test Failed
Branch feature/refactoring-samurai (56de49)
by Giuliano
04:55
created
src/Foundation/FileNominator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      */
19 19
     public function directive(string $name, string $type) : string
20 20
     {
21
-        return $name . '-' .$type;
21
+        return $name . '-' . $type;
22 22
     }
23 23
 
24 24
     /**
Please login to merge, or discard this patch.
src/Foundation/DirectiveParser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     /**
61 61
      * {@inheritDoc}
62 62
      */
63
-    public function toDirective() : Component|Includer
63
+    public function toDirective() : Component | Includer
64 64
     {
65 65
         return ($this->type == 'component') ? $this->toComponent() : $this->toIncluder();
66 66
     }
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 
168 168
         $this->type = array_pop($part);
169 169
 
170
-        if (! $this->validator()->type($this->type)) {
170
+        if (!$this->validator()->type($this->type)) {
171 171
             throw new InvalidTypeDirectiveException($this->type);
172 172
         }
173 173
 
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      */
184 184
     private function setSentence() : DirectiveParser
185 185
     {
186
-        $search = '-' . $this->type. '.blade';
186
+        $search = '-' . $this->type . '.blade';
187 187
 
188 188
         $sentence = str_replace($search, '', $this->relative);
189 189
         $sentence = str_replace('.php', '', $sentence);
Please login to merge, or discard this patch.
src/Foundation/DirectiveFinder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 
30 30
         $files = $this->readFiles();
31 31
 
32
-        foreach($files as $file) {
32
+        foreach ($files as $file) {
33 33
             $directives[] = $this->parser()->parse($file)->toDirective();
34 34
         }
35 35
 
Please login to merge, or discard this patch.
src/Foundation/SyntaxValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
             return false;
63 63
         }
64 64
 
65
-        if (! preg_match($onlyValidChars, $name)) {
65
+        if (!preg_match($onlyValidChars, $name)) {
66 66
             return false;
67 67
         }
68 68
         
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      */
79 79
     public function type(string $type = null) : bool
80 80
     {   
81
-        if (! $type) {
81
+        if (!$type) {
82 82
             return false;
83 83
         }
84 84
 
Please login to merge, or discard this patch.
src/Foundation/ThemeSearch.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public function findOrBuild() : Theme
43 43
     {
44
-        if (! $this->exists()) {
44
+        if (!$this->exists()) {
45 45
             return $this->build();
46 46
         }
47 47
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function get() : ?Theme
58 58
     {
59
-        if (! $this->exists()) {
59
+        if (!$this->exists()) {
60 60
             return null;
61 61
         }
62 62
 
Please login to merge, or discard this patch.
src/Foundation/DirectoryStructure.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function public(string $vendor, string $name) : string
83 83
     {
84
-        return  public_path('themes'. DS . $vendor . DS . $name);
84
+        return  public_path('themes' . DS . $vendor . DS . $name);
85 85
     }
86 86
 
87 87
     /**
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 
98 98
         $pieces = explode(DS, $dir);
99 99
 
100
-        return ($path == true ) ? $dir : end($pieces);
100
+        return ($path == true) ? $dir : end($pieces);
101 101
     }
102 102
 
103 103
     /**
Please login to merge, or discard this patch.
src/Console/InitThemeCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             $author = $this->askAuthor();            
42 42
             $descr  = $this->askDescription();   
43 43
             
44
-            if (! $this->beSure($name, $author, $descr)) {
44
+            if (!$this->beSure($name, $author, $descr)) {
45 45
                 return false;
46 46
             }
47 47
             
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     {
105 105
         $answer = $this->ask($question->ask);
106 106
 
107
-        return (! $answer || empty($answer)) ? $question->default : $answer;
107
+        return (!$answer || empty($answer)) ? $question->default : $answer;
108 108
     } 
109 109
 
110 110
     /**
Please login to merge, or discard this patch.
src/Entities/Wizard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
 
85 85
         $preview = $theme->preview();
86 86
 
87
-        $question = 'Confirm? '. PHP_EOL . $preview;
87
+        $question = 'Confirm? ' . PHP_EOL . $preview;
88 88
 
89 89
         return $this->question($question, false);
90 90
     }
Please login to merge, or discard this patch.
src/Entities/Foundation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     protected function config() : ConfigKeeper
119 119
     {
120
-        if (! $this->config) {
120
+        if (!$this->config) {
121 121
             $this->config = new ConfigKeeper();
122 122
         }
123 123
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
      */
148 148
     protected function env() : EnvHandler
149 149
     {
150
-        if (! $this->env) {
150
+        if (!$this->env) {
151 151
             $this->env = new EnvHandler();
152 152
         }
153 153
 
Please login to merge, or discard this patch.