@@ -13,7 +13,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -13,7 +13,7 @@ |
||
| 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'); |
@@ -13,7 +13,7 @@ |
||
| 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 | |
@@ -13,7 +13,7 @@ |
||
| 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(); |
@@ -162,7 +162,7 @@ |
||
| 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 | } |