Completed
Push — master ( 50428a...92a95e )
by Haridarshan
02:39
created
src/Instagram.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -122,13 +122,13 @@  discard block
 block discarded – undo
122 122
 	}
123 123
 	
124 124
 	/**
125
-	* Make URLs for user browser navigation.
126
-	*
127
-	* @param string $path
128
-	* @param array  $parameters
129
-	*
130
-	* @return string
131
-	*/
125
+	 * Make URLs for user browser navigation.
126
+	 *
127
+	 * @param string $path
128
+	 * @param array  $parameters
129
+	 *
130
+	 * @return string
131
+	 */
132 132
 	public function getUrl($path, array $parameters) {		
133 133
 		if (is_array($parameters)) {			
134 134
 			if (isset($parameters['scope']) && count(array_diff($parameters['scope'], $this->default_scopes)) === 0) {
@@ -415,9 +415,9 @@  discard block
 block discarded – undo
415 415
 	*
416 416
 	* @return string
417 417
 	*/
418
-    public function getAccessToken() {
419
-        return isset($this->access_token) ? $this->access_token : null ;
420
-    }
418
+	public function getAccessToken() {
419
+		return isset($this->access_token) ? $this->access_token : null ;
420
+	}
421 421
 		
422 422
 	/*
423 423
 	* Get a string containing the version of the library.
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 
148 148
 		$query = 'client_id='.$this->getClientId().'&redirect_uri='.urlencode($this->getCallbackUrl()).'&response_type=code';
149 149
 
150
-		$query .= isset($this->scopes) ? '&scope='.urlencode(str_replace(",", " ", implode(",", $parameters['scope']))) : '' ;
150
+		$query .= isset($this->scopes) ? '&scope='.urlencode(str_replace(",", " ", implode(",", $parameters['scope']))) : '';
151 151
 		
152 152
 		/*
153 153
 		if (isset($this->scopes)) {
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 				
215 215
 				break;
216 216
 			case 'POST': 			
217
-				$body = is_array($options) ? http_build_query($options) : ltrim($options, '&') ;
217
+				$body = is_array($options) ? http_build_query($options) : ltrim($options, '&');
218 218
 				
219 219
 				try {
220 220
 					$this->response = json_decode($this->client->request(
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
 		$signature = $endpoint;
260 260
 		ksort($params);
261 261
 		
262
-		foreach($params as $key => $value) {
262
+		foreach ($params as $key => $value) {
263 263
 			$signature .= "|$key=$value";	
264 264
 		}
265 265
 					
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
 	* @return string
417 417
 	*/
418 418
     public function getAccessToken() {
419
-        return isset($this->access_token) ? $this->access_token : null ;
419
+        return isset($this->access_token) ? $this->access_token : null;
420 420
     }
421 421
 		
422 422
 	/*
Please login to merge, or discard this patch.