Completed
Push — master ( 655f33...f5c016 )
by Carlos
02:12
created
src/RequestLauncher.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -58,6 +58,7 @@
 block discarded – undo
58 58
      *
59 59
      * @var string $endpoint
60 60
      * @var array $params
61
+     * @param string $endpoint
61 62
      * @return \stdClass
62 63
      * @throws \RuntimeException
63 64
      */
Please login to merge, or discard this 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/Client.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             'SelectDate' => $date->format('d/m/Y'),
50 50
         ];
51 51
         return $this->launcher
52
-            ->launchRequest(self::ENDPOINT . '/emt-proxy-server/last/bus/GetRouteLines.php', $params)
52
+            ->launchRequest(self::ENDPOINT.'/emt-proxy-server/last/bus/GetRouteLines.php', $params)
53 53
             ->resultValues;
54 54
     }
55 55
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             'SelectDateEnd' => $endDate->format('d/m/Y'),
69 69
         ];
70 70
         return $this->launcher
71
-            ->launchRequest(self::ENDPOINT . '/emt-proxy-server/last/bus/GetCalendar.php', $params)
71
+            ->launchRequest(self::ENDPOINT.'/emt-proxy-server/last/bus/GetCalendar.php', $params)
72 72
             ->resultValues;
73 73
     }
74 74
 
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
             'SelectDate' => $date->format('d/m/Y'),
88 88
         ];
89 89
         return $this->launcher
90
-            ->launchRequest(self::ENDPOINT . '/emt-proxy-server/last/bus/GetListLines.php', $params)
90
+            ->launchRequest(self::ENDPOINT.'/emt-proxy-server/last/bus/GetListLines.php', $params)
91 91
             ->resultValues;
92 92
     }
93 93
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     public function getGroups()
101 101
     {
102 102
         return $this->launcher
103
-            ->launchRequest(self::ENDPOINT . '/emt-proxy-server/last/bus/GetGroups.php')
103
+            ->launchRequest(self::ENDPOINT.'/emt-proxy-server/last/bus/GetGroups.php')
104 104
             ->resultValues;
105 105
     }
106 106
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
             'SelectDate' => $date->format('d/m/Y'),
120 120
         ];
121 121
         return $this->launcher
122
-            ->launchRequest(self::ENDPOINT . '/emt-proxy-server/last/bus/GetTimesLines.php', $params)
122
+            ->launchRequest(self::ENDPOINT.'/emt-proxy-server/last/bus/GetTimesLines.php', $params)
123 123
             ->resultValues;
124 124
     }
125 125
 
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
             'SelectDate' => $date->format('d/m/Y'),
139 139
         ];
140 140
         return $this->launcher
141
-            ->launchRequest(self::ENDPOINT . '/emt-proxy-server/last/bus/GetTimeTableLines.php', $params)
141
+            ->launchRequest(self::ENDPOINT.'/emt-proxy-server/last/bus/GetTimeTableLines.php', $params)
142 142
             ->resultValues;
143 143
     }
144 144
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
             'Nodes' => join('|', $stopIds),
157 157
         ];
158 158
         return $this->launcher
159
-            ->launchRequest(self::ENDPOINT . '/emt-proxy-server/last/bus/GetNodesLines.php', $params)
159
+            ->launchRequest(self::ENDPOINT.'/emt-proxy-server/last/bus/GetNodesLines.php', $params)
160 160
             ->resultValues;
161 161
     }
162 162
 }
Please login to merge, or discard this patch.