@@ -50,8 +50,7 @@ discard block |
||
| 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 | } |
@@ -81,8 +80,7 @@ discard block |
||
| 81 | 80 | { |
| 82 | 81 | if ($this->isFillable($key)) { |
| 83 | 82 | $this->attributes[$key] = $value; |
| 84 | - } |
|
| 85 | - else { |
|
| 83 | + } else { |
|
| 86 | 84 | throw new PinterestException(sprintf("%s is not a fillable attribute.", $key)); |
| 87 | 85 | } |
| 88 | 86 | } |
@@ -15,11 +15,9 @@ |
||
| 15 | 15 | $pinterest->auth->setOAuthToken($token->access_token); |
| 16 | 16 | |
| 17 | 17 | setcookie("access_token", $token->access_token); |
| 18 | - } |
|
| 19 | - else if (isset($_GET["access_token"])) { |
|
| 18 | + } else if (isset($_GET["access_token"])) { |
|
| 20 | 19 | $pinterest->auth->setOAuthToken($_GET["access_token"]); |
| 21 | - } |
|
| 22 | - else if (isset($_COOKIE["access_token"])) { |
|
| 20 | + } else if (isset($_COOKIE["access_token"])) { |
|
| 23 | 21 | $pinterest->auth->setOAuthToken($_COOKIE["access_token"]); |
| 24 | 22 | } |
| 25 | 23 | |