@@ -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 |
@@ -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 |
@@ -15,7 +15,7 @@ |
||
15 | 15 | |
16 | 16 | $theme->make(); |
17 | 17 | |
18 | - $file = $theme->paths()->root() . '/composer.json'; |
|
18 | + $file = $theme->paths()->root().'/composer.json'; |
|
19 | 19 | |
20 | 20 | $composer = new Composer($theme); |
21 | 21 |
@@ -38,7 +38,7 @@ |
||
38 | 38 | $public = $this->getPublishable(); |
39 | 39 | $domain = $this->registerDomain(); |
40 | 40 | |
41 | - $file = '/' . $file ?? ''; |
|
41 | + $file = '/'.$file ?? ''; |
|
42 | 42 | |
43 | 43 | return sprintf("%s/%s/%s%s", $domain, $public, $theme, $file); |
44 | 44 | } |
@@ -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 |
@@ -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); |
@@ -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); |
@@ -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 |
@@ -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' => [ |