Completed
Push — master ( 80a795...e6f9b5 )
by Haridarshan
03:27 queued 55s
created
src/Instagram.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -129,13 +129,13 @@  discard block
 block discarded – undo
129 129
 	}
130 130
 	
131 131
 	/**
132
-	* Make URLs for user browser navigation.
133
-	*
134
-	* @param string $path
135
-	* @param array  $parameters
136
-	*
137
-	* @return string
138
-	*/
132
+	 * Make URLs for user browser navigation.
133
+	 *
134
+	 * @param string $path
135
+	 * @param array  $parameters
136
+	 *
137
+	 * @return string
138
+	 */
139 139
 	public function getUrl($path, array $parameters) {		
140 140
 		if (is_array($parameters)) {			
141 141
 			if (isset($parameters['scope']) && count(array_diff($parameters['scope'], $this->default_scopes)) === 0) {
@@ -436,9 +436,9 @@  discard block
 block discarded – undo
436 436
 	*
437 437
 	* @return string
438 438
 	*/
439
-    public function getAccessToken() {
440
-        return $this->access_token;
441
-    }
439
+	public function getAccessToken() {
440
+		return $this->access_token;
441
+	}
442 442
 		
443 443
 	/*
444 444
 	* Get a string containing the version of the library.
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -270,7 +270,7 @@
 block discarded – undo
270 270
 		$signature = $endpoint;
271 271
 		ksort($params);
272 272
 		
273
-		foreach($params as $key => $value) {
273
+		foreach ($params as $key => $value) {
274 274
 			$signature .= "|$key=$value";	
275 275
 		}
276 276
 					
Please login to merge, or discard this patch.
tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-require __DIR__ . '/../../../../vendor/autoload.php';
2
+require __DIR__.'/../../../../vendor/autoload.php';
3 3
 
4 4
 define('CLIENT_ID', getenv('TEST_CLIENT_ID'));
5 5
 define('CLIENT_SECRET', getenv('TEST_CLIENT_SECRET'));
Please login to merge, or discard this patch.
tests/InstagramTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,18 +16,18 @@
 block discarded – undo
16 16
 		$this->instagram = new Instagram($config);
17 17
 	}
18 18
 	
19
-	public function testBuildClient(){
19
+	public function testBuildClient() {
20 20
 		$this->assertObjectHasAttribute('client_id', $this->instagram);		
21 21
 		$this->assertObjectHasAttribute('client_secret', $this->instagram);		
22 22
 		$this->assertObjectHasAttribute('callback_url', $this->instagram);
23 23
 	}
24 24
 	
25
-	public function testUrl(){
25
+	public function testUrl() {
26 26
 		$scope = array(
27 27
 			"basic"
28 28
 		);
29 29
 		
30
-		$url = $this->instagram->getUrl("oauth/authorize",["scope" => $scope]);
30
+		$url = $this->instagram->getUrl("oauth/authorize", ["scope" => $scope]);
31 31
 		
32 32
 		$this->assertEquals('https://api.instagram.com/oauth/authorize?client_id='.CLIENT_ID.'&redirect_uri='.urlencode(CALLBACK_URL).'&response_type=code&scope=basic', $url);
33 33
 	}
Please login to merge, or discard this patch.