@@ -19,8 +19,8 @@ |
||
19 | 19 | |
20 | 20 | public function filenames($regex=null) : array |
21 | 21 | { |
22 | - if(!file_exists($this->root_path) && mkdir($this->root_path) === false) |
|
23 | - return []; |
|
22 | + if(!file_exists($this->root_path) && mkdir($this->root_path) === false) |
|
23 | + return []; |
|
24 | 24 | |
25 | 25 | $filenames = self::preg_scandir($this->root_path, $regex);// ID_SEQUENCENUMBER.ext |
26 | 26 | if(!is_null($filenames)) |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | |
5 | 5 | class CSV extends TextFile |
6 | 6 | { |
7 | - const LIST_ANORMAL_SEPARATOR_REGEX = '/\r\n|\n|\r/'; |
|
7 | + const LIST_ANORMAL_SEPARATOR_REGEX = '/\r\n|\n|\r/'; |
|
8 | 8 | |
9 | 9 | // T — Gets line from file pointer and parse for CSV fields |
10 | 10 | // fgetcsv ( resource $handle [, int $length = 0 [, string $delimiter = "," [, string $enclosure = '"' [, string $escape = "\\" ]]]] ) : array |
@@ -29,10 +29,10 @@ discard block |
||
29 | 29 | |
30 | 30 | |
31 | 31 | */ |
32 | - function array() |
|
33 | - { |
|
34 | - return array_map('str_getcsv', parent::array()); |
|
35 | - } |
|
32 | + function array() |
|
33 | + { |
|
34 | + return array_map('str_getcsv', parent::array()); |
|
35 | + } |
|
36 | 36 | |
37 | 37 | //TODO WTF is this doing here ?? |
38 | 38 | public static function collection_of_models_to_csv($collection, $model, $output) |