@@ -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 | |
@@ -46,8 +46,7 @@ discard block |
||
| 46 | 46 | /** |
| 47 | 47 | * @param array $watchers |
| 48 | 48 | * @param array $excluders |
| 49 | - * @param \Janitor\Handler|null $handler |
|
| 50 | - * @param string $requestAttribute |
|
| 49 | + * @param null|callable $handler |
|
| 51 | 50 | */ |
| 52 | 51 | public function __construct( |
| 53 | 52 | array $watchers = [], |
@@ -153,7 +152,6 @@ discard block |
||
| 153 | 152 | * |
| 154 | 153 | * @param \Psr\Http\Message\ServerRequestInterface $request |
| 155 | 154 | * @param \Psr\Http\Message\ResponseInterface $response |
| 156 | - * @param \Janitor\Watcher $watcher |
|
| 157 | 155 | * |
| 158 | 156 | * @return \Psr\Http\Message\ResponseInterface |
| 159 | 157 | */ |
@@ -10,8 +10,8 @@ |
||
| 10 | 10 | namespace Janitor; |
| 11 | 11 | |
| 12 | 12 | use Janitor\Handler\Render as RenderHandler; |
| 13 | -use Psr\Http\Message\ServerRequestInterface; |
|
| 14 | 13 | use Psr\Http\Message\ResponseInterface; |
| 14 | +use Psr\Http\Message\ServerRequestInterface; |
|
| 15 | 15 | |
| 16 | 16 | class Janitor |
| 17 | 17 | { |
@@ -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,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 | |
@@ -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 | |