@@ -39,13 +39,13 @@ |
||
| 39 | 39 | public function __construct() { |
| 40 | 40 | $todaysDate = new \DateTime('now'); |
| 41 | 41 | $thisYearHolidays = $this->setHolidays($todaysDate); |
| 42 | - echo '<h1>For ' . $todaysDate->format('Y') . ' the Romanian bank holidays are:</h1>' |
|
| 42 | + echo '<h1>For '.$todaysDate->format('Y').' the Romanian bank holidays are:</h1>' |
|
| 43 | 43 | . '<ul>'; |
| 44 | 44 | foreach ($thisYearHolidays as $value) { |
| 45 | - echo '<li>' . $value . ' --- ' . date('l, d F Y', $value) . '</li>'; |
|
| 45 | + echo '<li>'.$value.' --- '.date('l, d F Y', $value).'</li>'; |
|
| 46 | 46 | } |
| 47 | 47 | echo '</ul>' |
| 48 | - . '<p>For the month of ' . $todaysDate->format('M Y') . ' the number of working days is: ' |
|
| 49 | - . $this->setWorkingDaysInMonth($todaysDate) . '<p>'; |
|
| 48 | + . '<p>For the month of '.$todaysDate->format('M Y').' the number of working days is: ' |
|
| 49 | + . $this->setWorkingDaysInMonth($todaysDate).'<p>'; |
|
| 50 | 50 | } |
| 51 | 51 | } |
@@ -56,7 +56,7 @@ discard block |
||
| 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); |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | { |
| 148 | 148 | $givenYear = $lngDate->format('Y'); |
| 149 | 149 | $daying = []; |
| 150 | - $configPath = __DIR__ . DIRECTORY_SEPARATOR . 'json'; |
|
| 150 | + $configPath = __DIR__.DIRECTORY_SEPARATOR.'json'; |
|
| 151 | 151 | $statmentsArray = $this->readTypeFromJsonFileUniversal($configPath, 'RomanianBankHolidays'); |
| 152 | 152 | if (array_key_exists($givenYear, $statmentsArray)) { |
| 153 | 153 | foreach ($statmentsArray[$givenYear] as $value) { |