@@ -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 | /** |
@@ -44,11 +44,13 @@ |
||
| 44 | 44 | } |
| 45 | 45 | $idx = 0; |
| 46 | 46 | $sortkey = array(); |
| 47 | - if (!is_array($familylist) && !is_object($familylist)) |
|
| 48 | - throw new \Exception('Architectures list is not an array'); |
|
| 47 | + if (!is_array($familylist) && !is_object($familylist)) { |
|
| 48 | + throw new \Exception('Architectures list is not an array'); |
|
| 49 | + } |
|
| 49 | 50 | foreach ($familylist as $family => $archlist) { |
| 50 | - if (!is_array($archlist) && !is_object($archlist)) |
|
| 51 | - throw new \Exception("Models list in $family is not an array"); |
|
| 51 | + if (!is_array($archlist) && !is_object($archlist)) { |
|
| 52 | + throw new \Exception("Models list in $family is not an array"); |
|
| 53 | + } |
|
| 52 | 54 | foreach ($archlist as $arch => $archmodels) { |
| 53 | 55 | foreach ($archmodels as $model) { |
| 54 | 56 | $this->devices[$idx] = array( |