Passed
Push — master ( 5ae5fc...1c3f43 )
by Giuliano
18:52
created
tests/Unit/Foundation/FilenameParser/FilenameParserTestCase.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
tests/Unit/Foundation/FileNominator/FileNominatorTestCase.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      * @return void
18 18
      */
19 19
     public function testIncludeName()
20
-    {        
20
+    {
21 21
         $type = 'include';        
22 22
         $name = 'table';        
23 23
 
Please login to merge, or discard this patch.
tests/Unit/Foundation/ConfigKeeper/GetThemeBaseTest.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
tests/Unit/Foundation/EnvHandler/GetEnvVariableTest.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
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
      *
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
tests/Unit/Foundation/EnvHandler/EnvHandlerTestCase.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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
         
Please login to merge, or discard this patch.
tests/TestCase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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' => [
Please login to merge, or discard this patch.
src/Config/config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
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'
Please login to merge, or discard this patch.
src/Providers/SamuraiServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
src/Entities/Theme.php 3 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -278,10 +278,10 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -71,9 +71,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.