Completed
Push — master ( b58568...42d070 )
by Haridarshan
33s
created
src/InstagramRequest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -99,9 +99,9 @@
 block discarded – undo
99 99
      */
100 100
     protected function execute()
101 101
     {
102
-        $authMethod = '?access_token=' . $this->params['access_token'];
103
-        $endpoint = Constants::API_VERSION . $this->path . (('GET' === $this->method) ? '?' . http_build_query($this->params) : $authMethod);
104
-        $endpoint .= (strstr($endpoint, '?') ? '&' : '?') . 'sig=' . static::generateSignature($this->instagram->getApp(), $this->path, $this->params);
102
+        $authMethod = '?access_token='.$this->params['access_token'];
103
+        $endpoint = Constants::API_VERSION.$this->path.(('GET' === $this->method) ? '?'.http_build_query($this->params) : $authMethod);
104
+        $endpoint .= (strstr($endpoint, '?') ? '&' : '?').'sig='.static::generateSignature($this->instagram->getApp(), $this->path, $this->params);
105 105
 
106 106
         $request = HelperFactory::getInstance()->request($this->instagram->getHttpClient(), $endpoint, $this->params, $this->method);
107 107
 
Please login to merge, or discard this patch.
src/LoginUrl.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,8 +79,8 @@
 block discarded – undo
79 79
      */
80 80
     public function loginUrl()
81 81
     {
82
-        $query = 'client_id=' . $this->app->getId() . '&redirect_uri=' . urlencode($this->callback) . '&response_type=code&state=' . $this->state;
83
-        $query .= isset($this->scopes) ? '&scope=' . urlencode(str_replace(',', ' ', implode(',', $this->scopes))) : '';
82
+        $query = 'client_id='.$this->app->getId().'&redirect_uri='.urlencode($this->callback).'&response_type=code&state='.$this->state;
83
+        $query .= isset($this->scopes) ? '&scope='.urlencode(str_replace(',', ' ', implode(',', $this->scopes))) : '';
84 84
 
85 85
         return sprintf('%s%s?%s', Constants::API_HOST, Constants::API_AUTH, $query);
86 86
     }
Please login to merge, or discard this patch.