@@ -6,6 +6,6 @@ |
||
| 6 | 6 | * Time: 16:43 |
| 7 | 7 | */ |
| 8 | 8 | use AdminWeb\PayerPagSeguro\States\FactoryState; |
| 9 | -function makeState($state){ |
|
| 9 | +function makeState($state) { |
|
| 10 | 10 | return FactoryState::get($state); |
| 11 | 11 | } |
| 12 | 12 | \ No newline at end of file |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | __DIR__ . '/../config/payerpagseguro.php' => config_path('payerpagseguro.php'), |
| 26 | 26 | ]); |
| 27 | 27 | |
| 28 | - $this->loadRoutesFrom(__DIR__.'/../routes/routes.php'); |
|
| 28 | + $this->loadRoutesFrom(__DIR__ . '/../routes/routes.php'); |
|
| 29 | 29 | |
| 30 | 30 | //$this->loadMigrationsFrom(__DIR__ . '/../migrations'); |
| 31 | 31 | |
@@ -35,19 +35,19 @@ discard block |
||
| 35 | 35 | |
| 36 | 36 | public function register() |
| 37 | 37 | { |
| 38 | - $this->app->bind(EnvInterface::class, function(){ |
|
| 38 | + $this->app->bind(EnvInterface::class, function() { |
|
| 39 | 39 | $env = $this->app['config']['app']['env']; |
| 40 | - if($env == strtolower('production')){ |
|
| 40 | + if ($env == strtolower('production')) { |
|
| 41 | 41 | return new Production(env('PAGSEGURO_EMAIL'), env('PAGSEGURO_TOKEN')); |
| 42 | 42 | } |
| 43 | 43 | return new SandBox(env('PAGSEGURO_EMAIL_SANDBOX'), env('PAGSEGURO_TOKEN_SANBOX')); |
| 44 | 44 | }); |
| 45 | 45 | |
| 46 | - $this->app->bind('InitialState',function(){ |
|
| 46 | + $this->app->bind('InitialState', function() { |
|
| 47 | 47 | return new WaitingPayment(); |
| 48 | 48 | }); |
| 49 | 49 | |
| 50 | - $this->app->bind(SubscriptionInterface::class,function(){ |
|
| 50 | + $this->app->bind(SubscriptionInterface::class, function() { |
|
| 51 | 51 | return new Subscription(); |
| 52 | 52 | }); |
| 53 | 53 | } |
@@ -6,4 +6,4 @@ |
||
| 6 | 6 | * Time: 10:07 |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | -Route::post('/payer_webhook',['as'=>'payer_webhook', 'uses'=>'AdminWeb\PayerPagSeguro\Http\WebHookController@handle']); |
|
| 10 | 9 | \ No newline at end of file |
| 10 | +Route::post('/payer_webhook', ['as'=>'payer_webhook', 'uses'=>'AdminWeb\PayerPagSeguro\Http\WebHookController@handle']); |
|
| 11 | 11 | \ No newline at end of file |