@@ -168,9 +168,9 @@ |
||
| 168 | 168 | $qValue = $this->hasWizardDir()? false : true; |
| 169 | 169 | $this->metadata['thumbnail'] = $this->getThumbnails(); |
| 170 | 170 | $this->metadata['snapshot'] = $this->getSnapshots(); |
| 171 | - $this->metadata['qinst'] = !empty($this->metadata['qinst'])? $this->parseBool($this->metadata['qinst']):$qValue; |
|
| 172 | - $this->metadata['qupgrade'] = !empty($this->metadata['qupgrade'])? $this->parseBool($this->metadata['qupgrade']):$qValue; |
|
| 173 | - $this->metadata['qstart'] = !empty($this->metadata['qstart'])? $this->parseBool($this->metadata['qstart']):$qValue; |
|
| 171 | + $this->metadata['qinst'] = !empty($this->metadata['qinst'])?$this->parseBool($this->metadata['qinst']):$qValue; |
|
| 172 | + $this->metadata['qupgrade'] = !empty($this->metadata['qupgrade'])?$this->parseBool($this->metadata['qupgrade']):$qValue; |
|
| 173 | + $this->metadata['qstart'] = !empty($this->metadata['qstart'])?$this->parseBool($this->metadata['qstart']):$qValue; |
|
| 174 | 174 | } |
| 175 | 175 | |
| 176 | 176 | /** |
@@ -45,8 +45,9 @@ |
||
| 45 | 45 | $idx = 0; |
| 46 | 46 | $sortkey = array(); |
| 47 | 47 | foreach ($familylist as $family => $archlist) { |
| 48 | - if (!is_array($archlist) && !is_object($archlist)) |
|
| 49 | - throw new \Exception("Models list in $family is not an array"); |
|
| 48 | + if (!is_array($archlist) && !is_object($archlist)) { |
|
| 49 | + throw new \Exception("Models list in $family is not an array"); |
|
| 50 | + } |
|
| 50 | 51 | foreach ($archlist as $arch => $archmodels) { |
| 51 | 52 | foreach ($archmodels as $model) { |
| 52 | 53 | $this->devices[$idx] = array( |