@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | use Queue; |
| 4 | 4 | use Illuminate\Support\ServiceProvider; |
| 5 | -use Illuminate\Support\Facades\Log; |
|
| 6 | 5 | |
| 7 | 6 | class QwatcherServiceProvider extends ServiceProvider |
| 8 | 7 | { |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | use Illuminate\Queue\Queue; |
| 4 | 4 | use Carbon\Carbon; |
| 5 | -use Maqe\Qwatcher\Tracks\Enums\StatusType; |
|
| 6 | 5 | |
| 7 | 6 | abstract class TracksAbstract extends Queue |
| 8 | 7 | { |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Maqe\Qwatcher\Traits; |
| 4 | 4 | |
| 5 | -use DB; |
|
| 6 | 5 | use Illuminate\Contracts\Bus\Dispatcher; |
| 7 | 6 | |
| 8 | 7 | trait WatchableDispatchesJobs |
@@ -63,7 +63,9 @@ |
||
| 63 | 63 | |
| 64 | 64 | protected function getQueueFromJobsTableById($id) |
| 65 | 65 | { |
| 66 | - if ($this->status != StatusType::CREATE) return; |
|
| 66 | + if ($this->status != StatusType::CREATE) { |
|
| 67 | + return; |
|
| 68 | + } |
|
| 67 | 69 | |
| 68 | 70 | try { |
| 69 | 71 | return DB::table('jobs')->where('id', $id)->first(); |