@@ -25,7 +25,9 @@ |
||
| 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 | } |
@@ -18,7 +18,9 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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(); |
@@ -41,7 +41,9 @@ discard block |
||
| 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 |
||
| 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)) { |
@@ -40,7 +40,9 @@ |
||
| 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 | } |
@@ -19,9 +19,7 @@ |
||
| 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 | } |
@@ -71,7 +71,9 @@ |
||
| 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); |
@@ -17,7 +17,9 @@ discard block |
||
| 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, |
@@ -38,7 +40,9 @@ discard block |
||
| 38 | 40 | $name = $this->parseOnlyName($file); |
| 39 | 41 | $folder = $this->parseFolder($file); |
| 40 | 42 | |
| 41 | - if (! $name) return null; |
|
| 43 | + if (! $name) { |
|
| 44 | + return null; |
|
| 45 | + } |
|
| 42 | 46 | |
| 43 | 47 | $request = [ |
| 44 | 48 | 'name' => $name, |
@@ -18,7 +18,9 @@ |
||
| 18 | 18 | { |
| 19 | 19 | $theme = $this->base()->current(); |
| 20 | 20 | |
| 21 | - if ($theme == null) return false; |
|
| 21 | + if ($theme == null) { |
|
| 22 | + return false; |
|
| 23 | + } |
|
| 22 | 24 | |
| 23 | 25 | return $theme->load(); |
| 24 | 26 | } |