@@ -1,21 +1,21 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: Claudio Cardinale <[email protected]> |
|
| 5 | - * Date: 24/11/15 |
|
| 6 | - * Time: 21.58 |
|
| 7 | - * This program is free software; you can redistribute it and/or |
|
| 8 | - * modify it under the terms of the GNU General Public License |
|
| 9 | - * as published by the Free Software Foundation; either version 2 |
|
| 10 | - * of the License, or (at your option) any later version. |
|
| 11 | - * This program is distributed in the hope that it will be useful, |
|
| 12 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 13 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 14 | - * GNU General Public License for more details. |
|
| 15 | - * You should have received a copy of the GNU General Public License |
|
| 16 | - * along with this program; if not, write to the Free Software |
|
| 17 | - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
| 18 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: Claudio Cardinale <[email protected]> |
|
| 5 | + * Date: 24/11/15 |
|
| 6 | + * Time: 21.58 |
|
| 7 | + * This program is free software; you can redistribute it and/or |
|
| 8 | + * modify it under the terms of the GNU General Public License |
|
| 9 | + * as published by the Free Software Foundation; either version 2 |
|
| 10 | + * of the License, or (at your option) any later version. |
|
| 11 | + * This program is distributed in the hope that it will be useful, |
|
| 12 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 13 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 14 | + * GNU General Public License for more details. |
|
| 15 | + * You should have received a copy of the GNU General Public License |
|
| 16 | + * along with this program; if not, write to the Free Software |
|
| 17 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
| 18 | + */ |
|
| 19 | 19 | |
| 20 | 20 | namespace plunner; |
| 21 | 21 | |
@@ -1,21 +1,21 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: Claudio Cardinale <[email protected]> |
|
| 5 | - * Date: 03/12/15 |
|
| 6 | - * Time: 2.33 |
|
| 7 | - * This program is free software; you can redistribute it and/or |
|
| 8 | - * modify it under the terms of the GNU General Public License |
|
| 9 | - * as published by the Free Software Foundation; either version 2 |
|
| 10 | - * of the License, or (at your option) any later version. |
|
| 11 | - * This program is distributed in the hope that it will be useful, |
|
| 12 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 13 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 14 | - * GNU General Public License for more details. |
|
| 15 | - * You should have received a copy of the GNU General Public License |
|
| 16 | - * along with this program; if not, write to the Free Software |
|
| 17 | - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
| 18 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: Claudio Cardinale <[email protected]> |
|
| 5 | + * Date: 03/12/15 |
|
| 6 | + * Time: 2.33 |
|
| 7 | + * This program is free software; you can redistribute it and/or |
|
| 8 | + * modify it under the terms of the GNU General Public License |
|
| 9 | + * as published by the Free Software Foundation; either version 2 |
|
| 10 | + * of the License, or (at your option) any later version. |
|
| 11 | + * This program is distributed in the hope that it will be useful, |
|
| 12 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 13 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 14 | + * GNU General Public License for more details. |
|
| 15 | + * You should have received a copy of the GNU General Public License |
|
| 16 | + * along with this program; if not, write to the Free Software |
|
| 17 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
| 18 | + */ |
|
| 19 | 19 | |
| 20 | 20 | namespace plunner\Console\Commands\SyncCaldav; |
| 21 | 21 | |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | { |
| 83 | 83 | $event = $this->schedule->command('sync:caldav '.$calendar->calendar_id)->withoutOverlapping(); |
| 84 | 84 | if($event->isDue($this->laravel)) |
| 85 | - $event->run($this->laravel); |
|
| 85 | + $event->run($this->laravel); |
|
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | /** |
@@ -1,10 +1,10 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: claudio |
|
| 5 | - * Date: 12/12/15 |
|
| 6 | - * Time: 15.41 |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: claudio |
|
| 5 | + * Date: 12/12/15 |
|
| 6 | + * Time: 15.41 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace plunner\Console\Commands\Optimise; |
| 10 | 10 | |
@@ -45,8 +45,8 @@ discard block |
||
| 45 | 45 | private $company; |
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | - * @var Schedule laravel schedule object needed to perform command in background |
|
| 49 | - */ |
|
| 48 | + * @var Schedule laravel schedule object needed to perform command in background |
|
| 49 | + */ |
|
| 50 | 50 | private $schedule; |
| 51 | 51 | |
| 52 | 52 | /** |
@@ -413,7 +413,7 @@ discard block |
||
| 413 | 413 | $diff = explode(':',$diff->format('%R:%d:%h:%i:%s')); |
| 414 | 414 | $diff = $diff[1]*86400 + $diff[2]*3600 + $diff[3]*60 + $diff[4]; |
| 415 | 415 | //if($diff[0] != '-' && $diff != 0) |
| 416 | - // throw new OptimiseException('timeslot time <= startTime'); |
|
| 416 | + // throw new OptimiseException('timeslot time <= startTime'); |
|
| 417 | 417 | //TODO fix check |
| 418 | 418 | //TODO check if diff makes sense |
| 419 | 419 | //TODO check upper limit |
@@ -311,10 +311,10 @@ discard block |
||
| 311 | 311 | } |
| 312 | 312 | |
| 313 | 313 | /** |
| 314 | - * @param array $users |
|
| 315 | - * @param array $meetings |
|
| 314 | + * @param string[] $users |
|
| 315 | + * @param string[] $meetings |
|
| 316 | 316 | * @param \Illuminate\Support\Collection $usersMeetings |
| 317 | - * @return array |
|
| 317 | + * @return string[] |
|
| 318 | 318 | */ |
| 319 | 319 | static private function getUsersMeetingsArray($users, $meetings, \Illuminate\Support\Collection $usersMeetings) |
| 320 | 320 | { |
@@ -363,8 +363,9 @@ discard block |
||
| 363 | 363 | |
| 364 | 364 | /** |
| 365 | 365 | * @param \Illuminate\Support\Collection $timeSlots |
| 366 | - * @param bool|true $free if true the array is filled with 1 for timeslots values else with 0 for timeslots values |
|
| 367 | - * @return array |
|
| 366 | + * @param boolean $free if true the array is filled with 1 for timeslots values else with 0 for timeslots values |
|
| 367 | + * @param integer $timeslotsN |
|
| 368 | + * @return string[] |
|
| 368 | 369 | */ |
| 369 | 370 | static private function getAvailabilityArray(\Illuminate\Support\Collection $timeSlots, $timeslotsN, $free=true) |
| 370 | 371 | { |
@@ -32,8 +32,8 @@ |
||
| 32 | 32 | protected $description = 'Optimise meetings'; |
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | - * @var Schedule laravel schedule object needed to perform command in background |
|
| 36 | - */ |
|
| 35 | + * @var Schedule laravel schedule object needed to perform command in background |
|
| 36 | + */ |
|
| 37 | 37 | private $schedule; |
| 38 | 38 | |
| 39 | 39 | /** |
@@ -1,21 +1,21 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: Claudio Cardinale <[email protected]> |
|
| 5 | - * Date: 07/12/15 |
|
| 6 | - * Time: 21.18 |
|
| 7 | - * This program is free software; you can redistribute it and/or |
|
| 8 | - * modify it under the terms of the GNU General Public License |
|
| 9 | - * as published by the Free Software Foundation; either version 2 |
|
| 10 | - * of the License, or (at your option) any later version. |
|
| 11 | - * This program is distributed in the hope that it will be useful, |
|
| 12 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 13 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 14 | - * GNU General Public License for more details. |
|
| 15 | - * You should have received a copy of the GNU General Public License |
|
| 16 | - * along with this program; if not, write to the Free Software |
|
| 17 | - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
| 18 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: Claudio Cardinale <[email protected]> |
|
| 5 | + * Date: 07/12/15 |
|
| 6 | + * Time: 21.18 |
|
| 7 | + * This program is free software; you can redistribute it and/or |
|
| 8 | + * modify it under the terms of the GNU General Public License |
|
| 9 | + * as published by the Free Software Foundation; either version 2 |
|
| 10 | + * of the License, or (at your option) any later version. |
|
| 11 | + * This program is distributed in the hope that it will be useful, |
|
| 12 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 13 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 14 | + * GNU General Public License for more details. |
|
| 15 | + * You should have received a copy of the GNU General Public License |
|
| 16 | + * along with this program; if not, write to the Free Software |
|
| 17 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
| 18 | + */ |
|
| 19 | 19 | |
| 20 | 20 | namespace plunner\Console\Commands\Optimise; |
| 21 | 21 | |
@@ -69,8 +69,8 @@ discard block |
||
| 69 | 69 | private $usersMeetings; |
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | - * @var Schedule laravel schedule object needed to perform command in background |
|
| 73 | - */ |
|
| 72 | + * @var Schedule laravel schedule object needed to perform command in background |
|
| 73 | + */ |
|
| 74 | 74 | private $schedule; |
| 75 | 75 | |
| 76 | 76 | /** |
@@ -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 | { |
@@ -389,7 +389,7 @@ discard block |
||
| 389 | 389 | |
| 390 | 390 | /** |
| 391 | 391 | * @param string $file |
| 392 | - * @param array $data |
|
| 392 | + * @param string[] $data |
|
| 393 | 393 | * @throws OptimiseException |
| 394 | 394 | */ |
| 395 | 395 | static private function writeCSVArrayNoKey($file, $data) |
@@ -405,7 +405,7 @@ discard block |
||
| 405 | 405 | |
| 406 | 406 | /** |
| 407 | 407 | * @param string $file |
| 408 | - * @param array $data |
|
| 408 | + * @param string[] $data |
|
| 409 | 409 | * @param string $name |
| 410 | 410 | * @throws OptimiseException |
| 411 | 411 | */ |
@@ -422,7 +422,7 @@ discard block |
||
| 422 | 422 | |
| 423 | 423 | /** |
| 424 | 424 | * @param string $file |
| 425 | - * @param array $data |
|
| 425 | + * @param string[] $data |
|
| 426 | 426 | * @param string $name |
| 427 | 427 | * @throws OptimiseException |
| 428 | 428 | */ |
@@ -441,7 +441,7 @@ discard block |
||
| 441 | 441 | /** |
| 442 | 442 | * @param string $file |
| 443 | 443 | * @param array $data |
| 444 | - * @param array $heading |
|
| 444 | + * @param string[] $heading |
|
| 445 | 445 | * @param \Closure $writer |
| 446 | 446 | * @throws OptimiseException |
| 447 | 447 | */ |
@@ -572,7 +572,7 @@ discard block |
||
| 572 | 572 | } |
| 573 | 573 | |
| 574 | 574 | /** |
| 575 | - * @param $proprieties |
|
| 575 | + * @param string[] $proprieties |
|
| 576 | 576 | * @throws OptimiseException |
| 577 | 577 | */ |
| 578 | 578 | private function checkArrayProprieties($proprieties) |
@@ -583,7 +583,7 @@ discard block |
||
| 583 | 583 | } |
| 584 | 584 | |
| 585 | 585 | /** |
| 586 | - * @param $proprieties |
|
| 586 | + * @param string[] $proprieties |
|
| 587 | 587 | * @throws OptimiseException |
| 588 | 588 | */ |
| 589 | 589 | private function checkIntProprieties($proprieties) |
@@ -597,6 +597,8 @@ discard block |
||
| 597 | 597 | * implementation of arraypad that doesn't change original keys<br/> |
| 598 | 598 | * <strong>CAUTION: Only positive $len</strong> |
| 599 | 599 | * @param array $array |
| 600 | + * @param integer $len |
|
| 601 | + * @param integer $pad |
|
| 600 | 602 | * @return array |
| 601 | 603 | */ |
| 602 | 604 | static private function arrayPad(array $array, $len, $pad) |
@@ -1,21 +1,21 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: Claudio Cardinale <[email protected]> |
|
| 5 | - * Date: 07/12/15 |
|
| 6 | - * Time: 21.24 |
|
| 7 | - * This program is free software; you can redistribute it and/or |
|
| 8 | - * modify it under the terms of the GNU General Public License |
|
| 9 | - * as published by the Free Software Foundation; either version 2 |
|
| 10 | - * of the License, or (at your option) any later version. |
|
| 11 | - * This program is distributed in the hope that it will be useful, |
|
| 12 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 13 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 14 | - * GNU General Public License for more details. |
|
| 15 | - * You should have received a copy of the GNU General Public License |
|
| 16 | - * along with this program; if not, write to the Free Software |
|
| 17 | - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
| 18 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: Claudio Cardinale <[email protected]> |
|
| 5 | + * Date: 07/12/15 |
|
| 6 | + * Time: 21.24 |
|
| 7 | + * This program is free software; you can redistribute it and/or |
|
| 8 | + * modify it under the terms of the GNU General Public License |
|
| 9 | + * as published by the Free Software Foundation; either version 2 |
|
| 10 | + * of the License, or (at your option) any later version. |
|
| 11 | + * This program is distributed in the hope that it will be useful, |
|
| 12 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 13 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 14 | + * GNU General Public License for more details. |
|
| 15 | + * You should have received a copy of the GNU General Public License |
|
| 16 | + * along with this program; if not, write to the Free Software |
|
| 17 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
| 18 | + */ |
|
| 19 | 19 | |
| 20 | 20 | namespace plunner\Console\Commands\Optimise; |
| 21 | 21 | |
@@ -1,21 +1,21 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: Claudio Cardinale <[email protected]> |
|
| 5 | - * Date: 24/12/15 |
|
| 6 | - * Time: 22.53 |
|
| 7 | - * This program is free software; you can redistribute it and/or |
|
| 8 | - * modify it under the terms of the GNU General Public License |
|
| 9 | - * as published by the Free Software Foundation; either version 2 |
|
| 10 | - * of the License, or (at your option) any later version. |
|
| 11 | - * This program is distributed in the hope that it will be useful, |
|
| 12 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 13 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 14 | - * GNU General Public License for more details. |
|
| 15 | - * You should have received a copy of the GNU General Public License |
|
| 16 | - * along with this program; if not, write to the Free Software |
|
| 17 | - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
| 18 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: Claudio Cardinale <[email protected]> |
|
| 5 | + * Date: 24/12/15 |
|
| 6 | + * Time: 22.53 |
|
| 7 | + * This program is free software; you can redistribute it and/or |
|
| 8 | + * modify it under the terms of the GNU General Public License |
|
| 9 | + * as published by the Free Software Foundation; either version 2 |
|
| 10 | + * of the License, or (at your option) any later version. |
|
| 11 | + * This program is distributed in the hope that it will be useful, |
|
| 12 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 13 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 14 | + * GNU General Public License for more details. |
|
| 15 | + * You should have received a copy of the GNU General Public License |
|
| 16 | + * along with this program; if not, write to the Free Software |
|
| 17 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
| 18 | + */ |
|
| 19 | 19 | |
| 20 | 20 | namespace plunner\Http\Middleware; |
| 21 | 21 | |