@@ -37,7 +37,7 @@ |
||
37 | 37 | protected function addTree(&$tree, $data) |
38 | 38 | { |
39 | 39 | foreach ($tree as $id => &$rec) { |
40 | - if ( $data->parent_id == $id ) { |
|
40 | + if ($data->parent_id == $id) { |
|
41 | 41 | $data->children = []; |
42 | 42 | $rec->children[$data->id] = $data; |
43 | 43 | return; |
@@ -9,7 +9,7 @@ |
||
9 | 9 | { |
10 | 10 | if (($fp = @fopen($file, "r")) !== false) { |
11 | 11 | |
12 | - while(($data = fgetcsv($fp, $length, $delimiter, $envlosure, $escape)) !== false) { |
|
12 | + while (($data = fgetcsv($fp, $length, $delimiter, $envlosure, $escape)) !== false) { |
|
13 | 13 | $this->csvRecord($data); |
14 | 14 | } |
15 | 15 | fclose($fp); |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | use Carbon\Carbon; |
3 | 3 | |
4 | 4 | if ( ! function_exists('strtodate')) { |
5 | - function strtodate($date, $format='Y/m/d') |
|
5 | + function strtodate($date, $format = 'Y/m/d') |
|
6 | 6 | { |
7 | 7 | if ($date) { |
8 | 8 | return date($format, strtotime($date)); |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | function ym($ym) |
16 | 16 | { |
17 | 17 | if ($ym && $ym > 190001) { |
18 | - return (floor($ym/100)) . '年' . ( floor($ym%100)) . '月'; |
|
18 | + return (floor($ym/100)) . '年' . (floor($ym%100)) . '月'; |
|
19 | 19 | } |
20 | 20 | return null; |
21 | 21 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if ( ! function_exists('numeric_format') ) { |
|
3 | +if ( ! function_exists('numeric_format')) { |
|
4 | 4 | function numeric_format($val) |
5 | 5 | { |
6 | 6 | $number = str_replace(",", "", $val); |