@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by Vitaly Iegorov <[email protected]> |
|
4 | - * on 11.04.14 at 15:17 |
|
5 | - */ |
|
3 | + * Created by Vitaly Iegorov <[email protected]> |
|
4 | + * on 11.04.14 at 15:17 |
|
5 | + */ |
|
6 | 6 | namespace samson\instagram; |
7 | 7 | |
8 | 8 | use samson\core\CompressableService; |
@@ -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); |
@@ -383,12 +383,12 @@ discard block |
||
383 | 383 | public function selfInfo($access_token) |
384 | 384 | { |
385 | 385 | $endpoint = '/users/self'; |
386 | - $url = $this->url . $endpoint; |
|
386 | + $url = $this->url.$endpoint; |
|
387 | 387 | |
388 | 388 | $sigParams = array('access_token' => $access_token); |
389 | 389 | $signature = $this->generateSig($endpoint, $sigParams); |
390 | 390 | |
391 | - $url .= '?access_token=' . $access_token . '&sig=' . $signature; |
|
391 | + $url .= '?access_token='.$access_token.'&sig='.$signature; |
|
392 | 392 | |
393 | 393 | // Get API response |
394 | 394 | $response = $this->request->get($url); |