Passed
Push — dsm7 ( bf1378 )
by Pascal
04:01
created
lib/SSpkS/Package/Package.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -165,12 +165,12 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
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.