Skip to content

Commit

Permalink
Merge pull request 22digital#11 from 22digital/scrutinizer-patch-1
Browse files Browse the repository at this point in the history
Scrutinizer Auto-Fixes
  • Loading branch information
justinhartman authored Nov 14, 2019
2 parents 3207108 + c6c28a1 commit 8da5993
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CreateInvoicesTableForCashierFastspring extends Migration
*/
public function up()
{
Schema::create('invoices', function (Blueprint $table) {
Schema::create('invoices', function(Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('user_id');
$table->string('fastspring_id')->nullable();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CreateSubscriptionPeriodsTableForCashierFastspring extends Migration
*/
public function up()
{
Schema::create('subscription_periods', function (Blueprint $table) {
Schema::create('subscription_periods', function(Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('subscription_id');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CreateSubscriptionsTableForCashierFastspring extends Migration
*/
public function up()
{
Schema::create('subscriptions', function (Blueprint $table) {
Schema::create('subscriptions', function(Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('user_id');
$table->string('name');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class UpgradeUserTableForCashierFastspring extends Migration
*/
public function up()
{
Schema::table('users', function ($table) {
Schema::table('users', function($table) {
$table->string('fastspring_id')->nullable();
$table->string('company')->nullable();
$table->string('phone')->nullable();
Expand All @@ -29,7 +29,7 @@ public function up()
*/
public function down()
{
Schema::table('users', function (Blueprint $table) {
Schema::table('users', function(Blueprint $table) {
$table->dropColumn(['fastspring_id', 'company', 'phone', 'language', 'country']);
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/Billable.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public function subscribedToPlan($plans, $subscription = 'default')
*/
public function onPlan($plan)
{
return !is_null($this->subscriptions->first(function ($value) use ($plan) {
return !is_null($this->subscriptions->first(function($value) use ($plan) {
return $value->plan === $plan && $value->valid();
}));
}
Expand Down

0 comments on commit 8da5993

Please sign in to comment.