@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Neo\EarlyAccess; |
| 4 | 4 | |
| 5 | -use Illuminate\Support\InteractsWithTime; |
|
| 6 | 5 | use Illuminate\Contracts\Auth\Guard as Auth; |
| 7 | 6 | use Illuminate\Contracts\Filesystem\Filesystem as Storage; |
| 7 | +use Illuminate\Support\InteractsWithTime; |
|
| 8 | 8 | |
| 9 | 9 | class EarlyAccess |
| 10 | 10 | { |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | /** |
| 66 | 66 | * Get the services provided by the provider. |
| 67 | 67 | * |
| 68 | - * @return array |
|
| 68 | + * @return string[] |
|
| 69 | 69 | */ |
| 70 | 70 | public function provides() |
| 71 | 71 | { |
@@ -2,14 +2,14 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Neo\EarlyAccess; |
| 4 | 4 | |
| 5 | -use Neo\EarlyAccess\Console\Commands; |
|
| 6 | 5 | use Illuminate\Support\ServiceProvider; |
| 6 | +use Neo\EarlyAccess\Console\Commands; |
|
| 7 | +use Neo\EarlyAccess\Contracts\Subscription\SubscriptionProvider; |
|
| 7 | 8 | use Neo\EarlyAccess\Events\UserSubscribed; |
| 8 | 9 | use Neo\EarlyAccess\Events\UserUnsubscribed; |
| 9 | -use Neo\EarlyAccess\SubscriptionServices\DatabaseService; |
|
| 10 | -use Neo\EarlyAccess\Listeners\SendUnsubscribeNotification; |
|
| 11 | 10 | use Neo\EarlyAccess\Listeners\SendSubscriptionNotification; |
| 12 | -use Neo\EarlyAccess\Contracts\Subscription\SubscriptionProvider; |
|
| 11 | +use Neo\EarlyAccess\Listeners\SendUnsubscribeNotification; |
|
| 12 | +use Neo\EarlyAccess\SubscriptionServices\DatabaseService; |
|
| 13 | 13 | use Neo\EarlyAccess\SubscriptionServices\Repositories\Database\EloquentRepository; |
| 14 | 14 | |
| 15 | 15 | class EarlyAccessServiceProvider extends ServiceProvider |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | * Get the notification's delivery channels. |
| 32 | 32 | * |
| 33 | 33 | * @param mixed $notifiable |
| 34 | - * @return array |
|
| 34 | + * @return string[] |
|
| 35 | 35 | */ |
| 36 | 36 | public function via($notifiable) |
| 37 | 37 | { |
@@ -3,10 +3,10 @@ |
||
| 3 | 3 | namespace Neo\EarlyAccess\Notifications; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Bus\Queueable; |
| 6 | -use Neo\EarlyAccess\Subscriber; |
|
| 7 | -use Illuminate\Notifications\Notification; |
|
| 8 | 6 | use Illuminate\Contracts\Queue\ShouldQueue; |
| 9 | 7 | use Illuminate\Notifications\Messages\MailMessage; |
| 8 | +use Illuminate\Notifications\Notification; |
|
| 9 | +use Neo\EarlyAccess\Subscriber; |
|
| 10 | 10 | |
| 11 | 11 | class UserSubscribed extends Notification implements ShouldQueue |
| 12 | 12 | { |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | * Get the notification's delivery channels. |
| 32 | 32 | * |
| 33 | 33 | * @param mixed $notifiable |
| 34 | - * @return array |
|
| 34 | + * @return string[] |
|
| 35 | 35 | */ |
| 36 | 36 | public function via($notifiable) |
| 37 | 37 | { |
@@ -3,10 +3,10 @@ |
||
| 3 | 3 | namespace Neo\EarlyAccess\Notifications; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Bus\Queueable; |
| 6 | -use Neo\EarlyAccess\Subscriber; |
|
| 7 | -use Illuminate\Notifications\Notification; |
|
| 8 | 6 | use Illuminate\Contracts\Queue\ShouldQueue; |
| 9 | 7 | use Illuminate\Notifications\Messages\MailMessage; |
| 8 | +use Illuminate\Notifications\Notification; |
|
| 9 | +use Neo\EarlyAccess\Subscriber; |
|
| 10 | 10 | |
| 11 | 11 | class UserUnsubscribed extends Notification implements ShouldQueue |
| 12 | 12 | { |
@@ -2,11 +2,11 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Neo\EarlyAccess; |
| 4 | 4 | |
| 5 | +use Illuminate\Contracts\Support\Arrayable; |
|
| 5 | 6 | use Illuminate\Notifications\Notifiable; |
| 7 | +use Neo\EarlyAccess\Contracts\Subscription\SubscriptionProvider; |
|
| 6 | 8 | use Neo\EarlyAccess\Events\UserSubscribed; |
| 7 | -use Illuminate\Contracts\Support\Arrayable; |
|
| 8 | 9 | use Neo\EarlyAccess\Events\UserUnsubscribed; |
| 9 | -use Neo\EarlyAccess\Contracts\Subscription\SubscriptionProvider; |
|
| 10 | 10 | |
| 11 | 11 | class Subscriber implements Arrayable |
| 12 | 12 | { |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Neo\EarlyAccess\SubscriptionServices; |
| 4 | 4 | |
| 5 | -use Neo\EarlyAccess\Subscriber; |
|
| 6 | 5 | use Neo\EarlyAccess\Contracts\Subscription\SubscriptionProvider; |
| 7 | 6 | use Neo\EarlyAccess\Contracts\Subscription\SubscriptionRepository; |
| 7 | +use Neo\EarlyAccess\Subscriber; |
|
| 8 | 8 | |
| 9 | 9 | class DatabaseService implements SubscriptionProvider |
| 10 | 10 | { |