Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
bleuscyther authored and actions-user committed Feb 10, 2022
1 parent 4fd490c commit 428b2ec
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
16 changes: 9 additions & 7 deletions src/LaravelMoncash.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

use Fruitsbytes\PHP\Moncash\Moncash;

class LaravelMoncash extends Moncash {
class LaravelMoncash extends Moncash
{
/**
* @var string Default value 'sandbox'
*/
Expand All @@ -16,11 +17,12 @@ class LaravelMoncash extends Moncash {

public bool $isProduction;

public function __construct() {
$this->client_id = config( 'moncash.client_id' );
$this->client_secret = config( 'moncash.client_secret' );
$this->mode = config( 'moncash.mode' );
$this->isProduction = $this->mode === 'sandbox';
parent::__construct( $this->client_id, $this->client_secret, $this->mode );
public function __construct()
{
$this->client_id = config('moncash.client_id');
$this->client_secret = config('moncash.client_secret');
$this->mode = config('moncash.mode');
$this->isProduction = $this->mode === 'sandbox';
parent::__construct($this->client_id, $this->client_secret, $this->mode);
}
}
2 changes: 1 addition & 1 deletion src/LaravelMoncashServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Fruitsbytes\LaravelMoncash;

use Fruitsbytes\LaravelMoncash\Commands\LaravelMoncashCommand;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;
use Fruitsbytes\LaravelMoncash\Commands\LaravelMoncashCommand;

class LaravelMoncashServiceProvider extends PackageServiceProvider
{
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Fruitsbytes\LaravelMoncash\Tests;

use Fruitsbytes\LaravelMoncash\LaravelMoncashServiceProvider;
use Illuminate\Database\Eloquent\Factories\Factory;
use Orchestra\Testbench\TestCase as Orchestra;
use Fruitsbytes\LaravelMoncash\LaravelMoncashServiceProvider;

class TestCase extends Orchestra
{
Expand Down

0 comments on commit 428b2ec

Please sign in to comment.