Completed
Pull Request — master (#21)
by
unknown
04:20
created
src/QwatcherServiceProvider.php 4 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
     /**
64 64
      * Get the services provided by the provider.
65 65
      *
66
-     * @return array
66
+     * @return string[]
67 67
      */
68 68
     public function provides()
69 69
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -34,26 +34,26 @@
 block discarded – undo
34 34
     public function register()
35 35
     {
36 36
         /**
37
-        * publish migrations
38
-        */
37
+         * publish migrations
38
+         */
39 39
         $this->publishes([__DIR__ . '/../database/migrations' => database_path('migrations')], 'migrations');
40 40
         $this->publishes([__DIR__ . '/../config/qwatcher.php' => config_path('qwatcher.php')], 'config');
41 41
 
42 42
         /**
43
-        * merge config
44
-        */
43
+         * merge config
44
+         */
45 45
         $this->mergeConfigFrom(__DIR__ . '/../config/qwatcher.php', 'qwatcher');
46 46
 
47 47
         /**
48
-        * Register Facade
49
-        */
48
+         * Register Facade
49
+         */
50 50
         $this->app->bind('Qwatch', function () {
51 51
             return (new Qwatcher);
52 52
         });
53 53
 
54 54
         /**
55
-        * Register artisan Commands
56
-        */
55
+         * Register artisan Commands
56
+         */
57 57
         // $this->commands([
58 58
         //     \Maqe\Qwatcher\Commands\SomeCommand1::class,
59 59
         //     \Maqe\Qwatcher\Commands\SomeCommand2::class
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function boot()
15 15
     {
16
-        Queue::before(function ($job) {
16
+        Queue::before(function($job) {
17 17
             \Maqe\Qwatcher\Facades\Qwatch::process($job->job->getJobId(), $job->job);
18 18
         });
19 19
 
20
-        Queue::after(function ($job) {
20
+        Queue::after(function($job) {
21 21
             \Maqe\Qwatcher\Facades\Qwatch::succeed($job->job->getJobId(), $job->job);
22 22
         });
23 23
 
@@ -36,18 +36,18 @@  discard block
 block discarded – undo
36 36
         /**
37 37
         * publish migrations
38 38
         */
39
-        $this->publishes([__DIR__ . '/../database/migrations' => database_path('migrations')], 'migrations');
40
-        $this->publishes([__DIR__ . '/../config/qwatcher.php' => config_path('qwatcher.php')], 'config');
39
+        $this->publishes([__DIR__.'/../database/migrations' => database_path('migrations')], 'migrations');
40
+        $this->publishes([__DIR__.'/../config/qwatcher.php' => config_path('qwatcher.php')], 'config');
41 41
 
42 42
         /**
43 43
         * merge config
44 44
         */
45
-        $this->mergeConfigFrom(__DIR__ . '/../config/qwatcher.php', 'qwatcher');
45
+        $this->mergeConfigFrom(__DIR__.'/../config/qwatcher.php', 'qwatcher');
46 46
 
47 47
         /**
48 48
         * Register Facade
49 49
         */
50
-        $this->app->bind('Qwatch', function () {
50
+        $this->app->bind('Qwatch', function() {
51 51
             return (new Qwatcher);
52 52
         });
53 53
 
Please login to merge, or discard this patch.
src/Tracks/TracksAbstract.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
src/Traits/WatchableDispatchesJobs.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Tracks/TracksDatabase.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,9 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
database/migrations/2016_10_20_071609_create_Tracks_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.