Failed Conditions
Branch feature/refactoring-samurai (8cc7c1)
by Giuliano
03:47
created
src/Contracts/Entities/ComposerContract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,5 +22,5 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Contracts/Foundation/DirectiveParserContract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,5 +21,5 @@
 block discarded – undo
21 21
      *
22 22
      * @return Component|Includer
23 23
      */
24
-    public function toDirective() : Component|Includer;
24
+    public function toDirective() : Component | Includer;
25 25
 }
Please login to merge, or discard this patch.
src/Entities/Author.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -40,9 +40,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         
Please login to merge, or discard this patch.
src/Providers/RegistersCustomDirectiveProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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
             
Please login to merge, or discard this patch.
tests/Unit/Entities/Composer/LoadComposerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/Unit/Entities/Theme/ThemeURLTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
tests/Unit/Entities/Vendor/VendorTestCase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@
 block discarded – undo
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
         
Please login to merge, or discard this patch.
tests/Unit/Foundation/FilenameParser/FilenameParserTestCase.php 1 patch
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.
tests/Unit/Foundation/ConfigKeeper/GetThemeBaseTest.php 1 patch
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.