@@ -21,7 +21,7 @@ |
||
21 | 21 | */ |
22 | 22 | protected function registerPublic() |
23 | 23 | { |
24 | - Blade::directive('public', function ($file) : string { |
|
24 | + Blade::directive('public', function($file) : string { |
|
25 | 25 | |
26 | 26 | $theme = Samurai::base()->current(); |
27 | 27 |
@@ -21,5 +21,5 @@ |
||
21 | 21 | * |
22 | 22 | * @return Component|Includer |
23 | 23 | */ |
24 | - public function toDirective() : Component|Includer; |
|
24 | + public function toDirective() : Component | Includer; |
|
25 | 25 | } |
26 | 26 | \ No newline at end of file |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | * |
58 | 58 | * @return Component|Includer |
59 | 59 | */ |
60 | - public function create() : Component|Includer; |
|
60 | + public function create() : Component | Includer; |
|
61 | 61 | |
62 | 62 | /** |
63 | 63 | * Carrega a diretiva para ser utilizada dentro da aplicação Laravel, |
@@ -65,5 +65,5 @@ discard block |
||
65 | 65 | * |
66 | 66 | * @return Component|Includer |
67 | 67 | */ |
68 | - public function load() : Component|Includer; |
|
68 | + public function load() : Component | Includer; |
|
69 | 69 | } |
70 | 70 | \ No newline at end of file |
@@ -22,5 +22,5 @@ |
||
22 | 22 | * @param string $desc |
23 | 23 | * @return string|Composer |
24 | 24 | */ |
25 | - public function description(string $desc = null) : string|Composer; |
|
25 | + public function description(string $desc = null) : string | Composer; |
|
26 | 26 | } |
27 | 27 | \ No newline at end of file |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * @param string $author |
29 | 29 | * @return Author|Theme |
30 | 30 | */ |
31 | - public function author(string $author = null) : Author|Theme; |
|
31 | + public function author(string $author = null) : Author | Theme; |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * Retorna o nome do tema |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * @param string $description |
90 | 90 | * @return Theme|string |
91 | 91 | */ |
92 | - public function description(string $description = null) : Theme|string; |
|
92 | + public function description(string $description = null) : Theme | string; |
|
93 | 93 | |
94 | 94 | /** |
95 | 95 | * Cria um novo tema dentro do projeto. |
@@ -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 |
@@ -37,12 +37,12 @@ |
||
37 | 37 | return $this->dir()->public($this->dist, $this->theme); |
38 | 38 | } |
39 | 39 | |
40 | - /** |
|
41 | - * Retorna o caminho do diretório onde são armazenados |
|
42 | - * os arquivos de assets (js/css/imgs) |
|
43 | - * |
|
44 | - * @return string |
|
45 | - */ |
|
40 | + /** |
|
41 | + * Retorna o caminho do diretório onde são armazenados |
|
42 | + * os arquivos de assets (js/css/imgs) |
|
43 | + * |
|
44 | + * @return string |
|
45 | + */ |
|
46 | 46 | public function assets() : string |
47 | 47 | { |
48 | 48 | return $this->dir()->assets($this->dist, $this->theme); |