Completed
Pull Request — master (#1)
by Vuong
11:29 queued 08:54
created
src/Async.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -83,9 +83,9 @@  discard block
 block discarded – undo
83 83
     /**
84 84
      * Make async job.
85 85
      *
86
-     * @param $job
86
+     * @param callable $job
87 87
      *
88
-     * @return mixed
88
+     * @return Closure
89 89
      */
90 90
     protected function makeJob($job)
91 91
     {
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      * @param string $event
132 132
      * @param Runnable $process
133 133
      *
134
-     * @return callable
134
+     * @return Closure
135 135
      */
136 136
     protected function makeProcessListener(string $event, Runnable $process): callable
137 137
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@
 block discarded – undo
9 9
 namespace VXM\Async;
10 10
 
11 11
 use Closure;
12
+use Illuminate\Contracts\Events\Dispatcher as EventDispatcher;
12 13
 use Illuminate\Support\Str;
13 14
 use Spatie\Async\Process\Runnable;
14 15
 use VXM\Async\Runtime\ParentRuntime;
15
-use Illuminate\Contracts\Events\Dispatcher as EventDispatcher;
16 16
 
17 17
 /**
18 18
  * @author Vuong Minh <[email protected]>
Please login to merge, or discard this patch.
src/AsyncServiceProvider.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,9 +8,9 @@
 block discarded – undo
8 8
 
9 9
 namespace VXM\Async;
10 10
 
11
-use VXM\Async\Commands\JobMakeCommand;
12 11
 use Illuminate\Contracts\Support\DeferrableProvider;
13 12
 use Illuminate\Support\ServiceProvider as BaseServiceProvider;
13
+use VXM\Async\Commands\JobMakeCommand;
14 14
 
15 15
 /**
16 16
  * @author Vuong Minh <[email protected]>
Please login to merge, or discard this patch.
src/Runtime/ParentRuntime.php 2 patches
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,11 +8,11 @@
 block discarded – undo
8 8
 namespace VXM\Async\Runtime;
9 9
 
10 10
 use Spatie\Async\Pool;
11
+use Spatie\Async\Process\ParallelProcess;
11 12
 use Spatie\Async\Process\Runnable;
13
+use Spatie\Async\Runtime\ParentRuntime as BaseParentRuntime;
12 14
 use Symfony\Component\Process\Process;
13
-use Spatie\Async\Process\ParallelProcess;
14 15
 use VXM\Async\Process\SynchronousProcess;
15
-use Spatie\Async\Runtime\ParentRuntime as BaseParentRuntime;
16 16
 
17 17
 /**
18 18
  * ParentRuntime support invoke console environment in child runtime mode.
Please login to merge, or discard this patch.
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -24,6 +24,7 @@
 block discarded – undo
24 24
 {
25 25
     /**
26 26
      * {@inheritdoc}
27
+     * @param \Closure $task
27 28
      */
28 29
     public static function createProcess($task): Runnable
29 30
     {
Please login to merge, or discard this patch.