@@ -14,8 +14,8 @@ discard block |
||
14 | 14 | /** |
15 | 15 | * Create a new notification instance. |
16 | 16 | * |
17 | - * @param Token $token |
|
18 | 17 | * |
18 | + * @param string $data |
|
19 | 19 | * @return void |
20 | 20 | */ |
21 | 21 | public function __construct($data) |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * Get the notification's delivery channels. |
28 | 28 | * |
29 | 29 | * @param mixed $notifiable |
30 | - * @return array |
|
30 | + * @return string[] |
|
31 | 31 | */ |
32 | 32 | public function via($notifiable) |
33 | 33 | { |
@@ -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 |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | */ |
32 | 32 | public function via($notifiable) |
33 | 33 | { |
34 | - return ['mail']; |
|
34 | + return [ 'mail' ]; |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | ->line('A new user is interested in JobsToMail premium: '); |
48 | 48 | |
49 | 49 | foreach ($this->data as $key => $value) { |
50 | - $message->line($key . ': ' . $value); |
|
50 | + $message->line($key.': '.$value); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | return $message; |
@@ -21,7 +21,7 @@ |
||
21 | 21 | */ |
22 | 22 | public function messages() |
23 | 23 | { |
24 | - return []; |
|
24 | + return [ ]; |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | /** |
@@ -19,11 +19,11 @@ |
||
19 | 19 | /** |
20 | 20 | * Create a new job instance. |
21 | 21 | */ |
22 | - public function __construct($data = []) |
|
22 | + public function __construct($data = [ ]) |
|
23 | 23 | { |
24 | 24 | $this->data = $data; |
25 | 25 | $this->admin = new User( |
26 | - ['email' => env('ADMIN_EMAIL', '[email protected]')] |
|
26 | + [ 'email' => env('ADMIN_EMAIL', '[email protected]') ] |
|
27 | 27 | ); |
28 | 28 | } |
29 | 29 |