@@ -9,8 +9,8 @@ |
||
| 9 | 9 | namespace plunner\Console\Commands\Optimise; |
| 10 | 10 | |
| 11 | 11 | use Illuminate\Console\Scheduling\Schedule; |
| 12 | -use plunner\company; |
|
| 13 | 12 | use plunner\Events\Optimise\ErrorEvent; |
| 13 | +use plunner\company; |
|
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | 16 | * Class Optimise |
@@ -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 | /** |
@@ -423,7 +423,7 @@ discard block |
||
| 423 | 423 | $diff = explode(':',$diff->format('%R:%d:%h:%i:%s')); |
| 424 | 424 | $diff = $diff[1]*86400 + $diff[2]*3600 + $diff[3]*60 + $diff[4]; |
| 425 | 425 | //if($diff[0] != '-' && $diff != 0) |
| 426 | - // throw new OptimiseException('timeslot time <= startTime'); |
|
| 426 | + // throw new OptimiseException('timeslot time <= startTime'); |
|
| 427 | 427 | //TODO fix check |
| 428 | 428 | //TODO check if diff makes sense |
| 429 | 429 | //TODO check upper limit |
@@ -3,8 +3,6 @@ |
||
| 3 | 3 | namespace plunner\Listeners; |
| 4 | 4 | |
| 5 | 5 | use plunner\Events\CaldavErrorEvent; |
| 6 | -use Illuminate\Queue\InteractsWithQueue; |
|
| 7 | -use Illuminate\Contracts\Queue\ShouldQueue; |
|
| 8 | 6 | |
| 9 | 7 | class CaldavErrorListener |
| 10 | 8 | { |
@@ -3,8 +3,6 @@ |
||
| 3 | 3 | namespace plunner\Listeners; |
| 4 | 4 | |
| 5 | 5 | use plunner\Events\CaldavErrorEvent; |
| 6 | -use Illuminate\Queue\InteractsWithQueue; |
|
| 7 | -use Illuminate\Contracts\Queue\ShouldQueue; |
|
| 8 | 6 | |
| 9 | 7 | class CaldavErrorListener |
| 10 | 8 | { |
@@ -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 | /** |
@@ -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 | |