@@ -36,7 +36,7 @@ |
||
| 36 | 36 | /** |
| 37 | 37 | * @param array $watchers |
| 38 | 38 | * @param array $excluders |
| 39 | - * @param Janitor\Strategy $strategy |
|
| 39 | + * @param Strategy $strategy |
|
| 40 | 40 | */ |
| 41 | 41 | public function __construct(array $watchers = [], array $excluders = [], Strategy $strategy = null) |
| 42 | 42 | { |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Effortless maintenance management (http://juliangut.com/janitor) |
|
| 4 | - * |
|
| 5 | - * @link https://github.com/juliangut/janitor for the canonical source repository |
|
| 6 | - * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 7 | - */ |
|
| 3 | + * Effortless maintenance management (http://juliangut.com/janitor) |
|
| 4 | + * |
|
| 5 | + * @link https://github.com/juliangut/janitor for the canonical source repository |
|
| 6 | + * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Janitor; |
| 10 | 10 | |
@@ -137,7 +137,7 @@ |
||
| 137 | 137 | |
| 138 | 138 | usort( |
| 139 | 139 | $scheduledTimes, |
| 140 | - function ($time1, $time2) { |
|
| 140 | + function($time1, $time2) { |
|
| 141 | 141 | if ($time1['start'] == $time2['start']) { |
| 142 | 142 | return 0; |
| 143 | 143 | } |
@@ -75,8 +75,8 @@ discard block |
||
| 75 | 75 | protected $interval; |
| 76 | 76 | |
| 77 | 77 | /** |
| 78 | - * @param \Cron\CronExpression|string $expression |
|
| 79 | - * @param \DateInterval|string $interval |
|
| 78 | + * @param string $expression |
|
| 79 | + * @param string $interval |
|
| 80 | 80 | * @param mixed $timeZone |
| 81 | 81 | */ |
| 82 | 82 | public function __construct($expression, $interval, $timeZone = null) |
@@ -238,7 +238,7 @@ discard block |
||
| 238 | 238 | /** |
| 239 | 239 | * Get maintenance interval. |
| 240 | 240 | * |
| 241 | - * @return \DateInterval |
|
| 241 | + * @return string |
|
| 242 | 242 | */ |
| 243 | 243 | public function getInterval() |
| 244 | 244 | { |
@@ -8,13 +8,13 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace Janitor\Watcher\Scheduled; |
| 10 | 10 | |
| 11 | -use Janitor\ScheduledWatcher; |
|
| 12 | 11 | use Cron\CronExpression; |
| 13 | -use DateTime; |
|
| 14 | 12 | use DateInterval; |
| 13 | +use DateTime; |
|
| 15 | 14 | use Exception; |
| 16 | -use RuntimeException; |
|
| 17 | 15 | use InvalidArgumentException; |
| 16 | +use Janitor\ScheduledWatcher; |
|
| 17 | +use RuntimeException; |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * Cron syntax scheduled maintenance status watcher. |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Effortless maintenance management (http://juliangut.com/janitor) |
|
| 4 | - * |
|
| 5 | - * @link https://github.com/juliangut/janitor for the canonical source repository |
|
| 6 | - * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 7 | - */ |
|
| 3 | + * Effortless maintenance management (http://juliangut.com/janitor) |
|
| 4 | + * |
|
| 5 | + * @link https://github.com/juliangut/janitor for the canonical source repository |
|
| 6 | + * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Janitor\Watcher\Scheduled; |
| 10 | 10 | |
@@ -119,7 +119,7 @@ |
||
| 119 | 119 | $interval = $this->interval; |
| 120 | 120 | |
| 121 | 121 | return array_map( |
| 122 | - function ($start) use ($interval) { |
|
| 122 | + function($start) use ($interval) { |
|
| 123 | 123 | $end = clone $start; |
| 124 | 124 | $end->add($interval); |
| 125 | 125 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Effortless maintenance management (http://juliangut.com/janitor) |
|
| 4 | - * |
|
| 5 | - * @link https://github.com/juliangut/janitor for the canonical source repository |
|
| 6 | - * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 7 | - */ |
|
| 3 | + * Effortless maintenance management (http://juliangut.com/janitor) |
|
| 4 | + * |
|
| 5 | + * @link https://github.com/juliangut/janitor for the canonical source repository |
|
| 6 | + * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Janitor\Excluder; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Effortless maintenance management (http://juliangut.com/janitor) |
|
| 4 | - * |
|
| 5 | - * @link https://github.com/juliangut/janitor for the canonical source repository |
|
| 6 | - * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 7 | - */ |
|
| 3 | + * Effortless maintenance management (http://juliangut.com/janitor) |
|
| 4 | + * |
|
| 5 | + * @link https://github.com/juliangut/janitor for the canonical source repository |
|
| 6 | + * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Janitor\Excluder; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Effortless maintenance management (http://juliangut.com/janitor) |
|
| 4 | - * |
|
| 5 | - * @link https://github.com/juliangut/janitor for the canonical source repository |
|
| 6 | - * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 7 | - */ |
|
| 3 | + * Effortless maintenance management (http://juliangut.com/janitor) |
|
| 4 | + * |
|
| 5 | + * @link https://github.com/juliangut/janitor for the canonical source repository |
|
| 6 | + * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Janitor\Provider; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Effortless maintenance management (http://juliangut.com/janitor) |
|
| 4 | - * |
|
| 5 | - * @link https://github.com/juliangut/janitor for the canonical source repository |
|
| 6 | - * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 7 | - */ |
|
| 3 | + * Effortless maintenance management (http://juliangut.com/janitor) |
|
| 4 | + * |
|
| 5 | + * @link https://github.com/juliangut/janitor for the canonical source repository |
|
| 6 | + * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Janitor\Provider\IP; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Effortless maintenance management (http://juliangut.com/janitor) |
|
| 4 | - * |
|
| 5 | - * @link https://github.com/juliangut/janitor for the canonical source repository |
|
| 6 | - * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 7 | - */ |
|
| 3 | + * Effortless maintenance management (http://juliangut.com/janitor) |
|
| 4 | + * |
|
| 5 | + * @link https://github.com/juliangut/janitor for the canonical source repository |
|
| 6 | + * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Janitor\Provider; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Effortless maintenance management (http://juliangut.com/janitor) |
|
| 4 | - * |
|
| 5 | - * @link https://github.com/juliangut/janitor for the canonical source repository |
|
| 6 | - * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 7 | - */ |
|
| 3 | + * Effortless maintenance management (http://juliangut.com/janitor) |
|
| 4 | + * |
|
| 5 | + * @link https://github.com/juliangut/janitor for the canonical source repository |
|
| 6 | + * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Janitor\Provider\Path; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Effortless maintenance management (http://juliangut.com/janitor) |
|
| 4 | - * |
|
| 5 | - * @link https://github.com/juliangut/janitor for the canonical source repository |
|
| 6 | - * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 7 | - */ |
|
| 3 | + * Effortless maintenance management (http://juliangut.com/janitor) |
|
| 4 | + * |
|
| 5 | + * @link https://github.com/juliangut/janitor for the canonical source repository |
|
| 6 | + * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Janitor; |
| 10 | 10 | |