@@ -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); |
@@ -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 |
@@ -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 |
@@ -48,11 +48,11 @@ |
||
48 | 48 | $msg = sprintf($error, $name, $theme); |
49 | 49 | |
50 | 50 | $this->artisan($cmd) |
51 | - ->assertExitCode(0); |
|
51 | + ->assertExitCode(0); |
|
52 | 52 | |
53 | 53 | $this->artisan($cmd) |
54 | - ->expectsOutput($msg) |
|
55 | - ->assertExitCode(DirectiveExistsException::CODE); |
|
54 | + ->expectsOutput($msg) |
|
55 | + ->assertExitCode(DirectiveExistsException::CODE); |
|
56 | 56 | |
57 | 57 | } |
58 | 58 |
@@ -15,8 +15,8 @@ |
||
15 | 15 | $message = $this->getSuccessMessage($theme->package()); |
16 | 16 | |
17 | 17 | $this->artisan($cmd) |
18 | - ->assertExitCode(0) |
|
19 | - ->expectsOutput($message); |
|
18 | + ->assertExitCode(0) |
|
19 | + ->expectsOutput($message); |
|
20 | 20 | |
21 | 21 | $current = Samurai::base()->current(); |
22 | 22 |
@@ -54,7 +54,7 @@ |
||
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
57 | - * Verifica se é possível tentar recuperar uma chave, passando |
|
57 | + * Verifica se é possível tentar recuperar uma chave, passando |
|
58 | 58 | * tipos diferentes de string |
59 | 59 | * Por padrão, deve emitir um ErrorException |
60 | 60 | * |
@@ -278,10 +278,10 @@ |
||
278 | 278 | private function init(string $package) : Theme |
279 | 279 | { |
280 | 280 | $this->setVendor($package) |
281 | - ->setDirectiveFinder() |
|
282 | - ->setComposer() |
|
283 | - ->setStructure() |
|
284 | - ->setPublisher(); |
|
281 | + ->setDirectiveFinder() |
|
282 | + ->setComposer() |
|
283 | + ->setStructure() |
|
284 | + ->setPublisher(); |
|
285 | 285 | |
286 | 286 | if ($this->exists()) { |
287 | 287 | return $this->import(); |