Completed
Pull Request — master (#26)
by Pavlo
06:08
created
src/Instagram.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.