Completed
Push — master ( df0683...b52746 )
by Karl
06:54
created
app/Jobs/Users/CreateUserAndSearch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     /**
16 16
      * Create a new job instance.
17 17
      */
18
-    public function __construct($data = [])
18
+    public function __construct($data = [ ])
19 19
     {
20 20
         $this->data = $data;
21 21
     }
Please login to merge, or discard this patch.
app/Providers/AppServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,11 +34,11 @@
 block discarded – undo
34 34
             \JobApis\JobsToMail\Repositories\UserRepository::class
35 35
         );
36 36
         // Job board API client
37
-        $this->app->bind(JobsMulti::class, function () {
37
+        $this->app->bind(JobsMulti::class, function() {
38 38
             return new JobsMulti(config('jobboards'));
39 39
         });
40 40
         // CSV Writer
41
-        $this->app->bind('League\Csv\Writer', function () {
41
+        $this->app->bind('League\Csv\Writer', function() {
42 42
             return Writer::createFromString('');
43 43
         });
44 44
     }
Please login to merge, or discard this patch.
app/Http/Controllers/NotificationsController.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php namespace JobApis\JobsToMail\Http\Controllers;
2 2
 
3 3
 use Illuminate\Foundation\Bus\DispatchesJobs;
4
+use Illuminate\Foundation\Validation\ValidatesRequests;
4 5
 use Illuminate\Http\Request;
5 6
 use Illuminate\Routing\Controller as BaseController;
6
-use Illuminate\Foundation\Validation\ValidatesRequests;
7 7
 use JobApis\JobsToMail\Jobs\Notifications\GenerateCsv;
8 8
 use JobApis\JobsToMail\Jobs\Notifications\GetNotificationById;
9 9
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
         $notification = $this->dispatchNow(new GetNotificationById($id));
20 20
 
21 21
         if ($notification) {
22
-            return view('notifications.single', ['notification' => $notification]);
22
+            return view('notifications.single', [ 'notification' => $notification ]);
23 23
         }
24 24
 
25 25
         $request->session()->flash('alert-danger', 'This job alert has expired.');
@@ -34,6 +34,6 @@  discard block
 block discarded – undo
34 34
     {
35 35
         $path = $this->dispatchNow(new GenerateCsv($id));
36 36
 
37
-        return response()->download($path, null, ['Content-Type: text/csv']);
37
+        return response()->download($path, null, [ 'Content-Type: text/csv' ]);
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
app/Jobs/Notifications/SearchAndNotifyUser.php 2 patches
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php namespace JobApis\JobsToMail\Jobs\Notifications;
2 2
 
3 3
 use Illuminate\Bus\Queueable;
4
-use Illuminate\Queue\SerializesModels;
5
-use Illuminate\Queue\InteractsWithQueue;
6 4
 use Illuminate\Contracts\Queue\ShouldQueue;
5
+use Illuminate\Queue\InteractsWithQueue;
6
+use Illuminate\Queue\SerializesModels;
7 7
 use Illuminate\Support\Facades\Log;
8
-use JobApis\Jobs\Client\JobsMulti;
9 8
 use JobApis\JobsToMail\Filters\RecruiterFilter;
10 9
 use JobApis\JobsToMail\Models\Recruiter;
11 10
 use JobApis\JobsToMail\Models\Search;
12 11
 use JobApis\JobsToMail\Notifications\JobsCollected;
12
+use JobApis\Jobs\Client\JobsMulti;
13 13
 
14 14
 class SearchAndNotifyUser implements ShouldQueue
15 15
 {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     /**
21 21
      * @var array Jobs collected from providers.
22 22
      */
23
-    protected $jobs = [];
23
+    protected $jobs = [ ];
24 24
 
25 25
     /**
26 26
      * @var Recruiter recruiter model
Please login to merge, or discard this patch.
app/Notifications/ConfirmationTokenGenerated.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      * Get the notification's delivery channels.
30 30
      *
31 31
      * @param  mixed  $notifiable
32
-     * @return array
32
+     * @return string[]
33 33
      */
34 34
     public function via($notifiable)
35 35
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php namespace JobApis\JobsToMail\Notifications;
2 2
 
3 3
 use Illuminate\Bus\Queueable;
4
-use Illuminate\Notifications\Notification;
5 4
 use Illuminate\Contracts\Queue\ShouldQueue;
6 5
 use Illuminate\Notifications\Messages\MailMessage;
6
+use Illuminate\Notifications\Notification;
7 7
 use JobApis\JobsToMail\Models\Token;
8 8
 
9 9
 class ConfirmationTokenGenerated extends Notification implements ShouldQueue
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function via($notifiable)
37 37
     {
38
-        return ['mail'];
38
+        return [ 'mail' ];
39 39
     }
40 40
 
41 41
     /**
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     {
49 49
         $url = config('app.url').'auth/confirm/'.$this->token;
50 50
         $message = new MailMessage;
51
-        $message->viewData['user_id'] = $notifiable->id;
51
+        $message->viewData[ 'user_id' ] = $notifiable->id;
52 52
         return $message
53 53
             ->subject('Confirm your email address to start receiving jobs')
54 54
             ->greeting('Thank you for joining '.config('app.name'))
Please login to merge, or discard this patch.
app/Notifications/LoginTokenGenerated.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      * Get the notification's delivery channels.
30 30
      *
31 31
      * @param  mixed  $notifiable
32
-     * @return array
32
+     * @return string[]
33 33
      */
34 34
     public function via($notifiable)
35 35
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php namespace JobApis\JobsToMail\Notifications;
2 2
 
3 3
 use Illuminate\Bus\Queueable;
4
-use Illuminate\Notifications\Notification;
5 4
 use Illuminate\Contracts\Queue\ShouldQueue;
6 5
 use Illuminate\Notifications\Messages\MailMessage;
6
+use Illuminate\Notifications\Notification;
7 7
 use JobApis\JobsToMail\Models\Token;
8 8
 
9 9
 class LoginTokenGenerated extends Notification implements ShouldQueue
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function via($notifiable)
37 37
     {
38
-        return ['mail'];
38
+        return [ 'mail' ];
39 39
     }
40 40
 
41 41
     /**
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     {
49 49
         $url = config('app.url').'auth/confirm/'.$this->token;
50 50
         $message = new MailMessage;
51
-        $message->viewData['user_id'] = $notifiable->id;
51
+        $message->viewData[ 'user_id' ] = $notifiable->id;
52 52
         return $message
53 53
             ->subject('Your Login Token for JobsToMail')
54 54
             ->line('Just click the button below to log in immediately.')
Please login to merge, or discard this patch.
database/seeds/TestingDatabaseSeeder.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 use Faker\Factory as Faker;
4 4
 use Illuminate\Database\Seeder;
5
-use JobApis\JobsToMail\Models\User;
6 5
 use JobApis\JobsToMail\Models\CustomDatabaseNotification as Notification;
7 6
 use JobApis\JobsToMail\Models\Search;
8 7
 use JobApis\JobsToMail\Models\Token;
8
+use JobApis\JobsToMail\Models\User;
9 9
 
10 10
 class TestingDatabaseSeeder extends Seeder
11 11
 {
Please login to merge, or discard this patch.
database/migrations/2016_12_31_212809_drop-tiers.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::table('users', function (Blueprint $table) {
16
+        Schema::table('users', function(Blueprint $table) {
17 17
             $table->dropColumn('tier');
18 18
         });
19 19
     }
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function down()
27 27
     {
28
-        Schema::table('users', function (Blueprint $table) {
28
+        Schema::table('users', function(Blueprint $table) {
29 29
             $table->string('tier')->default(config('app.user_tiers.free'));
30 30
         });
31 31
     }
Please login to merge, or discard this patch.
app/Http/Controllers/SearchesController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         );
26 26
 
27 27
         if (!$results->isEmpty()) {
28
-            return view('searches.index', ['searches' => $results]);
28
+            return view('searches.index', [ 'searches' => $results ]);
29 29
         }
30 30
 
31 31
         $request->session()->flash('alert-danger', 'You currently have no active searches. Try adding one.');
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php namespace JobApis\JobsToMail\Http\Controllers;
2 2
 
3 3
 use Illuminate\Foundation\Bus\DispatchesJobs;
4
+use Illuminate\Foundation\Validation\ValidatesRequests;
4 5
 use Illuminate\Http\Request;
5 6
 use Illuminate\Routing\Controller as BaseController;
6
-use Illuminate\Foundation\Validation\ValidatesRequests;
7 7
 use Illuminate\Support\Facades\URL;
8 8
 use JobApis\JobsToMail\Jobs\Searches\Delete;
9 9
 use JobApis\JobsToMail\Jobs\Searches\GetUserSearches;
Please login to merge, or discard this patch.