@@ -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) { |
@@ -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 | * |
@@ -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 | } |
@@ -124,6 +124,9 @@ discard block |
||
| 124 | 124 | return $vacancy !== null; |
| 125 | 125 | } |
| 126 | 126 | |
| 127 | + /** |
|
| 128 | + * @param string $key |
|
| 129 | + */ |
|
| 127 | 130 | protected function arrayGroupBy($key, $array) |
| 128 | 131 | { |
| 129 | 132 | $grouped = []; |
@@ -156,7 +159,6 @@ discard block |
||
| 156 | 159 | /** |
| 157 | 160 | * [generateAvailability description]. |
| 158 | 161 | * |
| 159 | - * @param Illuminate\Database\Eloquent\Collection $vacancies |
|
| 160 | 162 | * @param string $startDate |
| 161 | 163 | * @param int $futureDays |
| 162 | 164 | * |
@@ -14,6 +14,9 @@ |
||
| 14 | 14 | { |
| 15 | 15 | private $business; |
| 16 | 16 | |
| 17 | + /** |
|
| 18 | + * @param Models\Business $business |
|
| 19 | + */ |
|
| 17 | 20 | public function __construct($business) |
| 18 | 21 | { |
| 19 | 22 | $this->business = $business; |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | /** |
| 76 | 76 | * Has a Contact addressbook. |
| 77 | 77 | * |
| 78 | - * @return Illuminate\Database\Eloquent\Relations\BelongsToMany |
|
| 78 | + * @return Addressbook |
|
| 79 | 79 | */ |
| 80 | 80 | public function addressbook() |
| 81 | 81 | { |
@@ -240,7 +240,7 @@ |
||
| 240 | 240 | /** |
| 241 | 241 | * Get cancellation deadline (target date). |
| 242 | 242 | * |
| 243 | - * @return Carbon\Carbon |
|
| 243 | + * @return Carbon |
|
| 244 | 244 | */ |
| 245 | 245 | public function getCancellationDeadlineAttribute() |
| 246 | 246 | { |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | * @param string $format rounding method after we reveal the readable |
| 114 | 114 | * interval. You can use PHP_ROUND_HALF_UP and PHP_ROUND_HALF_DOWN |
| 115 | 115 | * |
| 116 | - * @return well formatted output |
|
| 116 | + * @return string formatted output |
|
| 117 | 117 | */ |
| 118 | 118 | public function format($format = []) |
| 119 | 119 | { |
@@ -154,6 +154,7 @@ discard block |
||
| 154 | 154 | /** |
| 155 | 155 | * @param int $round_method rounding method after we reveal the readable |
| 156 | 156 | * interval. You can use PHP_ROUND_HALF_UP and PHP_ROUND_HALF_DOWN |
| 157 | + * @param integer $result |
|
| 157 | 158 | * |
| 158 | 159 | * @return float current number of the result. if it is using $round_method, |
| 159 | 160 | * it will rounded up or down |
@@ -170,7 +171,7 @@ discard block |
||
| 170 | 171 | } |
| 171 | 172 | |
| 172 | 173 | /** |
| 173 | - * @return well formatted output |
|
| 174 | + * @return string formatted output |
|
| 174 | 175 | */ |
| 175 | 176 | public function __toString() |
| 176 | 177 | { |