Completed
Push — master ( dfef1d...cac3a1 )
by Rik
02:20
created
src/Managers/RequestManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
         if ($this->callMode === ProxyAux::MODE_TOKEN && $this->useHeader === true) {
165 165
             $accessToken = ProxyAux::getQueryValue($inputs, ProxyAux::ACCESS_TOKEN);
166 166
             $inputs = ProxyAux::removeQueryValue($inputs, ProxyAux::ACCESS_TOKEN);
167
-            $options = array_add($options, 'headers', [ ProxyAux::HEADER_AUTH => 'Bearer ' . $accessToken ]);
167
+            $options = array_add($options, 'headers', [ProxyAux::HEADER_AUTH => 'Bearer ' . $accessToken]);
168 168
         }
169 169
 
170 170
         if ($method === 'GET') {
Please login to merge, or discard this patch.
src/Exceptions/ProxyMissingParamException.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
 class ProxyMissingParamException extends ProxyException {
19 19
 
20 20
     public function __construct($parameter) {
21
-	    $this->httpStatusCode = 400;
22
-	    $this->errorType = 'proxy_missing_param';
21
+        $this->httpStatusCode = 400;
22
+        $this->errorType = 'proxy_missing_param';
23 23
         parent::__construct(\Lang::get('api-proxy-laravel::messages.proxy_missing_param', array('param' => $parameter)));
24 24
     }
25 25
 
Please login to merge, or discard this patch.
src/Exceptions/CookieInvalidException.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
 class CookieInvalidException extends ProxyException {
19 19
 
20 20
     public function __construct($parameter) {
21
-	    $this->httpStatusCode = 500;
22
-	    $this->errorType = 'proxy_cookie_invalid';
21
+        $this->httpStatusCode = 500;
22
+        $this->errorType = 'proxy_cookie_invalid';
23 23
         parent::__construct(\Lang::get('api-proxy-laravel::messages.proxy_cookie_invalid', array('param' => $parameter)));
24 24
     }
25 25
 
Please login to merge, or discard this patch.
src/Exceptions/MissingClientSecretException.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
 class MissingClientSecretException extends ProxyException {
19 19
 
20 20
     public function __construct($parameter) {
21
-	    $this->httpStatusCode = 500;
22
-	    $this->errorType = 'missing_client_secret';
21
+        $this->httpStatusCode = 500;
22
+        $this->errorType = 'missing_client_secret';
23 23
         parent::__construct(\Lang::get('api-proxy-laravel::messages.missing_client_secret', array('client' => $parameter)));
24 24
     }
25 25
 
Please login to merge, or discard this patch.
src/Exceptions/CookieExpiredException.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
 class CookieExpiredException extends ProxyException {
19 19
 
20 20
     public function __construct() {
21
-	    $this->httpStatusCode = 403;
22
-	    $this->errorType = 'proxy_cookie_expired';
21
+        $this->httpStatusCode = 403;
22
+        $this->errorType = 'proxy_cookie_expired';
23 23
         parent::__construct(\Lang::get('api-proxy-laravel::messages.proxy_cookie_expired'));
24 24
     }
25 25
 
Please login to merge, or discard this patch.
src/Proxy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
         }
74 74
 
75 75
         //Create the new request
76
-        $requestManager  = new RequestManager($this->uri, $method, $this->clientSecrets, $this->callMode, $this->cookieManager);
76
+        $requestManager = new RequestManager($this->uri, $method, $this->clientSecrets, $this->callMode, $this->cookieManager);
77 77
         if ($this->useHeader) {
78 78
             $requestManager->enableHeader();
79 79
         }
Please login to merge, or discard this patch.
src/lang/en/messages.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
  */
12 12
 
13 13
 return array(
14
-	'access_token_ok' => 'Access token retrieved successfully',
15
-	'proxy_missing_param' => 'Missing mandatory parameter <b>:param</b> in the request call',
16
-	'missing_client_secret' => 'Missing secret key for client id <b>:client</b>',
17
-	'proxy_cookie_expired' => 'Cookie expired or not found. Return to the login form.',
18
-	'proxy_cookie_invalid' => 'Cookie format not valid. Missing attribute <b>:param</b>.'
14
+    'access_token_ok' => 'Access token retrieved successfully',
15
+    'proxy_missing_param' => 'Missing mandatory parameter <b>:param</b> in the request call',
16
+    'missing_client_secret' => 'Missing secret key for client id <b>:client</b>',
17
+    'proxy_cookie_expired' => 'Cookie expired or not found. Return to the login form.',
18
+    'proxy_cookie_invalid' => 'Cookie format not valid. Missing attribute <b>:param</b>.'
19 19
 );
20 20
\ No newline at end of file
Please login to merge, or discard this patch.
src/lang/it/messages.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
  */
12 12
 
13 13
 return array(
14
-	'access_token_ok' => 'Access token recuperato correttamente',
15
-	'proxy_missing_param' => 'Manca il parametro obbligatorio <b>:param</b> nella richiesta',
16
-	'missing_client_secret' => 'Manca la chiave segreta per il client <b>:client</b>',
17
-	'proxy_cookie_expired' => 'Cookie scaduto o non trovato. Ritorna al form di login.',
18
-	'proxy_cookie_invalid' => 'Formato del cookie non valido. Manca l\'attributo <b>:param</b>.'
14
+    'access_token_ok' => 'Access token recuperato correttamente',
15
+    'proxy_missing_param' => 'Manca il parametro obbligatorio <b>:param</b> nella richiesta',
16
+    'missing_client_secret' => 'Manca la chiave segreta per il client <b>:client</b>',
17
+    'proxy_cookie_expired' => 'Cookie scaduto o non trovato. Ritorna al form di login.',
18
+    'proxy_cookie_invalid' => 'Formato del cookie non valido. Manca l\'attributo <b>:param</b>.'
19 19
 );
20 20
\ No newline at end of file
Please login to merge, or discard this patch.
src/ApiProxyServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function boot() {
34 34
         $this->publishes([
35
-            __DIR__.'/config/proxy.php' => config_path('proxy.php'),
35
+            __DIR__ . '/config/proxy.php' => config_path('proxy.php'),
36 36
         ]);
37 37
         
38 38
     }
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      * @return void
53 53
      */
54 54
     public function registerApiProxy() {
55
-        $this->app->bindShared('api-proxy.proxy', function ($app) {
55
+        $this->app->bindShared('api-proxy.proxy', function($app) {
56 56
             $params = $app['config']['proxy'];
57 57
             $proxy = new Proxy($params);
58 58
             return $proxy;
Please login to merge, or discard this patch.