@@ -5,9 +5,7 @@ |
||
5 | 5 | use SanderVanHooft\PayableRedirect\Payment; |
6 | 6 | use Illuminate\Broadcasting\Channel; |
7 | 7 | use Illuminate\Broadcasting\InteractsWithSockets; |
8 | -use Illuminate\Broadcasting\PresenceChannel; |
|
9 | 8 | use Illuminate\Broadcasting\PrivateChannel; |
10 | -use Illuminate\Contracts\Broadcasting\ShouldBroadcast; |
|
11 | 9 | use Illuminate\Foundation\Events\Dispatchable; |
12 | 10 | use Illuminate\Queue\SerializesModels; |
13 | 11 |
@@ -10,7 +10,7 @@ |
||
10 | 10 | /** |
11 | 11 | * @param Int |
12 | 12 | * @param Illuminate\Database\Eloquent\Model |
13 | - * @return App\Payment |
|
13 | + * @return Payment |
|
14 | 14 | */ |
15 | 15 | public function chargeAmountForPayable( |
16 | 16 | Int $amount, |
@@ -2,9 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace SanderVanHooft\PayableRedirect\Listeners; |
4 | 4 | |
5 | -use Illuminate\Contracts\Queue\ShouldQueue; |
|
6 | -use Illuminate\Queue\InteractsWithQueue; |
|
7 | -use Illuminate\Support\Facades\DB; |
|
8 | 5 | use SanderVanHooft\PayableRedirect\Events\PaymentCancelled; |
9 | 6 | use SanderVanHooft\PayableRedirect\Events\PaymentChargedBack; |
10 | 7 | use SanderVanHooft\PayableRedirect\Events\PaymentExpired; |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace SanderVanHooft\PayableRedirect; |
4 | 4 | |
5 | -use Carbon\Carbon; |
|
6 | 5 | use Illuminate\Database\Eloquent\Model; |
7 | 6 | use Omnipay\Omnipay; |
8 | 7 | use SanderVanHooft\PayableRedirect\PaymentGateway; |
@@ -10,7 +10,7 @@ |
||
10 | 10 | /** |
11 | 11 | * @param Int |
12 | 12 | * @param Illuminate\Database\Eloquent\Model |
13 | - * @return App\Payment |
|
13 | + * @return Payment |
|
14 | 14 | */ |
15 | 15 | public function chargeAmountForPayable( |
16 | 16 | Int $amount, |
@@ -19,13 +19,13 @@ |
||
19 | 19 | ], 'config'); |
20 | 20 | |
21 | 21 | // Publish migrations |
22 | - $this->publishes([ |
|
23 | - __DIR__.'/../database/migrations/2017_05_11_163005_create_payments_table.php' |
|
24 | - => database_path('migrations/2017_05_11_163005_create_payments_table.php'), |
|
25 | - ], 'migrations'); |
|
22 | + $this->publishes([ |
|
23 | + __DIR__.'/../database/migrations/2017_05_11_163005_create_payments_table.php' |
|
24 | + => database_path('migrations/2017_05_11_163005_create_payments_table.php'), |
|
25 | + ], 'migrations'); |
|
26 | 26 | |
27 | - // Load routes |
|
28 | - $this->loadRoutesFrom(__DIR__.'/../routes/web.php'); |
|
27 | + // Load routes |
|
28 | + $this->loadRoutesFrom(__DIR__.'/../routes/web.php'); |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('payments', function (Blueprint $table) { |
|
16 | + Schema::create('payments', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->integer('amount'); |
19 | 19 | $table->morphs('payable'); |
@@ -5,9 +5,7 @@ |
||
5 | 5 | use SanderVanHooft\PayableRedirect\Payment; |
6 | 6 | use Illuminate\Broadcasting\Channel; |
7 | 7 | use Illuminate\Broadcasting\InteractsWithSockets; |
8 | -use Illuminate\Broadcasting\PresenceChannel; |
|
9 | 8 | use Illuminate\Broadcasting\PrivateChannel; |
10 | -use Illuminate\Contracts\Broadcasting\ShouldBroadcast; |
|
11 | 9 | use Illuminate\Foundation\Events\Dispatchable; |
12 | 10 | use Illuminate\Queue\SerializesModels; |
13 | 11 |
@@ -2,9 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace SanderVanHooft\PayableRedirect\Listeners; |
4 | 4 | |
5 | -use Illuminate\Contracts\Queue\ShouldQueue; |
|
6 | -use Illuminate\Queue\InteractsWithQueue; |
|
7 | -use Illuminate\Support\Facades\DB; |
|
8 | 5 | use SanderVanHooft\PayableRedirect\Events\PaymentCancelled; |
9 | 6 | use SanderVanHooft\PayableRedirect\Events\PaymentChargedBack; |
10 | 7 | use SanderVanHooft\PayableRedirect\Events\PaymentExpired; |