Completed
Push — 1.x ( 8c441f...0f5ece )
by Asao
02:43
created
src/Lists/YearList.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
             $start ?: date('Y') - 1,
18 18
             $end ?: date('Y') + 1,
19 19
             $step,
20
-            function ($year) {
20
+            function($year) {
21 21
                 return sprintf('%04d', $year);
22 22
             });
23 23
     }
@@ -37,15 +37,15 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public static function formatJpnGenGou()
39 39
     {
40
-        $genGou = [ // until => genGou name
40
+        $genGou = [// until => genGou name
41 41
             '1868' => false, // end of genGou, specified by false.
42 42
             '1911' => '明治',
43 43
             '1925' => '大正',
44 44
             '1988' => '昭和',
45 45
             '9999' => '平成', // so far...
46 46
         ];
47
-        return function ($year) use ($genGou) {
48
-            $year  = (int)$year;
47
+        return function($year) use ($genGou) {
48
+            $year  = (int) $year;
49 49
             $start = 0;
50 50
             /** @var string|bool $gou */
51 51
             foreach ($genGou as $ends => $gou) {
@@ -57,11 +57,11 @@  discard block
 block discarded – undo
57 57
                     if ($year == 1) {
58 58
                         $year = '元';
59 59
                     }
60
-                    return $gou . $year . '年';
60
+                    return $gou.$year.'年';
61 61
                 }
62 62
                 $start = $ends;
63 63
             }
64
-            return '西暦' . $year . '年';
64
+            return '西暦'.$year.'年';
65 65
         };
66 66
     }
67 67
 
Please login to merge, or discard this patch.