Completed
Push — master ( 39fdce...143be6 )
by Haridarshan
03:13
created
src/InstagramOAuth.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@
 block discarded – undo
20 20
         if (empty($oauth)) {
21 21
             throw new InstagramOAuthException("Bad Request 400 empty Response", 400);
22 22
         }
23
-		$this->accessToken = $oauth->access_token;
24
-		$this->user = isset($oauth->user) ? $oauth->user : null;
23
+        $this->accessToken = $oauth->access_token;
24
+        $this->user = isset($oauth->user) ? $oauth->user : null;
25 25
     }
26 26
     
27 27
     /*
Please login to merge, or discard this patch.
src/InstagramResponse.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         if (!$response instanceof Response) {
43 43
             throw new InstagramResponseException('Bad Request: Response is not valid instance of GuzzleHttp\Psr7\Response', 404); 
44 44
         }
45
-		$this->setParams($response);
45
+        $this->setParams($response);
46 46
     }
47 47
     
48 48
     /* 
Please login to merge, or discard this patch.
src/InstagramRequest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,10 +63,10 @@
 block discarded – undo
63 63
         $request = $helper->request($this->instagram->getHttpClient(), $endpoint, $this->params, $this->method);
64 64
 				
65 65
         if ($request === null) {
66
-			throw new InstagramResponseException("400 Bad Request: instanceof InstagramResponse cannot be null", 400);
66
+            throw new InstagramResponseException("400 Bad Request: instanceof InstagramResponse cannot be null", 400);
67 67
         }
68
-		$this->response = new InstagramResponse($request);
69
-		$this->xRateLimitRemaining = $this->response->getHeader('X-Ratelimit-Remaining');
68
+        $this->response = new InstagramResponse($request);
69
+        $this->xRateLimitRemaining = $this->response->getHeader('X-Ratelimit-Remaining');
70 70
     }
71 71
     
72 72
     /*
Please login to merge, or discard this patch.
src/HelperFactory.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@  discard block
 block discarded – undo
11 11
 
12 12
 class HelperFactory
13 13
 {
14
-	/** @var HelperFactory The reference to *HelperFactory* instance of this class */
15
-	private static $instance;
14
+    /** @var HelperFactory The reference to *HelperFactory* instance of this class */
15
+    private static $instance;
16 16
 	
17 17
     /** @var Response $response */
18 18
     protected static $response;
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     /** @var object $content */
24 24
     protected static $content;
25 25
     
26
-	/*
26
+    /*
27 27
      * Returns the *HelperFactory* instance of this class.
28 28
      *
29 29
      * @return HelperFactory The *HelperFactory* instance.
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         return self::$instance;
38 38
     }
39 39
 	
40
-	/*
40
+    /*
41 41
      * Protected constructor to prevent creating a new instance of the
42 42
      * *HelperFactory* via the `new` operator from outside of this class.
43 43
      */
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
                 $exception
108 108
             );
109 109
         }
110
-		return json_decode(self::$content);
110
+        return json_decode(self::$content);
111 111
     }
112 112
     
113 113
     /*
@@ -139,13 +139,13 @@  discard block
 block discarded – undo
139 139
     protected static function getExceptionMessage(\stdClass $object)
140 140
     {
141 141
         $message = array();		
142
-		$message['error_type'] = isset($object->meta) ? $object->meta->error_type : $object->error_type;
143
-		$message['error_message'] = isset($object->meta) ? $object->meta->error_message : $object->error_message;
144
-		$message['error_code'] = isset($object->meta) ? $object->meta->code : $object->code;
142
+        $message['error_type'] = isset($object->meta) ? $object->meta->error_type : $object->error_type;
143
+        $message['error_message'] = isset($object->meta) ? $object->meta->error_message : $object->error_message;
144
+        $message['error_code'] = isset($object->meta) ? $object->meta->code : $object->code;
145 145
         return $message;
146 146
     }
147 147
 	
148
-	/*
148
+    /*
149 149
      * Private clone method to prevent cloning of the instance of the
150 150
      * *HelperFactory* instance.
151 151
      *
@@ -153,6 +153,6 @@  discard block
 block discarded – undo
153 153
      */
154 154
     private function __clone()
155 155
     {
156
-		// a factory clone should never be invoked
156
+        // a factory clone should never be invoked
157 157
     }
158 158
 }
Please login to merge, or discard this patch.