@@ -18,7 +18,7 @@ |
||
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 | /** |
@@ -60,7 +60,7 @@ discard block |
||
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 |
||
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 |
||
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); |
@@ -29,7 +29,7 @@ |
||
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 |
@@ -62,7 +62,7 @@ discard block |
||
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 |
||
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 |
@@ -41,7 +41,7 @@ discard block |
||
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 |
||
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 |
@@ -81,7 +81,7 @@ discard block |
||
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 |
||
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 | /** |
@@ -41,7 +41,7 @@ discard block |
||
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 |
||
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 | /** |
@@ -84,7 +84,7 @@ |
||
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 | } |
@@ -117,7 +117,7 @@ discard block |
||
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 |
||
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 |