@@ -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 | |
@@ -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); |