@@ -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' |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | private function registerFacade() |
| 32 | 32 | { |
| 33 | 33 | $this->app->bind( |
| 34 | - 'samurai', function () { |
|
| 34 | + 'samurai', function() { |
|
| 35 | 35 | return new Samurai(); |
| 36 | 36 | } |
| 37 | 37 | ); |
@@ -220,7 +220,7 @@ |
||
| 220 | 220 | */ |
| 221 | 221 | public function load() : Theme |
| 222 | 222 | { |
| 223 | - foreach ($this->directives() as $directive) { |
|
| 223 | + foreach ($this->directives() as $directive) { |
|
| 224 | 224 | $directive->load(); |
| 225 | 225 | } |
| 226 | 226 | |
@@ -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(); |
@@ -71,9 +71,9 @@ discard block |
||
| 71 | 71 | /** |
| 72 | 72 | * {@inheritDoc} |
| 73 | 73 | */ |
| 74 | - public function author(string $author = null) : Author|Theme |
|
| 74 | + public function author(string $author = null) : Author | Theme |
|
| 75 | 75 | { |
| 76 | - if (! $author) { |
|
| 76 | + if (!$author) { |
|
| 77 | 77 | return $this->getAuthor(); |
| 78 | 78 | } |
| 79 | 79 | |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | */ |
| 134 | 134 | public function find() : ?Theme |
| 135 | 135 | { |
| 136 | - if (! $this->exists()) { |
|
| 136 | + if (!$this->exists()) { |
|
| 137 | 137 | return null; |
| 138 | 138 | } |
| 139 | 139 | |
@@ -143,9 +143,9 @@ discard block |
||
| 143 | 143 | /** |
| 144 | 144 | * {@inheritDoc} |
| 145 | 145 | */ |
| 146 | - public function description(string $description = null) : Theme|string |
|
| 146 | + public function description(string $description = null) : Theme | string |
|
| 147 | 147 | { |
| 148 | - if (! $description) { |
|
| 148 | + if (!$description) { |
|
| 149 | 149 | return $this->composer()->description(); |
| 150 | 150 | } |
| 151 | 151 | |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | */ |
| 176 | 176 | public function findOrCreate() : Theme |
| 177 | 177 | { |
| 178 | - if (! $this->exists()) { |
|
| 178 | + if (!$this->exists()) { |
|
| 179 | 179 | return $this->make(); |
| 180 | 180 | } |
| 181 | 181 | |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | $public = $this->config()->publishable(); |
| 248 | 248 | $package = $this->package(); |
| 249 | 249 | |
| 250 | - $file = '/' . $file ?? ''; |
|
| 250 | + $file = '/'.$file ?? ''; |
|
| 251 | 251 | $file = str_replace("'", "", $file); |
| 252 | 252 | |
| 253 | 253 | return sprintf('%s/%s/%s%s', $domain, $public, $package, $file); |