@@ -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. |
@@ -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 | |
@@ -76,8 +76,8 @@ discard block |
||
| 76 | 76 | protected $interval; |
| 77 | 77 | |
| 78 | 78 | /** |
| 79 | - * @param \Cron\CronExpression|string $expression |
|
| 80 | - * @param \DateInterval|string $interval |
|
| 79 | + * @param string $expression |
|
| 80 | + * @param string $interval |
|
| 81 | 81 | * @param mixed $timeZone |
| 82 | 82 | */ |
| 83 | 83 | public function __construct($expression, $interval, $timeZone = null) |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | /** |
| 242 | 242 | * Get maintenance interval. |
| 243 | 243 | * |
| 244 | - * @return \DateInterval |
|
| 244 | + * @return string |
|
| 245 | 245 | */ |
| 246 | 246 | public function getInterval() |
| 247 | 247 | { |
@@ -1,11 +1,11 @@ |
||
| 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 | - * |
|
| 7 | - * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 8 | - */ |
|
| 3 | + * Effortless maintenance management (http://juliangut.com/janitor) |
|
| 4 | + * |
|
| 5 | + * @link https://github.com/juliangut/janitor for the canonical source repository |
|
| 6 | + * |
|
| 7 | + * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | namespace Janitor\Watcher\Scheduled; |
| 11 | 11 | |
@@ -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 | } |
@@ -1,11 +1,11 @@ |
||
| 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 | - * |
|
| 7 | - * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 8 | - */ |
|
| 3 | + * Effortless maintenance management (http://juliangut.com/janitor) |
|
| 4 | + * |
|
| 5 | + * @link https://github.com/juliangut/janitor for the canonical source repository |
|
| 6 | + * |
|
| 7 | + * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | namespace Janitor\Watcher\Scheduled; |
| 11 | 11 | |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | {$message} |
| 56 | 56 | </body> |
| 57 | 57 | </html> |
| 58 | -EOF; |
|
| 58 | +eof; |
|
| 59 | 59 | |
| 60 | 60 | echo $content; |
| 61 | 61 | } |
@@ -1,11 +1,11 @@ |
||
| 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 | - * |
|
| 7 | - * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 8 | - */ |
|
| 3 | + * Effortless maintenance management (http://juliangut.com/janitor) |
|
| 4 | + * |
|
| 5 | + * @link https://github.com/juliangut/janitor for the canonical source repository |
|
| 6 | + * |
|
| 7 | + * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | namespace Janitor\Watcher\Scheduled; |
| 11 | 11 | |
@@ -1,11 +1,11 @@ |
||
| 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 | - * |
|
| 7 | - * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 8 | - */ |
|
| 3 | + * Effortless maintenance management (http://juliangut.com/janitor) |
|
| 4 | + * |
|
| 5 | + * @link https://github.com/juliangut/janitor for the canonical source repository |
|
| 6 | + * |
|
| 7 | + * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | namespace Janitor\Watcher\Scheduled; |
| 11 | 11 | |
@@ -1,11 +1,11 @@ |
||
| 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 | - * |
|
| 7 | - * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 8 | - */ |
|
| 3 | + * Effortless maintenance management (http://juliangut.com/janitor) |
|
| 4 | + * |
|
| 5 | + * @link https://github.com/juliangut/janitor for the canonical source repository |
|
| 6 | + * |
|
| 7 | + * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | namespace Janitor\Watcher\Scheduled; |
| 11 | 11 | |
@@ -1,11 +1,11 @@ |
||
| 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 | - * |
|
| 7 | - * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 8 | - */ |
|
| 3 | + * Effortless maintenance management (http://juliangut.com/janitor) |
|
| 4 | + * |
|
| 5 | + * @link https://github.com/juliangut/janitor for the canonical source repository |
|
| 6 | + * |
|
| 7 | + * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | namespace Janitor\Watcher\Scheduled; |
| 11 | 11 | |
@@ -1,11 +1,11 @@ |
||
| 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 | - * |
|
| 7 | - * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 8 | - */ |
|
| 3 | + * Effortless maintenance management (http://juliangut.com/janitor) |
|
| 4 | + * |
|
| 5 | + * @link https://github.com/juliangut/janitor for the canonical source repository |
|
| 6 | + * |
|
| 7 | + * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | namespace Janitor\Watcher\Scheduled; |
| 11 | 11 | |
@@ -1,11 +1,11 @@ |
||
| 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 | - * |
|
| 7 | - * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 8 | - */ |
|
| 3 | + * Effortless maintenance management (http://juliangut.com/janitor) |
|
| 4 | + * |
|
| 5 | + * @link https://github.com/juliangut/janitor for the canonical source repository |
|
| 6 | + * |
|
| 7 | + * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | namespace Janitor\Watcher\Scheduled; |
| 11 | 11 | |
@@ -1,11 +1,11 @@ |
||
| 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 | - * |
|
| 7 | - * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 8 | - */ |
|
| 3 | + * Effortless maintenance management (http://juliangut.com/janitor) |
|
| 4 | + * |
|
| 5 | + * @link https://github.com/juliangut/janitor for the canonical source repository |
|
| 6 | + * |
|
| 7 | + * @license https://github.com/juliangut/janitor/blob/master/LICENSE |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | namespace Janitor\Watcher\Scheduled; |
| 11 | 11 | |