Completed
Push — master ( 9207cc...9e678e )
by Julián
03:50 queued 01:31
created
src/Watcher/Scheduled/Cron.php 4 patches
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,13 +8,13 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
241 241
     /**
242 242
      * Get maintenance interval.
243 243
      *
244
-     * @return \DateInterval
244
+     * @return string
245 245
      */
246 246
     public function getInterval()
247 247
     {
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Janitor.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Strategy/Render.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
     {$message}
56 56
 </body>
57 57
 </html>
58
-EOF;
58
+eof;
59 59
 
60 60
         echo $content;
61 61
     }
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Watcher/Scheduled/ScheduledTrait.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Excluder/IP.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Excluder/Path.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Provider/IP.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Provider/IP/Basic.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Provider/Path.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.