| @@ -50,8 +50,7 @@ | ||
| 50 | 50 | // Fill the model | 
| 51 | 51 |          if (is_array($modeldata)) { | 
| 52 | 52 | $this->fill($modeldata); | 
| 53 | - } | |
| 54 | -        else if ($modeldata instanceof \DirkGroenen\Pinterest\Transport\Response) { | |
| 53 | +        } else if ($modeldata instanceof \DirkGroenen\Pinterest\Transport\Response) { | |
| 55 | 54 | $this->fill($modeldata->data); | 
| 56 | 55 | } | 
| 57 | 56 | } | 
| @@ -188,8 +188,7 @@ discard block | ||
| 188 | 188 | |
| 189 | 189 |                  if (!class_exists('\CURLFile') && defined('CURLOPT_SAFE_UPLOAD')) { | 
| 190 | 190 | $ch->setOption(CURLOPT_SAFE_UPLOAD, false); | 
| 191 | - } | |
| 192 | -                elseif (class_exists('\CURLFile') && defined('CURLOPT_SAFE_UPLOAD')) { | |
| 191 | +                } elseif (class_exists('\CURLFile') && defined('CURLOPT_SAFE_UPLOAD')) { | |
| 193 | 192 | $ch->setOption(CURLOPT_SAFE_UPLOAD, true); | 
| 194 | 193 | } | 
| 195 | 194 | |
| @@ -214,8 +213,7 @@ discard block | ||
| 214 | 213 | |
| 215 | 214 |          if ($response_data === false && !$ch->hasErrors()) { | 
| 216 | 215 |              throw new CurlException("Error: Curl request failed"); | 
| 217 | - } | |
| 218 | -        else if($ch->hasErrors()) { | |
| 216 | +        } else if($ch->hasErrors()) { | |
| 219 | 217 |              throw new PinterestException('Error: execute() - cURL error: ' . $ch->getErrors(), $ch->getErrorNumber()); | 
| 220 | 218 | } | 
| 221 | 219 | |