@@ -43,15 +43,15 @@ discard block |
||
43 | 43 | * @param Pinterest $master |
44 | 44 | * @param mixed $modeldata |
45 | 45 | */ |
46 | - public function __construct( Pinterest $master, $modeldata = null ) |
|
46 | + public function __construct(Pinterest $master, $modeldata = null) |
|
47 | 47 | { |
48 | 48 | $this->master = $master; |
49 | 49 | |
50 | 50 | // Fill the model |
51 | - if( is_array($modeldata) ){ |
|
51 | + if (is_array($modeldata)) { |
|
52 | 52 | $this->fill($modeldata); |
53 | 53 | } |
54 | - else if( $modeldata instanceof \DirkGroenen\Pinterest\Transport\Response ){ |
|
54 | + else if ($modeldata instanceof \DirkGroenen\Pinterest\Transport\Response) { |
|
55 | 55 | $this->fill($modeldata->data); |
56 | 56 | } |
57 | 57 | } |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | { |
137 | 137 | $array = array(); |
138 | 138 | |
139 | - foreach($this->fillable as $key){ |
|
139 | + foreach ($this->fillable as $key) { |
|
140 | 140 | $array[$key] = $this->{$key}; |
141 | 141 | } |
142 | 142 |