Passed
Push — master ( 5ae5fc...1c3f43 )
by Giuliano
18:52
created
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.
tests/Unit/Foundation/EnvHandler/GetEnvVariableTest.php 1 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.
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.