Completed
Push — master ( 526eb1...0fdc47 )
by Daniel
01:48
created
source/Romanian.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     protected function readTypeFromJsonFileUniversal($filePath, $fileBaseName)
58 58
     {
59
-        $fName       = $filePath . DIRECTORY_SEPARATOR . $fileBaseName . '.min.json';
59
+        $fName       = $filePath.DIRECTORY_SEPARATOR.$fileBaseName.'.min.json';
60 60
         $fJson       = fopen($fName, 'r');
61 61
         $jSonContent = fread($fJson, filesize($fName));
62 62
         fclose($fJson);
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     private function setHolidaysFixed(\DateTime $lngDate)
100 100
     {
101
-        $daying    = [
101
+        $daying = [
102 102
             mktime(0, 0, 0, 1, 1, $lngDate->format('Y')), // Happy New Year
103 103
             mktime(0, 0, 0, 1, 2, $lngDate->format('Y')), // recovering from New Year party
104 104
             mktime(0, 0, 0, 5, 1, $lngDate->format('Y')), // May 1st
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
     {
168 168
         $givenYear      = $lngDate->format('Y');
169 169
         $daying         = [];
170
-        $configPath     = __DIR__ . DIRECTORY_SEPARATOR . 'json';
170
+        $configPath     = __DIR__.DIRECTORY_SEPARATOR.'json';
171 171
         $statmentsArray = $this->readTypeFromJsonFileUniversal($configPath, 'RomanianBankHolidays');
172 172
         if (array_key_exists($givenYear, $statmentsArray)) {
173 173
             foreach ($statmentsArray[$givenYear] as $value) {
Please login to merge, or discard this patch.
sample/BankHoliday.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -40,17 +40,17 @@
 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
         for ($crtMonth = 1; $crtMonth <= 12; $crtMonth++) {
52
-            $crtDate = \DateTime::createFromFormat('Y-n-j', $refDate->format('Y') . '-' . $crtMonth . '-1');
53
-            echo '<li>' . $crtDate->format('M Y') . ' = ' . $this->setWorkingDaysInMonth($crtDate) . ' working days</li>';
52
+            $crtDate = \DateTime::createFromFormat('Y-n-j', $refDate->format('Y').'-'.$crtMonth.'-1');
53
+            echo '<li>'.$crtDate->format('M Y').' = '.$this->setWorkingDaysInMonth($crtDate).' working days</li>';
54 54
         }
55 55
         echo '</ul>';
56 56
     }
Please login to merge, or discard this patch.