Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Apply fixes from StyleCI #1

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions config/mtn-momo.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
*/
'app' => env('MOMO_APP_NAME', 'Laravel'),

/**
/*
* Transaction currency code
*/
'currency' => env('MOMO_CURRENCY', 'EUR'),

/**
/*
* Target environment
*
* Also called; targetEnvironment
*/
'environment' => env('MOMO_ENVIRONMENT', 'sandbox'),

/**
/*
* Product.
*
* The product you subscribed too.
Expand All @@ -29,14 +29,14 @@
*/
'product' => env('MOMO_PRODUCT', 'collection'),

/**
/*
* Production subscription key.
*
* Also called; Ocp-Apim-Subscription-Key
*/
'product_key' => env('MOMO_PRODUCT_KEY'),

/**
/*
* Client app ID.
*
* Also called; X-Reference-Id and api_user_id interchangeably
Expand All @@ -45,7 +45,7 @@
*/
'client_id' => env('MOMO_CLIENT_ID'),

/**
/*
* Client app secret.
*
* Also called; apiKey
Expand All @@ -55,34 +55,34 @@
'client_secret' => env('MOMO_CLIENT_SECRET'),

'uri' => [
/**
/*
* Register client ID URI
*/
'client_id' => env('MOMO_CLIENT_ID_URI'),

/**
/*
* Validate client ID URI
*/
'val_client_id' => env('MOMO_CLIENT_ID_VALIDATE_URI'),

/**
/*
* Generate client secret URI
*/
'client_secret' => env('MOMO_CLIENT_SECRET_URI'),

/**
/*
* Redirect URI.
*
* Also called; providerCallbackHost
*/
'redirect' => env('MOMO_REDIRECT_URI'),

/**
/*
* Token uri
*/
'token' => env('MOMO_TOKEN_URI'),

/**
/*
* Refresh token uri
*/
'refresh_token' => env('MOMO_REFRESH_TOKEN_URI'),
Expand Down
4 changes: 1 addition & 3 deletions src/MtnMomoServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

class MtnMomoServiceProvider extends ServiceProvider
{

/**
* Bootstrap the application services.
*
Expand All @@ -26,7 +25,6 @@ public function boot()
*/
public function register()
{
$this->mergeConfigFrom(__DIR__.'/../config/mtn-momo.php', 'mtn-momo');
$this->mergeConfigFrom(__DIR__.'/../config/mtn-momo.php', 'mtn-momo');
}

}
6 changes: 2 additions & 4 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

abstract class TestCase extends Orchestra
{

/**
* Setup test environment.
*/
Expand All @@ -17,15 +16,15 @@ public function setUp()
}

/**
* Add package service provider
* Add package service provider.
*
* @param $app
* @return array
*/
protected function getPackageProviders($app)
{
return [
MtnMomoServiceProvider::class
MtnMomoServiceProvider::class,
];
}

Expand All @@ -44,5 +43,4 @@ protected function getEnvironmentSetUp($app)
'prefix' => '',
]);
}

}