Completed
Pull Request — master (#33)
by Karl
02:24
created
database/factories/UserFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 |--------------------------------------------------------------------------
7 7
 */
8 8
 
9
-$factory->define(\JobApis\JobsToMail\Models\User::class, function (Faker\Generator $faker) {
9
+$factory->define(\JobApis\JobsToMail\Models\User::class, function(Faker\Generator $faker) {
10 10
     return [
11 11
         'email' => $faker->safeEmail(),
12 12
         'keyword' => $faker->word(),
@@ -14,12 +14,12 @@  discard block
 block discarded – undo
14 14
         'confirmed_at' => null,
15 15
     ];
16 16
 });
17
-$factory->state(\JobApis\JobsToMail\Models\User::class, 'active', function (Faker\Generator $faker) {
17
+$factory->state(\JobApis\JobsToMail\Models\User::class, 'active', function(Faker\Generator $faker) {
18 18
     return [
19 19
         'confirmed_at' => $faker->dateTimeThisYear(),
20 20
     ];
21 21
 });
22
-$factory->state(\JobApis\JobsToMail\Models\User::class, 'deleted', function (Faker\Generator $faker) {
22
+$factory->state(\JobApis\JobsToMail\Models\User::class, 'deleted', function(Faker\Generator $faker) {
23 23
     return [
24 24
         'deleted_at' => $faker->dateTimeThisYear(),
25 25
     ];
Please login to merge, or discard this patch.
app/Providers/AppServiceProvider.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,5 @@
 block discarded – undo
1 1
 <?php namespace JobApis\JobsToMail\Providers;
2 2
 
3
-use Illuminate\Support\Facades\Validator;
4 3
 use Illuminate\Support\ServiceProvider;
5 4
 use JobApis\Jobs\Client\JobsMulti;
6 5
 use League\Csv\Writer;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,11 +35,11 @@
 block discarded – undo
35 35
             \JobApis\JobsToMail\Repositories\UserRepository::class
36 36
         );
37 37
         // Job board API client
38
-        $this->app->bind(JobsMulti::class, function () {
38
+        $this->app->bind(JobsMulti::class, function() {
39 39
             return new JobsMulti(config('jobboards'));
40 40
         });
41 41
         // CSV Writer
42
-        $this->app->bind('League\Csv\Writer', function ($app) {
42
+        $this->app->bind('League\Csv\Writer', function($app) {
43 43
             return Writer::createFromString('');
44 44
         });
45 45
     }
Please login to merge, or discard this patch.
app/Notifications/JobsCollected.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function via($notifiable)
45 45
     {
46
-        return ['mail', 'database'];
46
+        return [ 'mail', 'database' ];
47 47
     }
48 48
 
49 49
     /**
@@ -72,8 +72,8 @@  discard block
 block discarded – undo
72 72
         $message = new JobMailMessage();
73 73
 
74 74
         // Add user and search ID to view data
75
-        $message->viewData['user_id'] = $notifiable->id;
76
-        $message->viewData['search_id'] = $this->search->id;
75
+        $message->viewData[ 'user_id' ] = $notifiable->id;
76
+        $message->viewData[ 'search_id' ] = $this->search->id;
77 77
 
78 78
         // Update the subject
79 79
         $message->subject(count($this->jobs).' job listings found especially for you');
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         // Add a link to download the collection
93 93
         $message->action(
94 94
             'Download CSV',
95
-            url('/collections/' . $this->id . '/download')
95
+            url('/collections/'.$this->id.'/download')
96 96
         );
97 97
 
98 98
         return $message;
Please login to merge, or discard this patch.
app/Http/Controllers/UsersController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 use Illuminate\Http\Request;
5 5
 use Illuminate\Routing\Controller as BaseController;
6 6
 use Illuminate\Foundation\Validation\ValidatesRequests;
7
-use JobApis\JobsToMail\Http\Requests\CreateUser;;
7
+use JobApis\JobsToMail\Http\Requests\CreateUser; ;
8 8
 use JobApis\JobsToMail\Jobs\Users\CreateUserAndSearch;
9 9
 use JobApis\JobsToMail\Jobs\Users\Delete;
10 10
 
Please login to merge, or discard this patch.