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