@@ -100,7 +100,7 @@ |
||
100 | 100 | * Queue the given notification instances. |
101 | 101 | * |
102 | 102 | * @param mixed $notifiables |
103 | - * @param array[\Illuminate\Notifcations\Channels\Notification] $notification |
|
103 | + * @param ShouldQueue $notification |
|
104 | 104 | * @return void |
105 | 105 | */ |
106 | 106 | protected function queueNotification($notifiables, $notification) |
@@ -2,17 +2,17 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Notifications; |
4 | 4 | |
5 | -use Ramsey\Uuid\Uuid; |
|
6 | -use InvalidArgumentException; |
|
7 | -use Illuminate\Support\Manager; |
|
8 | -use Nexmo\Client as NexmoClient; |
|
9 | -use Illuminate\Support\Collection; |
|
10 | 5 | use GuzzleHttp\Client as HttpClient; |
11 | -use Illuminate\Contracts\Queue\ShouldQueue; |
|
12 | 6 | use Illuminate\Contracts\Bus\Dispatcher as Bus; |
13 | -use Nexmo\Client\Credentials\Basic as NexmoCredentials; |
|
14 | -use Illuminate\Contracts\Notifications\Factory as FactoryContract; |
|
15 | 7 | use Illuminate\Contracts\Notifications\Dispatcher as DispatcherContract; |
8 | +use Illuminate\Contracts\Notifications\Factory as FactoryContract; |
|
9 | +use Illuminate\Contracts\Queue\ShouldQueue; |
|
10 | +use Illuminate\Support\Collection; |
|
11 | +use Illuminate\Support\Manager; |
|
12 | +use InvalidArgumentException; |
|
13 | +use Nexmo\Client as NexmoClient; |
|
14 | +use Nexmo\Client\Credentials\Basic as NexmoCredentials; |
|
15 | +use Ramsey\Uuid\Uuid; |
|
16 | 16 | |
17 | 17 | class ChannelManager extends Manager implements DispatcherContract, FactoryContract |
18 | 18 | { |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Notifications\Channels; |
4 | 4 | |
5 | -use RuntimeException; |
|
6 | -use Illuminate\Notifications\Notification; |
|
7 | 5 | use Illuminate\Contracts\Events\Dispatcher; |
8 | 6 | use Illuminate\Notifications\Events\BroadcastNotificationCreated; |
7 | +use Illuminate\Notifications\Notification; |
|
8 | +use RuntimeException; |
|
9 | 9 | |
10 | 10 | class BroadcastChannel |
11 | 11 | { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Notifications\Channels; |
4 | 4 | |
5 | -use RuntimeException; |
|
6 | 5 | use Illuminate\Notifications\Notification; |
6 | +use RuntimeException; |
|
7 | 7 | |
8 | 8 | class DatabaseChannel |
9 | 9 | { |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Notifications\Channels; |
4 | 4 | |
5 | -use Illuminate\Support\Str; |
|
6 | 5 | use Illuminate\Contracts\Mail\Mailer; |
7 | 6 | use Illuminate\Notifications\Notification; |
7 | +use Illuminate\Support\Str; |
|
8 | 8 | |
9 | 9 | class MailChannel |
10 | 10 | { |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Notifications\Channels; |
4 | 4 | |
5 | -use Nexmo\Client as NexmoClient; |
|
6 | -use Illuminate\Notifications\Notification; |
|
7 | 5 | use Illuminate\Notifications\Messages\NexmoMessage; |
6 | +use Illuminate\Notifications\Notification; |
|
7 | +use Nexmo\Client as NexmoClient; |
|
8 | 8 | |
9 | 9 | class NexmoSmsChannel |
10 | 10 | { |
@@ -3,9 +3,9 @@ |
||
3 | 3 | namespace Illuminate\Notifications\Channels; |
4 | 4 | |
5 | 5 | use GuzzleHttp\Client as HttpClient; |
6 | -use Illuminate\Notifications\Notification; |
|
7 | -use Illuminate\Notifications\Messages\SlackMessage; |
|
8 | 6 | use Illuminate\Notifications\Messages\SlackAttachment; |
7 | +use Illuminate\Notifications\Messages\SlackMessage; |
|
8 | +use Illuminate\Notifications\Notification; |
|
9 | 9 | |
10 | 10 | class SlackWebhookChannel |
11 | 11 | { |
@@ -3,8 +3,8 @@ |
||
3 | 3 | namespace Illuminate\Notifications\Console; |
4 | 4 | |
5 | 5 | use Illuminate\Console\Command; |
6 | -use Illuminate\Support\Composer; |
|
7 | 6 | use Illuminate\Filesystem\Filesystem; |
7 | +use Illuminate\Support\Composer; |
|
8 | 8 | |
9 | 9 | class NotificationTableCommand extends Command |
10 | 10 | { |
@@ -50,7 +50,7 @@ |
||
50 | 50 | /** |
51 | 51 | * Get the channels the event should broadcast on. |
52 | 52 | * |
53 | - * @return array |
|
53 | + * @return PrivateChannel[] |
|
54 | 54 | */ |
55 | 55 | public function broadcastOn() |
56 | 56 | { |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Notifications\Events; |
4 | 4 | |
5 | -use Illuminate\Queue\SerializesModels; |
|
6 | -use Illuminate\Notifications\Notification; |
|
7 | 5 | use Illuminate\Broadcasting\PrivateChannel; |
8 | 6 | use Illuminate\Contracts\Broadcasting\ShouldBroadcast; |
7 | +use Illuminate\Notifications\Notification; |
|
8 | +use Illuminate\Queue\SerializesModels; |
|
9 | 9 | |
10 | 10 | class BroadcastNotificationCreated implements ShouldBroadcast |
11 | 11 | { |
@@ -21,7 +21,6 @@ discard block |
||
21 | 21 | /** |
22 | 22 | * Create a new message instance. |
23 | 23 | * |
24 | - * @param string $message |
|
25 | 24 | * @return void |
26 | 25 | */ |
27 | 26 | public function __construct($content = '') |
@@ -45,7 +44,6 @@ discard block |
||
45 | 44 | /** |
46 | 45 | * Set the phone number the message should be sent from. |
47 | 46 | * |
48 | - * @param string $number |
|
49 | 47 | * @return $this |
50 | 48 | */ |
51 | 49 | public function from($from) |