Completed
Push — master ( 1fbc88...9b4a36 )
by Daniel
02:11
created
source/Romanian.php 2 patches
Doc Comments   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,12 +36,18 @@  discard block
 block discarded – undo
36 36
 trait Romanian
37 37
 {
38 38
 
39
+    /**
40
+     * @param string $year
41
+     */
39 42
     private function getEasterDatetime($year) {
40 43
         $base = new \DateTime("$year-03-21");
41 44
         $days = easter_days($year);
42 45
         return $base->add(new \DateInterval("P{$days}D"));
43 46
     }
44 47
 
48
+    /**
49
+     * @param string $fileBaseName
50
+     */
45 51
     private function readTypeFromJsonFile($fileBaseName) {
46 52
         $fName       = __DIR__ . DIRECTORY_SEPARATOR . 'json' . DIRECTORY_SEPARATOR . $fileBaseName . '.min.json';
47 53
         $fJson       = fopen($fName, 'r');
@@ -80,7 +86,7 @@  discard block
 block discarded – undo
80 86
      * (where fixed means every single year occur on same day of the month)
81 87
      *
82 88
      * @param date $lngDate
83
-     * @return array
89
+     * @return integer[]
84 90
      */
85 91
     private function setHolidaysFixed($lngDate) {
86 92
         $givenYear = date('Y', $lngDate);
@@ -165,7 +171,7 @@  discard block
 block discarded – undo
165 171
     /**
166 172
      * returns working days in a given month
167 173
      *
168
-     * @param date $lngDate
174
+     * @param integer $lngDate
169 175
      * @param boolean $inclCatholicEaster
170 176
      * @return int
171 177
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
     }
44 44
 
45 45
     private function readTypeFromJsonFile($fileBaseName) {
46
-        $fName       = __DIR__ . DIRECTORY_SEPARATOR . 'json' . DIRECTORY_SEPARATOR . $fileBaseName . '.min.json';
46
+        $fName       = __DIR__.DIRECTORY_SEPARATOR.'json'.DIRECTORY_SEPARATOR.$fileBaseName.'.min.json';
47 47
         $fJson       = fopen($fName, 'r');
48 48
         $jSonContent = fread($fJson, filesize($fName));
49 49
         fclose($fJson);
Please login to merge, or discard this patch.
sample/BankHoliday.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,13 +40,13 @@
 block discarded – undo
40 40
     {
41 41
         $todaysDate       = strtotime('today');
42 42
         $thisYearHolidays = $this->setHolidays($todaysDate);
43
-        echo '<h1>For ' . daye('Y', $todaysDate) . ' the Romanian bank holidays are:</h1>'
43
+        echo '<h1>For '.daye('Y', $todaysDate).' the Romanian bank holidays are:</h1>'
44 44
         . '<ul>';
45 45
         foreach ($thisYearHolidays as $key => $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 '<p>For the month of ' . date('M Y', $todaysDate) . ' the number of working days is: '
50
-        . $this->setWorkingDaysInMonth($todaysDate) . '<p>';
49
+        echo '<p>For the month of '.date('M Y', $todaysDate).' the number of working days is: '
50
+        . $this->setWorkingDaysInMonth($todaysDate).'<p>';
51 51
     }
52 52
 }
Please login to merge, or discard this patch.