Passed
Push — master ( 7cf688...09b08b )
by Tomasz
04:22
created
devices/ms/WindowsCommon.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -188,11 +188,11 @@  discard block
 block discarded – undo
188 188
         $logoCount = count($logosToPlace);
189 189
         if ($logoCount > 0) {
190 190
             $voffset = $freeTop;
191
-            $freeSpace = (int)round($this->background['freeHeight'] / ($logoCount + 1));
191
+            $freeSpace = (int) round($this->background['freeHeight'] / ($logoCount + 1));
192 192
             foreach ($logosToPlace as $logo) {
193 193
                 $voffset += $freeSpace;
194 194
                 $logoSize = $logo->getImageGeometry();
195
-                $hoffset = (int)round(($bgImageSize['width'] - $logoSize['width']) / 2);
195
+                $hoffset = (int) round(($bgImageSize['width'] - $logoSize['width']) / 2);
196 196
                 $bgImage->compositeImage($logo, $logo->getImageCompose(), $hoffset, $voffset);
197 197
                 $voffset += $logoSize['height'];
198 198
                 }
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
         ];
234 234
         $s = "support_" . $type . "_substitute";
235 235
         $substitute = $this->translateString($this->$s, $this->codePage);
236
-        $returnValue = !empty($attr['support:' . $type][0]) ? $attr['support:' .  $type][0] : $substitute;
236
+        $returnValue = !empty($attr['support:' . $type][0]) ? $attr['support:' . $type][0] : $substitute;
237 237
         return('!define ' . $supportString[$type] . ' "' . $returnValue . '"' . "\n");
238 238
     }
239 239
     
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
             $fcontents .= "\n" . '!define USER_GROUP "' . $this->translateString(str_replace('"', '$\\"', $attr['profile:name'][0]), $this->codePage) . '"
245 245
 ';
246 246
         }
247
-        $fcontents .=  '
247
+        $fcontents .= '
248 248
 Caption "' . $this->translateString(sprintf(WindowsCommon::sprint_nsi(_("%s installer for %s")), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $attr['general:instname'][0]), $this->codePage) . '"
249 249
 !define APPLICATION "' . $this->translateString(sprintf(WindowsCommon::sprint_nsi(_("%s installer for %s")), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $attr['general:instname'][0]), $this->codePage) . '"
250 250
 !define VERSION "' . \core\CAT::VERSION_MAJOR . '.' . \core\CAT::VERSION_MINOR . '"
@@ -266,11 +266,11 @@  discard block
 block discarded – undo
266 266
             $fcontents .= '!define REALM "' . $attr['internal:realm'][0] . '"
267 267
 ';
268 268
         }
269
-        if(!empty($attr['internal:hint_userinput_suffix'][0]) && $attr['internal:hint_userinput_suffix'][0] == 1) {
269
+        if (!empty($attr['internal:hint_userinput_suffix'][0]) && $attr['internal:hint_userinput_suffix'][0] == 1) {
270 270
             $fcontents .= '!define HINT_USER_INPUT "' . $attr['internal:hint_userinput_suffix'][0] . '"
271 271
 ';
272 272
         }
273
-        if(!empty($attr['internal:verify_userinput_suffix'][0]) && $attr['internal:verify_userinput_suffix'][0] == 1) {
273
+        if (!empty($attr['internal:verify_userinput_suffix'][0]) && $attr['internal:verify_userinput_suffix'][0] == 1) {
274 274
             $fcontents .= '!define VERIFY_USER_REALM_INPUT "' . $attr['internal:verify_userinput_suffix'][0] . '"
275 275
 ';
276 276
         }
Please login to merge, or discard this patch.