Skip to content

Commit

Permalink
chore: CS Fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Gaspar <[email protected]>
  • Loading branch information
brunogaspar committed Aug 4, 2019
1 parent cdc3c2c commit e9f41b8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/Facades/Stripe.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

/**
/*
* Part of the Stripe Laravel package.
*
* NOTICE OF LICENSE
Expand All @@ -25,7 +25,7 @@
class Stripe extends Facade
{
/**
* {@inheritDoc}
* {@inheritdoc}
*/
protected static function getFacadeAccessor()
{
Expand Down
21 changes: 12 additions & 9 deletions src/StripeServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

/**
/*
* Part of the Stripe Laravel package.
*
* NOTICE OF LICENSE
Expand All @@ -20,13 +20,15 @@

namespace Cartalyst\Stripe\Laravel;

use Cartalyst\Stripe\Config;
use Cartalyst\Stripe\Stripe;
use Cartalyst\Stripe\ConfigInterface;
use Illuminate\Support\ServiceProvider;

class StripeServiceProvider extends ServiceProvider
{
/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function register()
{
Expand All @@ -36,12 +38,13 @@ public function register()
}

/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function provides()
{
return [
'stripe', 'stripe.config'
'stripe',
'stripe.config',
];
}

Expand All @@ -55,14 +58,14 @@ protected function registerStripe()
$this->app->singleton('stripe', function ($app) {
$config = $app['config']->get('services.stripe');

$secret = isset($config['secret']) ? $config['secret'] : null;
$secret = $config['secret'] ?? null;

$version = isset($config['version']) ? $config['version'] : null;
$version = $config['version'] ?? null;

return new Stripe($secret, $version);
});

$this->app->alias('stripe', 'Cartalyst\Stripe\Stripe');
$this->app->alias('stripe', Stripe::class);
}

/**
Expand All @@ -76,8 +79,8 @@ protected function registerConfig()
return $app['stripe']->getConfig();
});

$this->app->alias('stripe.config', 'Cartalyst\Stripe\Config');
$this->app->alias('stripe.config', Config::class);

$this->app->alias('stripe.config', 'Cartalyst\Stripe\ConfigInterface');
$this->app->alias('stripe.config', ConfigInterface::class);
}
}

0 comments on commit e9f41b8

Please sign in to comment.