Completed
Branch middleware (801be0)
by Julián
03:06
created
src/Janitor.php 4 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.
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,8 +46,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
src/Watcher/Scheduled/Cron.php 2 patches
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.
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/ScheduledWatcher.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/Watcher.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/Watcher/Environment.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/Watcher/File.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/Watcher/Manual.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.