Completed
Pull Request — master (#28)
by claudio
05:01
created
app/Console/Commands/Optimise/Optimise.php 2 patches
Doc Comments   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -303,10 +303,10 @@  discard block
 block discarded – undo
303 303
     }
304 304
 
305 305
     /**
306
-     * @param array $users
307
-     * @param array $meetings
306
+     * @param string[] $users
307
+     * @param string[] $meetings
308 308
      * @param \Illuminate\Support\Collection $usersMeetings
309
-     * @return array
309
+     * @return \string[]
310 310
      */
311 311
     static private function getUsersMeetingsArray($users, $meetings, \Illuminate\Support\Collection $usersMeetings)
312 312
     {
@@ -338,8 +338,9 @@  discard block
 block discarded – undo
338 338
 
339 339
     /**
340 340
      * @param \Illuminate\Support\Collection $timeSlots
341
-     * @param bool|true $free if true the array is filled with 1 for timeslots values else with 0 for timeslots values
342
-     * @return array
341
+     * @param boolean $free if true the array is filled with 1 for timeslots values else with 0 for timeslots values
342
+     * @param integer $timeslotsN
343
+     * @return \string[]
343 344
      */
344 345
     static private function getAvailabilityArray(\Illuminate\Support\Collection $timeSlots, $timeslotsN, $free=true)
345 346
     {
Please login to merge, or discard this patch.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Console/Commands/Optimise/Solver.php 2 patches
Doc Comments   +15 added lines, -13 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 
120 120
     /**
121 121
      * remove a no empty dir
122
-     * @param $dir
122
+     * @param string $dir
123 123
      * @return bool
124 124
      */
125 125
     private static function delTree($dir) {
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
     }
174 174
 
175 175
     /**
176
-     * @return \string[]
176
+     * @return string[]
177 177
      */
178 178
     public function getUsers()
179 179
     {
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
     }
192 192
 
193 193
     /**
194
-     * @return \string[]
194
+     * @return string[]
195 195
      */
196 196
     public function getMeetings()
197 197
     {
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
     }
254 254
 
255 255
     /**
256
-     * @return \string[]
256
+     * @return string[]
257 257
      */
258 258
     public function getMeetingsAvailability()
259 259
     {
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
     }
283 283
 
284 284
     /**
285
-     * @return \string[]
285
+     * @return string[]
286 286
      */
287 287
     public function getMeetingsDuration()
288 288
     {
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
     }
313 313
 
314 314
     /**
315
-     * @return \string[]
315
+     * @return string[]
316 316
      */
317 317
     public function getUsersAvailability()
318 318
     {
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
     }
343 343
 
344 344
     /**
345
-     * @return \string[]
345
+     * @return string[]
346 346
      */
347 347
     public function getUsersMeetings()
348 348
     {
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
 
420 420
     /**
421 421
      * @param string $file
422
-     * @param array $data
422
+     * @param string[] $data
423 423
      * @throws OptimiseException
424 424
      */
425 425
     static private function writeCSVArrayNoKey($file, $data)
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
 
436 436
     /**
437 437
      * @param string $file
438
-     * @param array $data
438
+     * @param string[] $data
439 439
      * @param string $name
440 440
      * @throws OptimiseException
441 441
      */
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
 
453 453
     /**
454 454
      * @param string $file
455
-     * @param array $data
455
+     * @param string[] $data
456 456
      * @param string $name
457 457
      * @throws OptimiseException
458 458
      */
@@ -471,7 +471,7 @@  discard block
 block discarded – undo
471 471
     /**
472 472
      * @param string $file
473 473
      * @param array $data
474
-     * @param array $heading
474
+     * @param string[] $heading
475 475
      * @param \Closure $writer
476 476
      * @throws OptimiseException
477 477
      */
@@ -682,7 +682,7 @@  discard block
 block discarded – undo
682 682
     }
683 683
 
684 684
     /**
685
-     * @param $proprieties
685
+     * @param string[] $proprieties
686 686
      * @throws OptimiseException
687 687
      */
688 688
     private function checkArrayProprieties($proprieties)
@@ -693,7 +693,7 @@  discard block
 block discarded – undo
693 693
     }
694 694
 
695 695
     /**
696
-     * @param $proprieties
696
+     * @param string[] $proprieties
697 697
      * @throws OptimiseException
698 698
      */
699 699
     private function checkIntProprieties($proprieties)
@@ -707,6 +707,8 @@  discard block
 block discarded – undo
707 707
      * implementation of arraypad that doesn't change original keys<br/>
708 708
      * <strong>CAUTION: Only positive $len</strong>
709 709
      * @param array $array
710
+     * @param integer $len
711
+     * @param integer $pad
710 712
      * @return array
711 713
      */
712 714
     static private function arrayPad(array $array, $len, $pad)
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
app/Console/Commands/Optimise/OptimiseCommand.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
app/Console/Commands/Optimise/OptimiseException.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.