Completed
Push — master ( 0c0a07...85110e )
by Unnawut
41s
created
src/Qwatcher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     public function getByStatus($status, $per_page = null)
124 124
     {
125
-        if(!in_array($status, $this->statusable)) {
125
+        if (!in_array($status, $this->statusable)) {
126 126
             throw new \InvalidArgumentException('"'.$status.'" is not allowed in status type');
127 127
         }
128 128
 
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
      */
153 153
     public function getByJobName($name, $per_page = null)
154 154
     {
155
-        $collecName = strtolower(str_replace('_', '%',$name));
155
+        $collecName = strtolower(str_replace('_', '%', $name));
156 156
         $condition = "`tracks`.`job_name` LIKE '%{$collecName}%'";
157 157
         $builder = Tracks::whereRaw($condition);
158 158
 
Please login to merge, or discard this patch.
src/Tracks/Transformers/TrackTransformer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      */
32 32
     public function transforms(Collection $tracks)
33 33
     {
34
-        return $tracks->each(function ($track) {
34
+        return $tracks->each(function($track) {
35 35
             $track = $this->transform($track);
36 36
         });
37 37
     }
Please login to merge, or discard this patch.
src/QwatcherServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,15 +18,15 @@  discard block
 block discarded – undo
18 18
      */
19 19
     public function boot()
20 20
     {
21
-        Queue::before(function ($job) {
21
+        Queue::before(function($job) {
22 22
             Qwatch::tracks(new ProcessTracks($job->job->getJobId(), $job->job));
23 23
         });
24 24
 
25
-        Queue::after(function ($job) {
25
+        Queue::after(function($job) {
26 26
             Qwatch::tracks(new SucceedTracks($job->job->getJobId(), $job->job));
27 27
         });
28 28
 
29
-        Queue::failing(function (JobFailed $job) {
29
+        Queue::failing(function(JobFailed $job) {
30 30
             // dd($event);
31 31
             Qwatch::tracks(new FailedTracks($job->job->getJobId(), $job->job));
32 32
         });
@@ -47,12 +47,12 @@  discard block
 block discarded – undo
47 47
         /**
48 48
         * publish migrations
49 49
         */
50
-        $this->publishes([__DIR__ . '/../database/migrations' => database_path('migrations')], 'migrations');
50
+        $this->publishes([__DIR__.'/../database/migrations' => database_path('migrations')], 'migrations');
51 51
 
52 52
         /**
53 53
         * Register Facade
54 54
         */
55
-        $this->app->bind('Qwatch', function () {
55
+        $this->app->bind('Qwatch', function() {
56 56
             return (new Qwatcher);
57 57
         });
58 58
 
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.