Passed
Push — master ( eb1077...c84b35 )
by Bilal
01:35
created
resources/migrations/upgrade_user_table_for_cashier_fastspring.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::table('users', function ($table) {
16
+        Schema::table('users', function($table) {
17 17
             $table->string('fastspring_id')->nullable();
18 18
             $table->string('company')->nullable();
19 19
             $table->string('phone')->nullable();
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function down()
31 31
     {
32
-        Schema::table('users', function (Blueprint $table) {
32
+        Schema::table('users', function(Blueprint $table) {
33 33
             $table->dropColumn(['fastspring_id', 'company', 'phone', 'language', 'country']);
34 34
         });
35 35
     }
Please login to merge, or discard this patch.
resources/migrations/create_subscriptions_table_for_cashier_fastspring.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('subscriptions', function (Blueprint $table) {
16
+        Schema::create('subscriptions', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->unsignedInteger('user_id');
19 19
             $table->string('name');
Please login to merge, or discard this patch.
migrations/create_subscription_periods_table_for_cashier_fastspring.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('subscription_periods', function (Blueprint $table) {
16
+        Schema::create('subscription_periods', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->unsignedInteger('subscription_id');
19 19
 
Please login to merge, or discard this patch.
resources/migrations/create_invoices_table_for_cashier_fastspring.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('invoices', function (Blueprint $table) {
16
+        Schema::create('invoices', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->unsignedInteger('user_id');
19 19
             $table->string('fastspring_id')->nullable();
Please login to merge, or discard this patch.
src/Billable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
      */
163 163
     public function onPlan($plan)
164 164
     {
165
-        return !is_null($this->subscriptions->first(function ($value) use ($plan) {
165
+        return !is_null($this->subscriptions->first(function($value) use ($plan) {
166 166
             return $value->plan === $plan && $value->valid();
167 167
         }));
168 168
     }
Please login to merge, or discard this patch.