Completed
Push — master ( dfef1d...cac3a1 )
by Rik
02:20
created
src/ApiProxyServiceProvider.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
     /**
66 66
      * Get the services provided by the provider.
67 67
      *
68
-     * @return array
68
+     * @return string[]
69 69
      */
70 70
     public function provides() {
71 71
         return array('api-proxy.proxy');
Please login to merge, or discard this 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.
src/Managers/RequestManager.php 2 patches
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.
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,6 +27,10 @@  discard block
 block discarded – undo
27 27
     private $cookieManager = null;
28 28
     private $useHeader = false;
29 29
 
30
+    /**
31
+     * @param string $callMode
32
+     * @param CookieManager $cookieManager
33
+     */
30 34
     public function __construct($uri, $method, $clientSecrets, $callMode, $cookieManager) {
31 35
         $this->uri = $uri;
32 36
         $this->method = $method;
@@ -136,7 +140,7 @@  discard block
 block discarded – undo
136 140
     }
137 141
 
138 142
     /**
139
-     * @param $response
143
+     * @param \GuzzleHttp\Message\ResponseInterface $response
140 144
      * @return mixed
141 145
      */
142 146
     private function getResponseContent($response) {
@@ -155,7 +159,7 @@  discard block
 block discarded – undo
155 159
      * @param $method
156 160
      * @param $uriVal
157 161
      * @param $inputs
158
-     * @return \GuzzleHttp\Message\FutureResponse|\GuzzleHttp\Message\ResponseInterface|\GuzzleHttp\Ring\Future\FutureInterface|mixed|null
162
+     * @return \GuzzleHttp\Message\ResponseInterface
159 163
      */
160 164
     private function sendGuzzleRequest($method, $uriVal, $inputs) {
161 165
         $options = array();
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.