Completed
Push — master ( cde896...193b45 )
by Igor C. de
02:36
created
routes/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,4 +6,4 @@
 block discarded – undo
6 6
  * Time: 10:07
7 7
  */
8 8
 
9
-Route::post('/payer_webhook',['as'=>'payer_webhook', 'uses'=>'WebHookController@handle']);
10 9
\ No newline at end of file
10
+Route::post('/payer_webhook', ['as'=>'payer_webhook', 'uses'=>'WebHookController@handle']);
11 11
\ No newline at end of file
Please login to merge, or discard this patch.
src/helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,6 +6,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/States/ContestState.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
     public function __toString()
19 19
     {
20
-       return self::STATE;
20
+        return self::STATE;
21 21
     }
22 22
 
23 23
     public function available()
Please login to merge, or discard this patch.
src/States/ReturnedState.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
 
19 19
     public function __toString()
20 20
     {
21
-       return self::STATE;
21
+        return self::STATE;
22 22
     }
23 23
 }
24 24
\ No newline at end of file
Please login to merge, or discard this patch.
src/States/CancelledState.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
 
19 19
     public function __toString()
20 20
     {
21
-      return self::STATE;
21
+        return self::STATE;
22 22
     }
23 23
 }
24 24
\ No newline at end of file
Please login to merge, or discard this patch.
src/PayerPagSeguroServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/States/AvailableState.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
 
19 19
     public function __toString()
20 20
     {
21
-       return self::STATE;
21
+        return self::STATE;
22 22
     }
23 23
 }
24 24
\ No newline at end of file
Please login to merge, or discard this patch.