@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | { |
| 80 | 80 | $paramsUrl = ''; |
| 81 | 81 | foreach ($params as $key => $value) { |
| 82 | - $paramsUrl .= '&' . $key . '=' . $value; |
|
| 82 | + $paramsUrl .= '&'.$key.'='.$value; |
|
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | return $paramsUrl; |
@@ -168,13 +168,13 @@ discard block |
||
| 168 | 168 | */ |
| 169 | 169 | public function getLikes($id, $access_token) |
| 170 | 170 | { |
| 171 | - $endpoint = '/media/' . $id . '/likes'; |
|
| 172 | - $url = $this->url . $endpoint; |
|
| 171 | + $endpoint = '/media/'.$id.'/likes'; |
|
| 172 | + $url = $this->url.$endpoint; |
|
| 173 | 173 | |
| 174 | 174 | $sigParams = array('access_token' => $access_token); |
| 175 | 175 | $signature = $this->generateSig($endpoint, $sigParams); |
| 176 | 176 | |
| 177 | - $url .= '?access_token=' . $access_token . '&sig=' . $signature; |
|
| 177 | + $url .= '?access_token='.$access_token.'&sig='.$signature; |
|
| 178 | 178 | |
| 179 | 179 | // Get API response |
| 180 | 180 | $response = $this->request->get($url); |