Passed
Push — v2 ( c7d513...0abf20 )
by Brice
02:52 queued 14s
created
src/Domain/Task/Status.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@
 block discarded – undo
5 5
 final class Status
6 6
 {
7 7
     const WAITING  = 'waiting',
8
-          RUNNING  = 'running',
9
-          FINISHED = 'finished',
10
-          FAILED   = 'failed';
8
+            RUNNING  = 'running',
9
+            FINISHED = 'finished',
10
+            FAILED   = 'failed';
11 11
 
12 12
     /**
13 13
      *
Please login to merge, or discard this patch.
src/Infrastructure/RedisQueue.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
         }
164 164
 
165 165
         // Order Tasks
166
-        usort($tasks, function ($a, $b) use ($orderBy) {
166
+        usort($tasks, function($a, $b) use ($orderBy) {
167 167
             $aValue = $a[$orderBy];
168 168
             $bValue = $b[$orderBy];
169 169
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,7 +167,9 @@
 block discarded – undo
167 167
             $aValue = $a[$orderBy];
168 168
             $bValue = $b[$orderBy];
169 169
 
170
-            if ($aValue === $bValue) return 0;
170
+            if ($aValue === $bValue) {
171
+                return 0;
172
+            }
171 173
 
172 174
             return $aValue < $bValue ? -1 : 1;
173 175
         });
Please login to merge, or discard this patch.
src/Application/Http/ApiRouting.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,9 +19,9 @@
 block discarded – undo
19 19
     {
20 20
         return cachedDispatcher(function (RouteCollector $r) {
21 21
 
22
-             $r->get( '/tasks',             ListTasks::class );
22
+                $r->get( '/tasks',             ListTasks::class );
23 23
             $r->post( '/tasks',             AddTask::class   );
24
-             $r->get( '/task/{identifier}', ShowTask::class  );
24
+                $r->get( '/task/{identifier}', ShowTask::class  );
25 25
 
26 26
         }, [
27 27
             'cacheFile' => $dir,
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,11 +17,11 @@
 block discarded – undo
17 17
      */
18 18
     public static function createFromCache(string $dir, bool $disable = false): Dispatcher
19 19
     {
20
-        return cachedDispatcher(function (RouteCollector $r) {
20
+        return cachedDispatcher(function(RouteCollector $r) {
21 21
 
22
-             $r->get( '/tasks',             ListTasks::class );
23
-            $r->post( '/tasks',             AddTask::class   );
24
-             $r->get( '/task/{identifier}', ShowTask::class  );
22
+             $r->get('/tasks', ListTasks::class);
23
+            $r->post('/tasks', AddTask::class);
24
+             $r->get('/task/{identifier}', ShowTask::class);
25 25
 
26 26
         }, [
27 27
             'cacheFile' => $dir,
Please login to merge, or discard this patch.
tests/src/Application/ManagerTest.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 final class ManagerTest extends TestCase
13 13
 {
14 14
     /**
15
-
16 15
      * @var Console
17 16
      */
18 17
     private static $manager;
Please login to merge, or discard this patch.