@@ -16,6 +16,10 @@ |
||
| 16 | 16 | $this->timetable = $timetable; |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | + /** |
|
| 20 | + * @param string $starting |
|
| 21 | + * @param integer $days |
|
| 22 | + */ |
|
| 19 | 23 | protected function initTimetable($starting, $days) |
| 20 | 24 | { |
| 21 | 25 | $this->timetable |
@@ -121,7 +121,6 @@ discard block |
||
| 121 | 121 | /** |
| 122 | 122 | * Setter for interval. |
| 123 | 123 | * |
| 124 | - * @param int $minutes |
|
| 125 | 124 | * |
| 126 | 125 | * @return $this |
| 127 | 126 | */ |
@@ -280,8 +279,8 @@ discard block |
||
| 280 | 279 | * Helper method for Arr::set |
| 281 | 280 | * |
| 282 | 281 | * @param array &$array |
| 283 | - * @param mixed $key |
|
| 284 | - * @param mixed $value |
|
| 282 | + * @param string $key |
|
| 283 | + * @param integer $value |
|
| 285 | 284 | * |
| 286 | 285 | * @return mixed |
| 287 | 286 | */ |
@@ -294,7 +293,7 @@ discard block |
||
| 294 | 293 | * Helper method for Arr::get |
| 295 | 294 | * |
| 296 | 295 | * @param array &$array |
| 297 | - * @param mixed $key |
|
| 296 | + * @param string $key |
|
| 298 | 297 | * @param mixed $default |
| 299 | 298 | * |
| 300 | 299 | * @return mixed |
@@ -304,6 +303,9 @@ discard block |
||
| 304 | 303 | return Arr::get($array, $key, $default); |
| 305 | 304 | } |
| 306 | 305 | |
| 306 | + /** |
|
| 307 | + * @param string $array1 |
|
| 308 | + */ |
|
| 307 | 309 | private function array_substitute(&$array1, $array2) |
| 308 | 310 | { |
| 309 | 311 | foreach ($array1 as $key => $value) { |
@@ -16,6 +16,10 @@ |
||
| 16 | 16 | $this->timetable = $timetable; |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | + /** |
|
| 20 | + * @param string $starting |
|
| 21 | + * @param integer $days |
|
| 22 | + */ |
|
| 19 | 23 | protected function initTimetable($starting, $days) |
| 20 | 24 | { |
| 21 | 25 | $this->timetable |
@@ -97,6 +97,9 @@ |
||
| 97 | 97 | return $vacancy !== null; |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | + /** |
|
| 101 | + * @param string $key |
|
| 102 | + */ |
|
| 100 | 103 | protected function arrayGroupBy($key, $array) |
| 101 | 104 | { |
| 102 | 105 | $grouped = []; |
@@ -108,8 +108,7 @@ |
||
| 108 | 108 | ->where('slug', $statement['capacity']) |
| 109 | 109 | ->first() |
| 110 | 110 | ->id; |
| 111 | - } |
|
| 112 | - else |
|
| 111 | + } else |
|
| 113 | 112 | { |
| 114 | 113 | $vacancyValues['capacity'] = intval($statement['capacity']); |
| 115 | 114 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | /** |
| 20 | 20 | * Get or set preference value. |
| 21 | 21 | * |
| 22 | - * @param mixed $key |
|
| 22 | + * @param string $key |
|
| 23 | 23 | * @param mixed $value |
| 24 | 24 | * @param string $type |
| 25 | 25 | * |
@@ -33,6 +33,9 @@ |
||
| 33 | 33 | $this->addStatement(' '.$startAt.' - '.$finishAt); |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | + /** |
|
| 37 | + * @param string $statement |
|
| 38 | + */ |
|
| 36 | 39 | protected function addStatement($statement) |
| 37 | 40 | { |
| 38 | 41 | $this->statement[] = $statement; |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | /** |
| 35 | 35 | * @param int $interval timestamp interval |
| 36 | 36 | * @param DateTime $interval the first date |
| 37 | - * @param DateTime $last_date the last date so we can find the interval of |
|
| 37 | + * @param \DateTime $last_date the last date so we can find the interval of |
|
| 38 | 38 | * the first and the last date |
| 39 | 39 | * |
| 40 | 40 | * @return self object |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | * @param string $format rounding method after we reveal the readable |
| 119 | 119 | * interval. You can use PHP_ROUND_HALF_UP and PHP_ROUND_HALF_DOWN |
| 120 | 120 | * |
| 121 | - * @return well formatted output |
|
| 121 | + * @return string formatted output |
|
| 122 | 122 | */ |
| 123 | 123 | public function format($format = []) |
| 124 | 124 | { |
@@ -160,6 +160,7 @@ discard block |
||
| 160 | 160 | /** |
| 161 | 161 | * @param int $round_method rounding method after we reveal the readable |
| 162 | 162 | * interval. You can use PHP_ROUND_HALF_UP and PHP_ROUND_HALF_DOWN |
| 163 | + * @param integer $result |
|
| 163 | 164 | * |
| 164 | 165 | * @return float current number of the result. if it is using $round_method, |
| 165 | 166 | * it will rounded up or down |
@@ -176,7 +177,7 @@ discard block |
||
| 176 | 177 | } |
| 177 | 178 | |
| 178 | 179 | /** |
| 179 | - * @return well formatted output |
|
| 180 | + * @return string formatted output |
|
| 180 | 181 | */ |
| 181 | 182 | public function __toString() |
| 182 | 183 | { |