Failed Conditions
Branch feature/refactoring-samurai (8cc7c1)
by Giuliano
03:49
created
src/Foundation/FilenameParser.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,9 @@
 block discarded – undo
17 17
         $type = $this->parseType($file);
18 18
         $name = $this->parseFullName($file);
19 19
 
20
-        if (! $name || ! $type) return null;
20
+        if (! $name || ! $type) {
21
+            return null;
22
+        }
21 23
 
22 24
         $request = [
23 25
             'name' => $name,
Please login to merge, or discard this patch.
src/Entities/Structure.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -37,12 +37,12 @@
 block discarded – undo
37 37
         return $this->dir()->public($this->dist, $this->theme);        
38 38
     }
39 39
 
40
-     /**
41
-      * Retorna o caminho do diretório onde são armazenados
42
-      * os arquivos de assets (js/css/imgs)
43
-      *
44
-      * @return string
45
-      */
40
+        /**
41
+         * Retorna o caminho do diretório onde são armazenados
42
+         * os arquivos de assets (js/css/imgs)
43
+         *
44
+         * @return string
45
+         */
46 46
     public function assets() : string 
47 47
     {        
48 48
         return $this->dir()->assets($this->dist, $this->theme);
Please login to merge, or discard this patch.
tests/Feature/Console/MakeThemeCommandTest.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $this->artisan($cmd)->assertExitCode(0);
38 38
 
39 39
         $this->artisan($cmd)
40
-             ->expectsOutput($out)
41
-             ->assertExitCode(ThemeExistsException::CODE);
40
+                ->expectsOutput($out)
41
+                ->assertExitCode(ThemeExistsException::CODE);
42 42
     }
43 43
 }
44 44
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 use Maestriam\Samurai\Tests\TestCase;
8 8
 
9 9
 class MakeThemeCommandTest extends TestCase
