@@ -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 | } |