Passed
Push — master ( 53ff23...0544fc )
by Yuichi
02:28
created
src/TreeStructureTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Imports/CsvReaderTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Helpers/date.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Helpers/format.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.