Test Failed
Branch feature/refactoring-samurai (c331fd)
by Giuliano
04:50
created
src/Contracts/Entities/DirectiveContract.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      *
58 58
      * @return Component|Includer
59 59
      */
60
-    public function create() : Component|Includer;
60
+    public function create() : Component | Includer;
61 61
 
62 62
     /**
63 63
      * Carrega a diretiva para ser utilizada dentro da aplicação Laravel,
@@ -65,5 +65,5 @@  discard block
 block discarded – undo
65 65
      *
66 66
      * @return Component|Includer
67 67
      */
68
-    public function load() : Component|Includer;
68
+    public function load() : Component | Includer;
69 69
 }
Please login to merge, or discard this patch.
src/Contracts/Entities/ThemeContract.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      * @param  string $author
29 29
      * @return Author|Theme
30 30
      */
31
-    public function author(string $author = null) : Author|Theme;
31
+    public function author(string $author = null) : Author | Theme;
32 32
 
33 33
     /**
34 34
      * Retorna o nome do tema
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      * @param  string $description
90 90
      * @return Theme|string
91 91
      */
92
-    public function description(string $description = null) : Theme|string;
92
+    public function description(string $description = null) : Theme | string;
93 93
 
94 94
     /**
95 95
      * Cria um novo tema dentro do projeto.
Please login to merge, or discard this patch.
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/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.
src/Providers/SamuraiServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 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
         );
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     protected function registerConfigs()
46 46
     {
47
-        $source    = __DIR__.'/../Config/config.php';
47
+        $source    = __DIR__ . '/../Config/config.php';
48 48
         $published = config_path('samurai.php');
49 49
 
50 50
         $this->publishes([$source => $published], 'samurai');
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.
src/Foundation/FilenameParser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 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) { return null;
21 21
         }
22 22
 
23 23
         $request = [
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         $name   = $this->parseOnlyName($file);
41 41
         $folder = $this->parseFolder($file);
42 42
         
43
-        if (! $name) {
43
+        if (!$name) {
44 44
             return null;
45 45
         }
46 46
         
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 
134 134
         $name = (count($pieces) > 1) ? implode(DS, $pieces) : $pieces[0];
135 135
 
136
-        return (! strlen($name)) ? null : $name;
136
+        return (!strlen($name)) ? null : $name;
137 137
     }
138 138
 
139 139
     /**
Please login to merge, or discard this patch.