Completed
Push — develop ( 8deed5...67cc12 )
by Adolfo
01:12
created
database/migrations/2019_10_27_012545_create_subscriptions_tables.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use Illuminate\Support\Facades\Schema;
4
-use Illuminate\Database\Schema\Blueprint;
5 3
 use Illuminate\Database\Migrations\Migration;
4
+use Illuminate\Database\Schema\Blueprint;
5
+use Illuminate\Support\Facades\Schema;
6 6
 
7 7
 class CreateSubscriptionsTables extends Migration
8 8
 {
Please login to merge, or discard this patch.
src/Contracts/PlanContract.php 1 patch
Doc Comments   +12 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@  discard block
 block discarded – undo
9 9
     /**
10 10
      * @param  string  $name
11 11
      * @param  string  $description
12
-     * @param  int  $free_days
13 12
      * @param  int  $sort_order
14 13
      * @param  bool  $is_active
15 14
      * @param  bool  $is_default
@@ -37,11 +36,23 @@  discard block
 block discarded – undo
37 36
 
38 37
     public function hasManyIntervals(): bool;
39 38
 
39
+    /**
40
+     * @return \Illuminate\Database\Eloquent\Relations\HasMany
41
+     */
40 42
     public function subscriptions();
41 43
 
44
+    /**
45
+     * @return void
46
+     */
42 47
     public function setDefault();
43 48
 
49
+    /**
50
+     * @return \Sagitarius29\LaravelSubscriptions\Entities\Group
51
+     */
44 52
     public function myGroup(): ?GroupContract;
45 53
 
54
+    /**
55
+     * @return void
56
+     */
46 57
     public function changeToGroup(GroupContract $group): void;
47 58
 }
Please login to merge, or discard this patch.
src/Entities/PlanFeature.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
      * @param  string  $code
14 14
      * @param  bool|int  $value
15 15
      * @param  int  $sortOrder
16
-     * @param  bool  $isConsumable
17 16
      * @return Model
18 17
      */
19 18
     public static function make(
Please login to merge, or discard this patch.
src/Plan.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,6 @@
 block discarded – undo
23 23
     /**
24 24
      * @param  string  $name
25 25
      * @param  string  $description
26
-     * @param  int  $free_days
27 26
      * @param  int  $sort_order
28 27
      * @param  bool  $is_enabled
29 28
      * @param  bool  $is_default
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Sagitarius29\LaravelSubscriptions;
4 4
 
5
-use Illuminate\Database\Eloquent\Model;
6 5
 use Illuminate\Database\Eloquent\Builder;
7
-use Sagitarius29\LaravelSubscriptions\Contracts\PlanContract;
6
+use Illuminate\Database\Eloquent\Model;
8 7
 use Sagitarius29\LaravelSubscriptions\Contracts\GroupContract;
8
+use Sagitarius29\LaravelSubscriptions\Contracts\PlanContract;
9 9
 use Sagitarius29\LaravelSubscriptions\Entities\Group;
10 10
 use Sagitarius29\LaravelSubscriptions\Exceptions\PlanErrorException;
11 11
 use Sagitarius29\LaravelSubscriptions\Traits\HasFeatures;
Please login to merge, or discard this patch.
src/Traits/HasFeatures.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Illuminate\Database\Eloquent\Model;
6 6
 use Illuminate\Database\Eloquent\Relations\HasMany;
7
-use Sagitarius29\LaravelSubscriptions\Exceptions\PlanErrorException;
8 7
 use Sagitarius29\LaravelSubscriptions\PlanFeature;
9 8
 
10 9
 trait HasFeatures
Please login to merge, or discard this patch.
src/Traits/HasSubscriptions.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
     }
80 80
 
81 81
     /**
82
-     * @return SubscriptionContact|Model|null
82
+     * @return PlanIntervalContract
83 83
      */
84 84
     public function getActiveSubscription(): ?SubscriptionContact
85 85
     {
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,11 +5,11 @@
 block discarded – undo
5 5
 use Carbon\Carbon;
6 6
 use Illuminate\Database\Eloquent\Model;
7 7
 use Illuminate\Database\Eloquent\Relations\MorphMany;
8
-use Sagitarius29\LaravelSubscriptions\Entities\PlanInterval;
9
-use Sagitarius29\LaravelSubscriptions\Entities\Subscription;
10 8
 use Sagitarius29\LaravelSubscriptions\Contracts\PlanContract;
11
-use Sagitarius29\LaravelSubscriptions\Contracts\SubscriptionContact;
12 9
 use Sagitarius29\LaravelSubscriptions\Contracts\PlanIntervalContract;
10
+use Sagitarius29\LaravelSubscriptions\Contracts\SubscriptionContact;
11
+use Sagitarius29\LaravelSubscriptions\Entities\PlanInterval;
12
+use Sagitarius29\LaravelSubscriptions\Entities\Subscription;
13 13
 use Sagitarius29\LaravelSubscriptions\Exceptions\SubscriptionErrorException;
14 14
 use Sagitarius29\LaravelSubscriptions\PlanFeature;
15 15
 
Please login to merge, or discard this patch.