@@ -61,12 +61,12 @@ |
||
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()); |
@@ -162,9 +162,9 @@ |
||
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 | } |
@@ -55,7 +55,6 @@ |
||
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 |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | */ |
81 | 81 | public function getArriveStop($stopId) |
82 | 82 | { |
83 | - $params = ['stopId' => $stopId]; |
|
83 | + $params = [ 'stopId' => $stopId ]; |
|
84 | 84 | return $this->callGeoService('GetArriveStop.php', $params); |
85 | 85 | } |
86 | 86 | |
@@ -91,9 +91,9 @@ discard block |
||
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 | } |