Completed
Push — master ( bb951d...e18d1d )
by Carlos
03:25 queued 01:34
created
src/RequestLauncher.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -61,12 +61,12 @@
 block discarded – undo
61 61
      * @return \stdClass
62 62
      * @throws \RuntimeException
63 63
      */
64
-    public function launchRequest($endpoint, $params = [])
64
+    public function launchRequest($endpoint, $params = [ ])
65 65
     {
66
-        $authParams = ['idClient' => $this->clientId, 'passKey' => $this->passkey];
66
+        $authParams = [ 'idClient' => $this->clientId, 'passKey' => $this->passkey ];
67 67
         $response = $this->client->post(
68 68
             $endpoint,
69
-            ['form_params' => array_merge($params, $authParams)]
69
+            [ 'form_params' => array_merge($params, $authParams) ]
70 70
         );
71 71
 
72 72
         $decoded = json_decode((string) $response->getBody());
Please login to merge, or discard this patch.
src/BusClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -162,9 +162,9 @@
 block discarded – undo
162 162
      * @param array $params
163 163
      * @return \stdClass
164 164
      */
165
-    protected function callBusService($endpoint, array $params = [])
165
+    protected function callBusService($endpoint, array $params = [ ])
166 166
     {
167
-        $url = self::ENDPOINT . '/emt-proxy-server/last/bus/' . $endpoint;
167
+        $url = self::ENDPOINT.'/emt-proxy-server/last/bus/'.$endpoint;
168 168
         return $this->launcher->launchRequest($url, $params)->resultValues;
169 169
     }
170 170
 }
Please login to merge, or discard this patch.
src/GeoClient.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,6 @@
 block discarded – undo
55 55
      * Return details about stops around a given geographic coordinate and,
56 56
      * optionally, within the specified radius.
57 57
      *
58
-     * @param int $stopId
59 58
      * @param int|null $radius
60 59
      * @return \stdClass
61 60
      * @throws \RuntimeException
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     public function getArriveStop($stopId)
82 82
     {
83
-        $params = ['idStop' => $stopId];
83
+        $params = [ 'idStop' => $stopId ];
84 84
         return $this->callGeoService('GetArriveStop.php', $params);
85 85
     }
86 86
 
@@ -91,9 +91,9 @@  discard block
 block discarded – undo
91 91
      * @param array $params
92 92
      * @return \stdClass
93 93
      */
94
-    protected function callGeoService($endpoint, array $params = [])
94
+    protected function callGeoService($endpoint, array $params = [ ])
95 95
     {
96
-        $url = self::ENDPOINT . '/emt-proxy-server/last/geo/' . $endpoint;
96
+        $url = self::ENDPOINT.'/emt-proxy-server/last/geo/'.$endpoint;
97 97
         return $this->launcher->launchRequest($url, $params);
98 98
     }
99 99
 }
Please login to merge, or discard this patch.