@@ -16,8 +16,8 @@ |
||
16 | 16 | $dist = 'maestriam'; |
17 | 17 | $name = 'samurai'; |
18 | 18 | |
19 | - $nspace = ucfirst($dist) ."/". ucfirst($name); |
|
20 | - $package = $dist ."/". $name; |
|
19 | + $nspace = ucfirst($dist)."/".ucfirst($name); |
|
20 | + $package = $dist."/".$name; |
|
21 | 21 | |
22 | 22 | $vendor = new Vendor($package); |
23 | 23 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | class GetInfoFromFileTest extends TestCase |
10 | 10 | { |
11 | 11 | public function testGetInfoFromFilename() |
12 | - { |
|
12 | + { |
|
13 | 13 | $theme = $this->theme('bands/blind-guardian')->findOrCreate(); |
14 | 14 | $parser = new DirectiveParser($theme); |
15 | 15 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | { |
27 | 27 | $folder = 'table/includes/'; |
28 | 28 | $name = 'table-include.blade.php'; |
29 | - $file = $folder . $name; |
|
29 | + $file = $folder.$name; |
|
30 | 30 | |
31 | 31 | $parser = new FilenameParser(); |
32 | 32 | $info = $parser->filename($file); |
@@ -55,7 +55,7 @@ |
||
55 | 55 | } |
56 | 56 | |
57 | 57 | protected function assertFileName($info, string $name) |
58 | - { |
|
58 | + { |
|
59 | 59 | $this->assertObjectHasAttribute('name', $info); |
60 | 60 | $this->assertEquals($info->name, $name); |
61 | 61 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | * @return void |
18 | 18 | */ |
19 | 19 | public function testIncludeName() |
20 | - { |
|
20 | + { |
|
21 | 21 | $type = 'include'; |
22 | 22 | $name = 'table'; |
23 | 23 |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | public function testGetBasePath() |
22 | 22 | { |
23 | 23 | $config = $this->getConfigKeeper(); |
24 | - $folder = base_path('bands/kiss') . DS; |
|
24 | + $folder = base_path('bands/kiss').DS; |
|
25 | 25 | $folder = FileSystem::folder($folder)->sanitize(); |
26 | 26 | |
27 | 27 | $this->setThemeBase($folder); |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | $this->setThemeBase(null); |
44 | 44 | |
45 | 45 | $config = $this->getConfigKeeper(); |
46 | - $default = base_path('themes') . DS; |
|
46 | + $default = base_path('themes').DS; |
|
47 | 47 | $default = FileSystem::folder($default)->sanitize(); |
48 | 48 | |
49 | 49 | $this->assertConfigKey($config->base(), $default); |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | * @return void |
20 | 20 | */ |
21 | 21 | public function testGetBasePath() |
22 | - { |
|
22 | + { |
|
23 | 23 | $config = $this->getConfigKeeper(); |
24 | 24 | $folder = base_path('bands/kiss') . DS; |
25 | 25 | $folder = FileSystem::folder($folder)->sanitize(); |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * @return void |
40 | 40 | */ |
41 | 41 | public function testGetDefaultBasePath() |
42 | - { |
|
42 | + { |
|
43 | 43 | $this->setThemeBase(null); |
44 | 44 | |
45 | 45 | $config = $this->getConfigKeeper(); |
@@ -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 | * |
@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | public function testGetEnvVariableInvalid() |
30 | 30 | { |
31 | - $key = 'THEME_CURRENT_' . time(); |
|
31 | + $key = 'THEME_CURRENT_'.time(); |
|
32 | 32 | |
33 | 33 | $handler = new EnvHandler(); |
34 | 34 |
@@ -43,7 +43,7 @@ |
||
43 | 43 | * @return void |
44 | 44 | */ |
45 | 45 | public function testGeWithtNullableKey() |
46 | - { |
|
46 | + { |
|
47 | 47 | $handler = new EnvHandler(); |
48 | 48 | |
49 | 49 | $this->expectException(\ArgumentCountError::class); |
@@ -27,7 +27,7 @@ |
||
27 | 27 | * @return void |
28 | 28 | */ |
29 | 29 | public function testGetAndSetEnvVariable() |
30 | - { |
|
30 | + { |
|
31 | 31 | $key = 'THEME_CURRENT'; |
32 | 32 | $val = 'bands/kix'; |
33 | 33 |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | 'env_file' => '.env.testing', |
57 | 57 | 'publishable' => 'themes', |
58 | 58 | 'description' => 'A new awsome theme is comming!', |
59 | - 'template_path' => __DIR__ . '/../stubs/', |
|
59 | + 'template_path' => __DIR__.'/../stubs/', |
|
60 | 60 | |
61 | 61 | 'species' => [ |
62 | 62 | 'component', 'include' |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | 'themes' => [ |
66 | 66 | 'files' => 'src', |
67 | 67 | 'assets' => 'assets', |
68 | - 'folder' => __DIR__ . '/../sandbox', |
|
68 | + 'folder' => __DIR__.'/../sandbox', |
|
69 | 69 | ], |
70 | 70 | |
71 | 71 | 'author' => [ |
@@ -6,7 +6,7 @@ |
||
6 | 6 | 'env_file' => '.env.', |
7 | 7 | 'publishable' => 'themes', |
8 | 8 | 'description' => 'A new awsome theme is comming!', |
9 | - 'template_path' => __DIR__ . '/../../stubs/', |
|
9 | + 'template_path' => __DIR__.'/../../stubs/', |
|
10 | 10 | |
11 | 11 | 'species' => [ |
12 | 12 | 'component', 'include' |