Test Failed
Branch feature/refactoring-samurai (56de49)
by Giuliano
04:55
created
src/Entities/Vendor.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     public function namespace() : string
70 70
     {
71
-        return ucfirst($this->distributor) ."/". ucfirst($this->name);
71
+        return ucfirst($this->distributor) . "/" . ucfirst($this->name);
72 72
     }
73 73
 
74 74
     /**
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     private function setPackage(string $package) : Vendor
81 81
     {
82
-        if (! $this->valid()->vendor($package)) {
82
+        if (!$this->valid()->vendor($package)) {
83 83
             throw new InvalidThemeNameException($package);
84 84
         }
85 85
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     private function parsePackage(): Vendor
97 97
     {
98
-        if (! $this->package) {
98
+        if (!$this->package) {
99 99
             throw new InvalidThemeNameException($this->package);
100 100
         }
101 101
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      */
145 145
     private function setName(string $name) : Vendor
146 146
     {
147
-        if (! $this->valid()->theme($name)) {
147
+        if (!$this->valid()->theme($name)) {
148 148
             throw new InvalidThemeNameException($name);
149 149
         }
150 150
 
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      */
161 161
     private function setDist(string $dist) : Vendor
162 162
     {
163
-        if (! $this->valid()->theme($dist)) {
163
+        if (!$this->valid()->theme($dist)) {
164 164
             throw new InvalidThemeNameException($dist);
165 165
         }
166 166
 
Please login to merge, or discard this patch.
src/Entities/Composer.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,9 +54,9 @@  discard block
 block discarded – undo
54 54
     /**
55 55
      * {@inheritDoc}
56 56
      */
57
-    public function description(string $desc = null) : string|Composer
57
+    public function description(string $desc = null) : string | Composer
58 58
     {
59
-        if (! $desc) {
59
+        if (!$desc) {
60 60
             return $this->getDescription();
61 61
         }
62 62
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 
101 101
         $json = json_decode($content);        
102 102
 
103
-        if (! $this->isValid($json)) {           
103
+        if (!$this->isValid($json)) {           
104 104
             throw new InvalidComposerFileException($pack);
105 105
         }       
106 106
         
@@ -205,12 +205,12 @@  discard block
 block discarded – undo
205 205
         $keys = ['name', 'description', 'type', 'require', 'authors'];
206 206
 
207 207
         foreach ($keys as $k) {            
208
-            if (! property_exists($json, $k) || $json->$k == null) {
208
+            if (!property_exists($json, $k) || $json->$k == null) {
209 209
                 return false;   
210 210
             }            
211 211
         }
212 212
 
213
-        if (! is_array($json->authors) || empty($json->authors)) {
213
+        if (!is_array($json->authors) || empty($json->authors)) {
214 214
             return false;
215 215
         }
216 216
 
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
      */
239 239
     private function setPath(string $path) : Composer
240 240
     {
241
-        if (! is_file($path)) {
241
+        if (!is_file($path)) {
242 242
             throw new \Exception('');
243 243
         }
244 244
 
Please login to merge, or discard this patch.
src/Entities/Directive.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     /**
141 141
      * {@inheritDoc}
142 142
      */
143
-    public function create() : Component|Includer
143
+    public function create() : Component | Includer
144 144
     {
145 145
         if ($this->exists()) {
146 146
             throw new DirectiveExistsException($this->name(), $this->theme()->package());
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     /**
157 157
      * {@inheritDoc}
158 158
      */
159
-    public function load() : Component|Includer
159
+    public function load() : Component | Includer
160 160
     {                              
161 161
         $namespace = $this->theme()->namespace();
162 162
         
@@ -276,11 +276,11 @@  discard block
 block discarded – undo
276 276
     {
277 277
         $parsed = $this->parser()->filename($sentence);
278 278
 
279
-        if (! $parsed) {
279
+        if (!$parsed) {
280 280
             throw new InvalidDirectiveNameException($sentence);
281 281
         }
282 282
 
283
-        if (! $this->valid()->directive($parsed->name)) {
283
+        if (!$this->valid()->directive($parsed->name)) {
284 284
             throw new InvalidDirectiveNameException($sentence);
285 285
         }
286 286
 
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
      */
298 298
     protected function setType(string $type) : Directive
299 299
     {
300
-        if (! $this->valid()->type($type)) {
300
+        if (!$this->valid()->type($type)) {
301 301
             throw new InvalidTypeDirectiveException($type);
302 302
         }
303 303
 
Please login to merge, or discard this patch.
src/Entities/Base.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     {
16 16
         $themes = [];
17 17
 
18
-        foreach($this->readBase() as $folder) {
18
+        foreach ($this->readBase() as $folder) {
19 19
 
20 20
             $theme = $this->find($folder);
21 21
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
         $current = $this->env()->get($key);
40 40
 
41
-        if (! $current) {
41
+        if (!$current) {
42 42
             return null;
43 43
         }
44 44
 
Please login to merge, or discard this patch.
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.