@@ -165,12 +165,12 @@ |
||
| 165 | 165 | $this->metadata['beta'] = false; |
| 166 | 166 | } |
| 167 | 167 | |
| 168 | - $qValue = $this->hasWizardDir() ? false : true; |
|
| 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 | /** |
@@ -135,7 +135,7 @@ |
||
| 135 | 135 | 'beta' => $pkg->beta, // beta channel |
| 136 | 136 | ); |
| 137 | 137 | |
| 138 | - if(isset( $hideKeys )) { |
|
| 138 | + if (isset($hideKeys)) { |
|
| 139 | 139 | foreach ($hideKeys as $hideKey) { |
| 140 | 140 | unset($packageJSON[$hideKey]); |
| 141 | 141 | } |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | |
| 69 | 69 | $jo = new JsonOutput($this->config); |
| 70 | 70 | $jo->setExcludedServices($this->config->excludedSynoServices); |
| 71 | - if($major >= 7) // DSM does always hides packages marked as beta |
|
| 71 | + if ($major >= 7) // DSM does always hides packages marked as beta |
|
| 72 | 72 | $hideKeys = array('beta'); |
| 73 | 73 | $jo->outputPackages($filteredPkgList, $language, $hideKeys); |
| 74 | 74 | } |
@@ -68,8 +68,10 @@ |
||
| 68 | 68 | |
| 69 | 69 | $jo = new JsonOutput($this->config); |
| 70 | 70 | $jo->setExcludedServices($this->config->excludedSynoServices); |
| 71 | - if($major >= 7) // DSM does always hides packages marked as beta |
|
| 71 | + if($major >= 7) { |
|
| 72 | + // DSM does always hides packages marked as beta |
|
| 72 | 73 | $hideKeys = array('beta'); |
| 74 | + } |
|
| 73 | 75 | $jo->outputPackages($filteredPkgList, $language, $hideKeys); |
| 74 | 76 | } |
| 75 | 77 | } |