@@ -29,7 +29,7 @@ |
||
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 | { |
@@ -1,9 +1,9 @@ |
||
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 TokenGenerated extends Notification implements ShouldQueue |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | */ |
34 | 34 | public function via($notifiable) |
35 | 35 | { |
36 | - return ['mail']; |
|
36 | + return [ 'mail' ]; |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | { |
47 | 47 | $url = config('app.url').'users/confirm/'.$this->token; |
48 | 48 | $message = new MailMessage; |
49 | - $message->viewData['user_id'] = $notifiable->id; |
|
49 | + $message->viewData[ 'user_id' ] = $notifiable->id; |
|
50 | 50 | return $message |
51 | 51 | ->subject('Confirm your email address to start receiving jobs') |
52 | 52 | ->greeting('Thank you for joining JobsToMail.com.') |
@@ -13,7 +13,7 @@ discard block |
||
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->string('tier')->default(config('app.user_tiers.free')); |
18 | 18 | $table->dropColumn('keyword'); |
19 | 19 | $table->dropColumn('location'); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | */ |
28 | 28 | public function down() |
29 | 29 | { |
30 | - Schema::table('users', function (Blueprint $table) { |
|
30 | + Schema::table('users', function(Blueprint $table) { |
|
31 | 31 | $table->string('keyword')->nullable(); |
32 | 32 | $table->string('location')->nullable(); |
33 | 33 | $table->dropColumn('tier'); |
@@ -6,24 +6,24 @@ |
||
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 | 'confirmed_at' => null, |
13 | 13 | 'tier' => config('app.user_tiers.free'), |
14 | 14 | ]; |
15 | 15 | }); |
16 | -$factory->state(\JobApis\JobsToMail\Models\User::class, 'active', function (Faker\Generator $faker) { |
|
16 | +$factory->state(\JobApis\JobsToMail\Models\User::class, 'active', function(Faker\Generator $faker) { |
|
17 | 17 | return [ |
18 | 18 | 'confirmed_at' => $faker->dateTimeThisYear(), |
19 | 19 | ]; |
20 | 20 | }); |
21 | -$factory->state(\JobApis\JobsToMail\Models\User::class, 'premium', function (Faker\Generator $faker) { |
|
21 | +$factory->state(\JobApis\JobsToMail\Models\User::class, 'premium', function(Faker\Generator $faker) { |
|
22 | 22 | return [ |
23 | 23 | 'tier' => config('app.user_tiers.premium'), |
24 | 24 | ]; |
25 | 25 | }); |
26 | -$factory->state(\JobApis\JobsToMail\Models\User::class, 'deleted', function (Faker\Generator $faker) { |
|
26 | +$factory->state(\JobApis\JobsToMail\Models\User::class, 'deleted', function(Faker\Generator $faker) { |
|
27 | 27 | return [ |
28 | 28 | 'deleted_at' => $faker->dateTimeThisYear(), |
29 | 29 | ]; |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | public function boot() |
15 | 15 | { |
16 | 16 | // Only premium users can set this value to true |
17 | - Validator::extend('premium', function ($attribute, $value, $parameters, $validator) { |
|
17 | + Validator::extend('premium', function($attribute, $value, $parameters, $validator) { |
|
18 | 18 | if ($value == 1) { |
19 | 19 | return config('app.user_tiers.premium') === session()->get('user.tier'); |
20 | 20 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | \JobApis\JobsToMail\Repositories\UserRepository::class |
41 | 41 | ); |
42 | 42 | // Job board API client |
43 | - $this->app->bind(JobsMulti::class, function () { |
|
43 | + $this->app->bind(JobsMulti::class, function() { |
|
44 | 44 | return new JobsMulti(config('jobboards')); |
45 | 45 | }); |
46 | 46 | } |