@@ -11,14 +11,14 @@ |
||
| 11 | 11 | |
| 12 | 12 | if (is_array(current($array))) { // with sections |
| 13 | 13 | foreach ($array as $section => $data) { |
| 14 | - $ret.= PHP_EOL.PHP_EOL.self::section($section); |
|
| 14 | + $ret .= PHP_EOL.PHP_EOL.self::section($section); |
|
| 15 | 15 | foreach ($data as $key => $value) { |
| 16 | - $ret.= PHP_EOL.self::line($key, $value); |
|
| 16 | + $ret .= PHP_EOL.self::line($key, $value); |
|
| 17 | 17 | } |
| 18 | 18 | } |
| 19 | 19 | } else { // no section |
| 20 | 20 | foreach ($array as $key => $value) { |
| 21 | - $ret.= self::line($key, $value); |
|
| 21 | + $ret .= self::line($key, $value); |
|
| 22 | 22 | } |
| 23 | 23 | } |
| 24 | 24 | |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | return []; |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | - $filenames = self::preg_scandir($this->root_path, $regex);// ID_SEQUENCENUMBER.ext |
|
| 26 | + $filenames = self::preg_scandir($this->root_path, $regex); // ID_SEQUENCENUMBER.ext |
|
| 27 | 27 | if (!is_null($filenames)) { |
| 28 | 28 | sort($filenames); |
| 29 | 29 | } |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | if (($filenames = scandir($dir_path, SCANDIR_SORT_ASCENDING)) !== false) { |
| 135 | - return is_null($regex)? $filenames : preg_grep($regex, $filenames); |
|
| 135 | + return is_null($regex) ? $filenames : preg_grep($regex, $filenames); |
|
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | throw new \Exception("directory path '$dir_path' cannot be scanned"); |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | $this->file = $res['basename']; |
| 47 | 47 | $this->file_extension = $res['extension']; |
| 48 | 48 | |
| 49 | - $this->already_parsed=true; |
|
| 49 | + $this->already_parsed = true; |
|
| 50 | 50 | } |
| 51 | 51 | return $this; |
| 52 | 52 | } |