@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | } |
144 | 144 | |
145 | 145 | /** |
146 | - * @return \string[] |
|
146 | + * @return string[] |
|
147 | 147 | */ |
148 | 148 | public function getUsers() |
149 | 149 | { |
@@ -255,6 +255,8 @@ discard block |
||
255 | 255 | * implementation of arraypad that doesn't change original keys<br/> |
256 | 256 | * <strong>CAUTION: Only positive $len</strong> |
257 | 257 | * @param array $array |
258 | + * @param integer $len |
|
259 | + * @param integer $pad |
|
258 | 260 | * @return array |
259 | 261 | */ |
260 | 262 | static private function arrayPad(array $array, $len, $pad) |
@@ -393,7 +395,7 @@ discard block |
||
393 | 395 | } |
394 | 396 | |
395 | 397 | /** |
396 | - * @param $proprieties |
|
398 | + * @param string[] $proprieties |
|
397 | 399 | * @throws OptimiseException |
398 | 400 | */ |
399 | 401 | private function checkArrayProprieties($proprieties) |
@@ -404,7 +406,7 @@ discard block |
||
404 | 406 | } |
405 | 407 | |
406 | 408 | /** |
407 | - * @param $proprieties |
|
409 | + * @param string[] $proprieties |
|
408 | 410 | * @throws OptimiseException |
409 | 411 | */ |
410 | 412 | private function checkIntProprieties($proprieties) |
@@ -424,7 +426,7 @@ discard block |
||
424 | 426 | |
425 | 427 | /** |
426 | 428 | * @param string $file |
427 | - * @param array $data |
|
429 | + * @param string[] $data |
|
428 | 430 | * @throws OptimiseException |
429 | 431 | */ |
430 | 432 | static private function writeCSVArrayNoKey($file, $data) |
@@ -441,7 +443,7 @@ discard block |
||
441 | 443 | /** |
442 | 444 | * @param string $file |
443 | 445 | * @param array $data |
444 | - * @param array $heading |
|
446 | + * @param string[] $heading |
|
445 | 447 | * @param \Closure $writer |
446 | 448 | * @throws OptimiseException |
447 | 449 | */ |
@@ -478,7 +480,7 @@ discard block |
||
478 | 480 | |
479 | 481 | /** |
480 | 482 | * @param string $file |
481 | - * @param array $data |
|
483 | + * @param string[] $data |
|
482 | 484 | * @param string $name |
483 | 485 | * @throws OptimiseException |
484 | 486 | */ |
@@ -503,7 +505,7 @@ discard block |
||
503 | 505 | |
504 | 506 | /** |
505 | 507 | * @param string $file |
506 | - * @param array $data |
|
508 | + * @param string[] $data |
|
507 | 509 | * @param string $name |
508 | 510 | * @throws OptimiseException |
509 | 511 | */ |
@@ -291,11 +291,11 @@ discard block |
||
291 | 291 | |
292 | 292 | /** |
293 | 293 | * @param \Illuminate\Support\Collection $timeSlots |
294 | - * @param bool|true $free if true the array is filled with 1 for timeslots values else with 0 for timeslots values |
|
295 | - * @param array $ids array of ids that we consider, if they are not present inside timeSlots we fill the entire row |
|
294 | + * @param boolean $free if true the array is filled with 1 for timeslots values else with 0 for timeslots values |
|
295 | + * @param string[] $ids array of ids that we consider, if they are not present inside timeSlots we fill the entire row |
|
296 | 296 | * with the default value |
297 | 297 | * @param int $timeSlotsN number of timeslots |
298 | - * @return array |
|
298 | + * @return string[] |
|
299 | 299 | */ |
300 | 300 | static private function getAvailabilityArray(\Illuminate\Support\Collection $timeSlots, $timeSlotsN, array $ids, $free = true) |
301 | 301 | { |
@@ -344,6 +344,7 @@ discard block |
||
344 | 344 | * @param array $array |
345 | 345 | * @param int $id |
346 | 346 | * @param string $fill |
347 | + * @param integer $until |
|
347 | 348 | * @return array |
348 | 349 | */ |
349 | 350 | static private function fillRow(array $array, $id, $until, $fill = '0') |
@@ -396,10 +397,10 @@ discard block |
||
396 | 397 | } |
397 | 398 | |
398 | 399 | /** |
399 | - * @param array $users |
|
400 | - * @param array $meetings |
|
400 | + * @param string[] $users |
|
401 | + * @param string[] $meetings |
|
401 | 402 | * @param \Illuminate\Support\Collection $usersMeetings |
402 | - * @return array |
|
403 | + * @return string[] |
|
403 | 404 | */ |
404 | 405 | static private function getUsersMeetingsArray($users, $meetings, \Illuminate\Support\Collection $usersMeetings) |
405 | 406 | { |
@@ -49,6 +49,10 @@ discard block |
||
49 | 49 | }); |
50 | 50 | } |
51 | 51 | |
52 | + /** |
|
53 | + * @param string $title |
|
54 | + * @param string $message |
|
55 | + */ |
|
52 | 56 | static private function sendPushs($title, $message, $additionalData = '') |
53 | 57 | { |
54 | 58 | $clients = explode(';', config('app.gcm_clients')); |
@@ -58,6 +62,9 @@ discard block |
||
58 | 62 | //self::sendPushNotification($clients, $message, $title); |
59 | 63 | } |
60 | 64 | |
65 | + /** |
|
66 | + * @param string $additionalData |
|
67 | + */ |
|
61 | 68 | static private function sendPushNotification($to, $message, $title, $additionalData) |
62 | 69 | { |
63 | 70 | // replace API |