@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('tracks', function (Blueprint $table) { |
|
16 | + Schema::create('tracks', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('driver'); |
19 | 19 | $table->integer('queue_id'); |
@@ -70,7 +70,7 @@ |
||
70 | 70 | */ |
71 | 71 | public function getByJobName($name) |
72 | 72 | { |
73 | - $collecName = str_replace('\\', '%',$name); |
|
73 | + $collecName = str_replace('\\', '%', $name); |
|
74 | 74 | $condition = "`tracks`.`meta` LIKE '%\"job_name\":\"{$collecName}\"%'"; |
75 | 75 | |
76 | 76 | return $this->transforms(Tracks::whereRaw($condition)->get()); |
@@ -17,15 +17,15 @@ discard block |
||
17 | 17 | */ |
18 | 18 | public function boot() |
19 | 19 | { |
20 | - Queue::before(function ($job) { |
|
20 | + Queue::before(function($job) { |
|
21 | 21 | Qwatch::tracks(new ProcessTracks($job->job->getJobId(), $job->job)); |
22 | 22 | }); |
23 | 23 | |
24 | - Queue::after(function ($job) { |
|
24 | + Queue::after(function($job) { |
|
25 | 25 | Qwatch::tracks(new SucceedTracks($job->job->getJobId(), $job->job)); |
26 | 26 | }); |
27 | 27 | |
28 | - Queue::failing(function ($job) { |
|
28 | + Queue::failing(function($job) { |
|
29 | 29 | Qwatch::tracks(new FailedTracks($job->job->getJobId(), $job->job)); |
30 | 30 | }); |
31 | 31 | } |
@@ -40,12 +40,12 @@ discard block |
||
40 | 40 | /** |
41 | 41 | * publish migrations |
42 | 42 | */ |
43 | - $this->publishes([__DIR__ . '/../database/migrations' => database_path('migrations')], 'migrations'); |
|
43 | + $this->publishes([__DIR__.'/../database/migrations' => database_path('migrations')], 'migrations'); |
|
44 | 44 | |
45 | 45 | /** |
46 | 46 | * Register Facade |
47 | 47 | */ |
48 | - $this->app->bind('Qwatch', function () { |
|
48 | + $this->app->bind('Qwatch', function() { |
|
49 | 49 | return (new Qwatcher); |
50 | 50 | }); |
51 | 51 | } |