Completed
Push — master ( d6975c...cf5e41 )
by Daniel
02:31
created
sample/BankHoliday.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -40,27 +40,27 @@
 block discarded – undo
40 40
     {
41 41
         $refDate          = new \DateTime('now');
42 42
         $thisYearHolidays = $this->setHolidays($refDate);
43
-        echo '<h1>For ' . $refDate->format('Y') . ' the Romanian bank holidays are:</h1>'
43
+        echo '<h1>For '.$refDate->format('Y').' the Romanian bank holidays are:</h1>'
44 44
         . '<ul>';
45 45
         foreach ($thisYearHolidays as $value) {
46
-            echo '<li>' . $value . ' --- ' . date('l, d F Y', $value) . '</li>';
46
+            echo '<li>'.$value.' --- '.date('l, d F Y', $value).'</li>';
47 47
         }
48 48
         echo '</ul>';
49
-        echo '<h1>For ' . $refDate->format('Y') . ' the Romanian working days month by month are:</h1>'
49
+        echo '<h1>For '.$refDate->format('Y').' the Romanian working days month by month are:</h1>'
50 50
         . '<ul>';
51 51
         $wkDaysInMonth = [];
52 52
         for ($crtMonth = 1; $crtMonth <= 12; $crtMonth++) {
53
-            $crtDate = \DateTime::createFromFormat('Y-n-j', $refDate->format('Y') . '-' . $crtMonth . '-1');
53
+            $crtDate = \DateTime::createFromFormat('Y-n-j', $refDate->format('Y').'-'.$crtMonth.'-1');
54 54
             if ($crtDate !== false) {
55 55
                 $wkDaysInMonth[] = $this->setWorkingDaysInMonth($crtDate);
56
-                echo '<li>' . $crtDate->format('M Y') . ' = '
57
-                . $this->setWorkingDaysInMonth($crtDate) . ' working days</li>';
56
+                echo '<li>'.$crtDate->format('M Y').' = '
57
+                . $this->setWorkingDaysInMonth($crtDate).' working days</li>';
58 58
             }
59 59
         }
60 60
         echo '</ul>';
61
-        echo '<p>Total # of working days in ' . $refDate->format('Y') . ' is '
62
-        . array_sum($wkDaysInMonth) . ' days</p>';
63
-        echo '<p>Average working days for ' . $refDate->format('Y') . ' is '
64
-        . round((array_sum($wkDaysInMonth) / count($wkDaysInMonth)), 2) . ' days</p>';
61
+        echo '<p>Total # of working days in '.$refDate->format('Y').' is '
62
+        . array_sum($wkDaysInMonth).' days</p>';
63
+        echo '<p>Average working days for '.$refDate->format('Y').' is '
64
+        . round((array_sum($wkDaysInMonth) / count($wkDaysInMonth)), 2).' days</p>';
65 65
     }
66 66
 }
Please login to merge, or discard this patch.