@@ -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. |
@@ -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 | } |
@@ -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 | } |
@@ -40,9 +40,9 @@ discard block |
||
40 | 40 | * @param string $name |
41 | 41 | * @return Author|string |
42 | 42 | */ |
43 | - public function name(string $name = null) : Author|string |
|
43 | + public function name(string $name = null) : Author | string |
|
44 | 44 | { |
45 | - if (! $name) { |
|
45 | + if (!$name) { |
|
46 | 46 | return $this->getName(); |
47 | 47 | } |
48 | 48 | |
@@ -57,9 +57,9 @@ discard block |
||
57 | 57 | * @param string $email |
58 | 58 | * @return Author|string |
59 | 59 | */ |
60 | - public function email(string $email = null) : Author|string |
|
60 | + public function email(string $email = null) : Author | string |
|
61 | 61 | { |
62 | - if (! $email) { |
|
62 | + if (!$email) { |
|
63 | 63 | return $this->getEmail(); |
64 | 64 | } |
65 | 65 | |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | */ |
88 | 88 | public function set(string $author) : Author |
89 | 89 | { |
90 | - if (! $this->valid()->author($author)) { |
|
90 | + if (!$this->valid()->author($author)) { |
|
91 | 91 | throw new InvalidAuthorException($author); |
92 | 92 | } |
93 | 93 |
@@ -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); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | protected function registerPublic() |
23 | 23 | { |
24 | 24 | Blade::directive( |
25 | - 'public', function ($file) : string { |
|
25 | + 'public', function($file) : string { |
|
26 | 26 | |
27 | 27 | $theme = Samurai::base()->current(); |
28 | 28 |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * @return void |
21 | 21 | */ |
22 | 22 | protected function registerPublic() |
23 | - { |
|
23 | + { |
|
24 | 24 | Blade::directive( |
25 | 25 | 'public', function ($file) : string { |
26 | 26 |
@@ -37,7 +37,7 @@ |
||
37 | 37 | $this->artisan($cmd)->assertExitCode(0); |
38 | 38 | |
39 | 39 | $this->artisan($cmd) |
40 | - ->expectsOutput($out) |
|
41 | - ->assertExitCode(ThemeExistsException::CODE); |
|
40 | + ->expectsOutput($out) |
|
41 | + ->assertExitCode(ThemeExistsException::CODE); |
|
42 | 42 | } |
43 | 43 | } |
44 | 44 | \ No newline at end of file |
@@ -7,7 +7,7 @@ |
||
7 | 7 | use Maestriam\Samurai\Tests\TestCase; |
8 | 8 | |
9 | 9 | class MakeThemeCommandTest extends TestCase |
10 | -{ |
|
10 | +{ |
|
11 | 11 | public function testMakeValidTheme() |
12 | 12 | { |
13 | 13 | $theme = 'bands/helloween'; |
@@ -18,11 +18,11 @@ discard block |
||
18 | 18 | */ |
19 | 19 | public function testWizardPassesAllQuests() |
20 | 20 | { |
21 | - $theme = 'bands/jethro-tull'; |
|
22 | - $author = 'Ian Anderson <ian@jethro tull.com>'; |
|
23 | - $descr = 'Aqualung, my friend'; |
|
21 | + $theme = 'bands/jethro-tull'; |
|
22 | + $author = 'Ian Anderson <ian@jethro tull.com>'; |
|
23 | + $descr = 'Aqualung, my friend'; |
|
24 | 24 | |
25 | - $this->assertSuccessfulWizard($theme, $author, $descr); |
|
25 | + $this->assertSuccessfulWizard($theme, $author, $descr); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
@@ -59,12 +59,12 @@ discard block |
||
59 | 59 | $output = sprintf('Theme [%s] created successful.', $theme); |
60 | 60 | |
61 | 61 | $this->artisan('samurai:init') |
62 | - ->expectsQuestion($quests->theme->ask, $theme) |
|
63 | - ->expectsQuestion($quests->author->ask, $author) |
|
64 | - ->expectsQuestion($quests->desc->ask, $desc) |
|
65 | - ->expectsConfirmation($confirm->ask, 'yes') |
|
66 | - ->expectsOutput($output) |
|
67 | - ->assertExitCode(0); |
|
62 | + ->expectsQuestion($quests->theme->ask, $theme) |
|
63 | + ->expectsQuestion($quests->author->ask, $author) |
|
64 | + ->expectsQuestion($quests->desc->ask, $desc) |
|
65 | + ->expectsConfirmation($confirm->ask, 'yes') |
|
66 | + ->expectsOutput($output) |
|
67 | + ->assertExitCode(0); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | /** |
@@ -102,10 +102,10 @@ discard block |
||
102 | 102 | $message = sprintf('Error to create theme: %s', $error); |
103 | 103 | |
104 | 104 | $this->artisan('samurai:init') |
105 | - ->expectsQuestion($quests->theme->ask, $theme) |
|
106 | - ->expectsQuestion($quests->author->ask, $author) |
|
107 | - ->expectsQuestion($quests->desc->ask, $desc) |
|
108 | - ->expectsConfirmation($confirm->ask, 'yes') |
|
109 | - ->expectsOutput($message); |
|
105 | + ->expectsQuestion($quests->theme->ask, $theme) |
|
106 | + ->expectsQuestion($quests->author->ask, $author) |
|
107 | + ->expectsQuestion($quests->desc->ask, $desc) |
|
108 | + ->expectsConfirmation($confirm->ask, 'yes') |
|
109 | + ->expectsOutput($message); |
|
110 | 110 | } |
111 | 111 | } |
112 | 112 | \ No newline at end of file |
@@ -7,7 +7,7 @@ |
||
7 | 7 | use Maestriam\Samurai\Tests\TestCase; |
8 | 8 | |
9 | 9 | class InitThemeCommandTest extends TestCase |
10 | -{ |
|
10 | +{ |
|
11 | 11 | /** |
12 | 12 | * Verifica se consegue percorrer por todas as pessoas |
13 | 13 | * |
@@ -9,7 +9,7 @@ |
||
9 | 9 | use Maestriam\Samurai\Tests\TestCase; |
10 | 10 | |
11 | 11 | class MakeIncludeCommandTest extends TestCase |
12 | -{ |
|
12 | +{ |
|
13 | 13 | public function testMakeValidInclude() |
14 | 14 | { |
15 | 15 | $theme = 'bands/slayer'; |