@@ -51,8 +51,7 @@ discard block |
||
| 51 | 51 | // Fill the model |
| 52 | 52 | if( is_array($modeldata) ){ |
| 53 | 53 | $this->fill($modeldata); |
| 54 | - } |
|
| 55 | - else if( $modeldata instanceof \DirkGroenen\Pinterest\Transport\Response ){ |
|
| 54 | + } else if( $modeldata instanceof \DirkGroenen\Pinterest\Transport\Response ){ |
|
| 56 | 55 | $this->fill($modeldata->data); |
| 57 | 56 | } |
| 58 | 57 | } |
@@ -82,8 +81,7 @@ discard block |
||
| 82 | 81 | { |
| 83 | 82 | if($this->isFillable($key)){ |
| 84 | 83 | $this->attributes[$key] = $value; |
| 85 | - } |
|
| 86 | - else{ |
|
| 84 | + } else{ |
|
| 87 | 85 | throw new PinterestException( sprintf("%s is not a fillable attribute.", $key) ); |
| 88 | 86 | } |
| 89 | 87 | } |
@@ -127,7 +127,7 @@ |
||
| 127 | 127 | * Change the code for an access_token |
| 128 | 128 | * |
| 129 | 129 | * @param string $code |
| 130 | - * @return array |
|
| 130 | + * @return \DirkGroenen\Pinterest\Transport\Response |
|
| 131 | 131 | */ |
| 132 | 132 | public function getOAuthToken($code) |
| 133 | 133 | { |