@@ -120,13 +120,13 @@  | 
                                                    ||
| 120 | 120 | */  | 
                                                        
| 121 | 121 | public function prepareRequestMessage(InstagramRequest $request, $baseUrl = 'graph')  | 
                                                        
| 122 | 122 |      { | 
                                                        
| 123 | -        if($baseUrl == 'authorization') { | 
                                                        |
| 123 | +        if ($baseUrl == 'authorization') { | 
                                                        |
| 124 | 124 | $url = $this->getBaseAuthorizationUrl();  | 
                                                        
| 125 | 125 |          } else { | 
                                                        
| 126 | 126 | $url = $this->getBaseGraphUrl();  | 
                                                        
| 127 | 127 | }  | 
                                                        
| 128 | 128 | |
| 129 | - $url .= $request->getUrl();  | 
                                                        |
| 129 | + $url .= $request->getUrl();  | 
                                                        |
| 130 | 130 | |
| 131 | 131 | $requestBody = $request->getUrlEncodedBody();  | 
                                                        
| 132 | 132 | $request->setHeaders([  | 
                                                        
@@ -76,10 +76,10 @@  | 
                                                    ||
| 76 | 76 | case 1363037:  | 
                                                        
| 77 | 77 | $previousException = new InstagramResumableUploadException($message, $code);  | 
                                                        
| 78 | 78 | |
| 79 | - $startOffset = isset($data['error']['error_data']['start_offset']) ? (int) $data['error']['error_data']['start_offset'] : null;  | 
                                                        |
| 79 | + $startOffset = isset($data['error']['error_data']['start_offset']) ? (int)$data['error']['error_data']['start_offset'] : null;  | 
                                                        |
| 80 | 80 | $previousException->setStartOffset($startOffset);  | 
                                                        
| 81 | 81 | |
| 82 | - $endOffset = isset($data['error']['error_data']['end_offset']) ? (int) $data['error']['error_data']['end_offset'] : null;  | 
                                                        |
| 82 | + $endOffset = isset($data['error']['error_data']['end_offset']) ? (int)$data['error']['error_data']['end_offset'] : null;  | 
                                                        |
| 83 | 83 | $previousException->setEndOffset($endOffset);  | 
                                                        
| 84 | 84 | |
| 85 | 85 | return new static($response, $previousException);  | 
                                                        
@@ -31,7 +31,7 @@  | 
                                                    ||
| 31 | 31 |          //     throw new InstagramSDKException('The "app_id" must be formatted as a string since many app ID\'s are greater than PHP_INT_MAX on some systems.'); | 
                                                        
| 32 | 32 | // }  | 
                                                        
| 33 | 33 | // We cast as a string in case a valid int was set on a 64-bit system and this is unserialised on a 32-bit system  | 
                                                        
| 34 | - $this->id = (string) $id;  | 
                                                        |
| 34 | + $this->id = (string)$id;  | 
                                                        |
| 35 | 35 | $this->secret = $secret;  | 
                                                        
| 36 | 36 | }  | 
                                                        
| 37 | 37 | |
@@ -85,7 +85,7 @@  | 
                                                    ||
| 85 | 85 |      { | 
                                                        
| 86 | 86 | // https://tools.ietf.org/html/rfc7230#section-3.1.2  | 
                                                        
| 87 | 87 |          list($version, $status, $reason) = array_pad(explode(' ', $rawResponseHeader, 3), 3, null); | 
                                                        
| 88 | - $this->httpResponseCode = (int) $status;  | 
                                                        |
| 88 | + $this->httpResponseCode = (int)$status;  | 
                                                        |
| 89 | 89 | }  | 
                                                        
| 90 | 90 | |
| 91 | 91 | /**  | 
                                                        
@@ -107,7 +107,7 @@  | 
                                                    ||
| 107 | 107 | */  | 
                                                        
| 108 | 108 | public function asArray()  | 
                                                        
| 109 | 109 |      { | 
                                                        
| 110 | -        return array_map(function ($value) { | 
                                                        |
| 110 | +        return array_map(function($value) { | 
                                                        |
| 111 | 111 | return $value instanceof Collection ? $value->asArray() : $value;  | 
                                                        
| 112 | 112 | }, $this->items);  | 
                                                        
| 113 | 113 | }  | 
                                                        
@@ -20,7 +20,7 @@  | 
                                                    ||
| 20 | 20 | *  | 
                                                        
| 21 | 21 | * @return void  | 
                                                        
| 22 | 22 | */  | 
                                                        
| 23 | -spl_autoload_register(function ($class) { | 
                                                        |
| 23 | +spl_autoload_register(function($class) { | 
                                                        |
| 24 | 24 | // project-specific namespace prefix  | 
                                                        
| 25 | 25 | $prefix = 'Instagram\\';  | 
                                                        
| 26 | 26 | |