@@ -11,7 +11,6 @@ |
||
| 11 | 11 | namespace DirkGroenen\Pinterest\Transport; |
| 12 | 12 | |
| 13 | 13 | use DirkGroenen\Pinterest\Utils\CurlBuilder; |
| 14 | -use DirkGroenen\Pinterest\Exceptions\PinterestException; |
|
| 15 | 14 | |
| 16 | 15 | class Response { |
| 17 | 16 | |
@@ -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 | } |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | namespace DirkGroenen\Pinterest\Transport; |
| 12 | 12 | |
| 13 | 13 | use DirkGroenen\Pinterest\Utils\CurlBuilder; |
| 14 | -use DirkGroenen\Pinterest\Exceptions\PinterestException; |
|
| 15 | 14 | |
| 16 | 15 | class Response { |
| 17 | 16 | |