Test Setup Failed
Branch master (ed297f)
by Giuliano
10:07
created
src/Models/Base.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,9 @@
 block discarded – undo
25 25
 
26 26
             $theme = $this->themefy($folder);
27 27
 
28
-            if ($theme == null) continue;
28
+            if ($theme == null) {
29
+                continue;
30
+            }
29 31
 
30 32
             $themes[] = $theme;
31 33
         }
Please login to merge, or discard this patch.
src/Models/Directive.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -50,11 +50,11 @@  discard block
 block discarded – undo
50 50
      */
51 51
     private $path = '';
52 52
 
53
-   /**
54
-    * Apelido pelo qual é chamado dentro do projeto
55
-    *
56
-    * @var string
57
-    */
53
+    /**
54
+     * Apelido pelo qual é chamado dentro do projeto
55
+     *
56
+     * @var string
57
+     */
58 58
     private $alias = '';
59 59
 
60 60
     /**
@@ -68,13 +68,13 @@  discard block
 block discarded – undo
68 68
     public function __construct(string $sentence, string $type, Theme $theme)
69 69
     {
70 70
         $this->setSentence($sentence)
71
-             ->setTheme($theme)
72
-             ->setType($type)
73
-             ->setName($sentence)
74
-             ->setAlias($sentence)
75
-             ->setFilename()
76
-             ->setFolder($sentence)
77
-             ->setPath($sentence);
71
+                ->setTheme($theme)
72
+                ->setType($type)
73
+                ->setName($sentence)
74
+                ->setAlias($sentence)
75
+                ->setFilename()
76
+                ->setFolder($sentence)
77
+                ->setPath($sentence);
78 78
     }
79 79
 
80 80
     /**
Please login to merge, or discard this patch.
src/Models/Wizard.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,8 +70,8 @@
 block discarded – undo
70 70
     public function confirm($vendor, $author, $desc) : stdClass
71 71
     {
72 72
         $this->setVendor($vendor)
73
-             ->setAuthor($author)
74
-             ->setDescription($desc);
73
+                ->setAuthor($author)
74
+                ->setDescription($desc);
75 75
 
76 76
         $preview = $this->getComposer();
77 77
         $ask     = 'Confirm? '. PHP_EOL . $preview;
Please login to merge, or discard this patch.
src/Traits/Theme/Accessors.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@  discard block
 block discarded – undo
26 26
         $vendor = $this->parser()->vendor($this->vendor);
27 27
 
28 28
         $this->setName($vendor->name)
29
-             ->setDistributor($vendor->distributor)
30
-             ->setNamespace($vendor->name)
31
-             ->setPath($vendor->distributor, $vendor->name);
29
+                ->setDistributor($vendor->distributor)
30
+                ->setNamespace($vendor->name)
31
+                ->setPath($vendor->distributor, $vendor->name);
32 32
     }
33 33
 
34 34
     /**
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
         return $this;
125 125
     }
126 126
 
127
-   /**
127
+    /**
128 128
      * Define o caminho-base do tema
129 129
      *
130 130
      * @param string $name
Please login to merge, or discard this patch.
src/Traits/Theme/DirectiveHandling.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,7 +18,9 @@  discard block
 block discarded – undo
18 18
     {
19 19
         $files = $this->scan();
20 20
 
21
-        if (empty($files)) return [];
21
+        if (empty($files)) {
22
+            return [];
23
+        }
22 24
 
23 25
         $collection = [];
24 26
 
@@ -26,7 +28,9 @@  discard block
 block discarded – undo
26 28
 
27 29
             $request = $this->parseFilePath($path);
28 30
 
29
-            if ($request == null) continue;
31
+            if ($request == null) {
32
+                continue;
33
+            }
30 34
 
31 35
             $obj = $this->directivefy($request->name, $request->type);
32 36
 
@@ -91,7 +95,9 @@  discard block
 block discarded – undo
91 95
     {
92 96
         $directives = $this->directives();
93 97
 
94
-        if (empty($directives)) return true;
98
+        if (empty($directives)) {
99
+            return true;
100
+        }
95 101
 
96 102
         foreach($directives as $directive) {
97 103
             $directive->load();
Please login to merge, or discard this patch.
src/Foundation/EnvHandler.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,9 @@  discard block
 block discarded – undo
41 41
     {
42 42
         $no = $this->existsKey($key);
43 43
 
44
-        if ($no === null) return null;
44
+        if ($no === null) {
45
+            return null;
46
+        }
45 47
 
46 48
         $lines = $this->lines();
47 49
 
@@ -64,7 +66,9 @@  discard block
 block discarded – undo
64 66
         $lines   = $this->lines();
65 67
         $pattern = strtoupper('/'. $key . '=/');
66 68
 
67
-        if (empty($lines)) return null;
69
+        if (empty($lines)) {
70
+            return null;
71
+        }
68 72
 
69 73
         foreach($lines as $no => $line) {
70 74
             if (preg_match($pattern, $line)) {
Please login to merge, or discard this patch.
src/Foundation/StructureDirectory.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,9 @@
 block discarded – undo
40 40
         $base   = $this->base();
41 41
         $finded = $this->findVendor($vendor, $name);
42 42
 
43
-        if ($finded) return $finded;
43
+        if ($finded) {
44
+            return $finded;
45
+        }
44 46
 
45 47
         return $this->findTheme($base, $vendor, $name);
46 48
     }
Please login to merge, or discard this patch.
src/Foundation/DirectiveFinder.php 1 patch
Braces   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,9 +19,7 @@
 block discarded – undo
19 19
 
20 20
             if (is_file($search)) {
21 21
                 $this->files[] = $search;
22
-            }
23
-
24
-            else {
22
+            } else {
25 23
                 $this->scan($search);
26 24
             }
27 25
         }
Please login to merge, or discard this patch.
src/Foundation/FileSystem.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,9 @@
 block discarded – undo
71 71
 
72 72
     public function readDir($path) : array
73 73
     {
74
-        if (! is_dir($path)) return [];
74
+        if (! is_dir($path)) {
75
+            return [];
76
+        }
75 77
 
76 78
         $content = scandir($path);
77 79
         $content = array_splice($content, 2);
Please login to merge, or discard this patch.