Passed
Branch feature/refactoring-samurai (738b66)
by Giuliano
08:18
created
src/Foundation/FilenameParser.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,9 @@
 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) {
21
+            return null;
22
+        }
21 23
 
22 24
         $request = [
23 25
             'name' => $name,
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 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
         $request = [
23 23
             'name' => $name,
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         $name   = $this->parseOnlyName($file);
40 40
         $folder = $this->parseFolder($file);
41 41
         
42
-        if (! $name) {
42
+        if (!$name) {
43 43
             return null;
44 44
         }
45 45
         
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     private function parserFilename(string $theme, string $path) : string
93 93
     {
94
-        return str_replace($theme . DS, '', $path);
94
+        return str_replace($theme.DS, '', $path);
95 95
     }
96 96
 
97 97
     /**
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
         $name = (count($pieces) > 1) ? implode(DS, $pieces) : $pieces[0];
134 134
 
135
-        return (! strlen($name)) ? null : $name;
135
+        return (!strlen($name)) ? null : $name;
136 136
     }
137 137
 
138 138
     /**
Please login to merge, or discard this patch.