Passed
Push — dsm7 ( bf1378 )
by Pascal
04:01
created
lib/SSpkS/Output/JsonOutput.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
lib/SSpkS/Handler/SynologyHandler.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,8 +68,10 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.