Completed
Branch master (8ba331)
by Sander
02:04
created
src/Events/PaymentEvent.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -5,9 +5,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/FakePaymentGateway.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Listeners/DispatchPaymentStatusChangeEvent.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/MolliePaymentGateway.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/PayableRedirectServiceProvider.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -19,13 +19,13 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
database/migrations/2017_05_11_163005_create_payments_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/events/PaymentEvent.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -5,9 +5,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/listeners/DispatchPaymentStatusChangeEvent.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.