10
-{    
10
+{
11 11
     public function testMakeValidTheme()
12 12
     {
13 13
         $theme = 'bands/helloween';
Please login to merge, or discard this patch.
tests/Feature/Console/InitThemeCommandTest.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@  discard block
 block discarded – undo
18 18
      */
19 19
     public function testWizardPassesAllQuests()
20 20
     {
21
-          $theme  = 'bands/jethro-tull';
22
-          $author = 'Ian Anderson <ian@jethro tull.com>';
23
-          $descr  = 'Aqualung, my friend';
21
+            $theme  = 'bands/jethro-tull';
22
+            $author = 'Ian Anderson <ian@jethro tull.com>';
23
+            $descr  = 'Aqualung, my friend';
24 24
 
25
-          $this->assertSuccessfulWizard($theme, $author, $descr);
25
+            $this->assertSuccessfulWizard($theme, $author, $descr);
26 26
     }
27 27
 
28 28
     /**
@@ -59,12 +59,12 @@  discard block
 block discarded – undo
59 59
         $output = sprintf('Theme [%s] created successful.', $theme);
60 60
 
61 61
         $this->artisan('samurai:init')
62
-             ->expectsQuestion($quests->theme->ask, $theme)
63
-             ->expectsQuestion($quests->author->ask, $author)
64
-             ->expectsQuestion($quests->desc->ask, $desc)
65
-             ->expectsConfirmation($confirm->ask, 'yes')
66
-             ->expectsOutput($output)
67
-             ->assertExitCode(0);
62
+                ->expectsQuestion($quests->theme->ask, $theme)
63
+                ->expectsQuestion($quests->author->ask, $author)
64
+                ->expectsQuestion($quests->desc->ask, $desc)
65
+                ->expectsConfirmation($confirm->ask, 'yes')
66
+                ->expectsOutput($output)
67
+                ->assertExitCode(0);
68 68
     }
69 69
 
70 70
     /**
@@ -102,10 +102,10 @@  discard block
 block discarded – undo
102 102
         $message = sprintf('Error to create theme: %s', $error);
103 103
 
104 104
         $this->artisan('samurai:init')
105
-             ->expectsQuestion($quests->theme->ask, $theme)
106
-             ->expectsQuestion($quests->author->ask, $author)
107
-             ->expectsQuestion($quests->desc->ask, $desc)
108
-             ->expectsConfirmation($confirm->ask, 'yes')
109
-             ->expectsOutput($message);
105
+                ->expectsQuestion($quests->theme->ask, $theme)
106
+                ->expectsQuestion($quests->author->ask, $author)
107
+                ->expectsQuestion($quests->desc->ask, $desc)
108
+                ->expectsConfirmation($confirm->ask, 'yes')
109
+                ->expectsOutput($message);
110 110
     }
111 111
 }
112 112
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 use Maestriam\Samurai\Tests\TestCase;
8 8
 
9 9
 class InitThemeCommandTest extends TestCase
10
-{       
10
+{
11 11
     /**
12 12
      * Verifica se consegue percorrer por todas as pessoas
13 13
      *
Please login to merge, or discard this patch.
tests/Feature/Console/MakeIncludeCommandTest.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 use Maestriam\Samurai\Tests\TestCase;
10 10
 
11 11
 class MakeIncludeCommandTest extends TestCase
12
-{    
12
+{
13 13
     public function testMakeValidInclude()
14 14
     {
15 15
         $theme = 'bands/slayer';
Please login to merge, or discard this patch.
tests/Feature/Console/RefreshProjectCommandTest.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 use Maestriam\Samurai\Tests\TestCase;
6 6
 
7 7
 class RefreshProjectCommandTest extends TestCase
8
-{    
8
+{
9 9
     public function testMakeValidTheme()
10 10
     {
11 11
         $cmd = 'samurai:refresh';
Please login to merge, or discard this patch.
tests/Feature/Console/MakeComponentCommandTest.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,11 +48,11 @@
 block discarded – undo
48 48
         $msg = sprintf($error, $name, $theme);
49 49
 
50 50
         $this->artisan($cmd)
51
-             ->assertExitCode(0);
51
+                ->assertExitCode(0);
52 52
 
53 53
         $this->artisan($cmd)
54
-             ->expectsOutput($msg)
55
-             ->assertExitCode(DirectiveExistsException::CODE);
54
+                ->expectsOutput($msg)
55
+                ->assertExitCode(DirectiveExistsException::CODE);
56 56
 
57 57
     }
58 58
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 use Maestriam\Samurai\Tests\TestCase;
9 9
 
10 10
 class MakeComponentCommandTest extends TestCase
11
-{    
11
+{
12 12
     public function testMakeValidComponent()
13 13
     {
14 14
         $theme = 'bands/sepultura';
Please login to merge, or discard this patch.
tests/Feature/Console/PublishThemeCommandTest.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 use Maestriam\Samurai\Tests\TestCase;
7 7
 
8 8
 class PublishThemeCommandTest extends TestCase
9
-{    
9
+{
10 10
     public function testPublishValidTheme()
11 11
     {
12 12
         $theme = 'bands/sodom';
Please login to merge, or discard this patch.
tests/Feature/Console/UseThemeCommandTest.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@
 block discarded – undo
15 15
         $message = $this->getSuccessMessage($theme->package());
16 16
 
17 17
         $this->artisan($cmd)
18
-             ->assertExitCode(0)
19
-             ->expectsOutput($message);
18
+                ->assertExitCode(0)
19
+                ->expectsOutput($message);
20 20
 
21 21
         $current = Samurai::base()->current();
22 22
         
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 use Maestriam\Samurai\Tests\TestCase;
7 7
 
8 8
 class UseThemeCommandTest extends TestCase
9
-{    
9
+{
10 10
     public function testMakeValidTheme()
11 11
     {
12 12
         $theme = $this->theme('bands/saxon')->findOrCreate();
Please login to merge, or discard this patch.