Fix CodeSniffing errors
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 20 Dec 2012 16:28:40 +0000 (17:28 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 20 Dec 2012 16:28:40 +0000 (17:28 +0100)
files/lib/acp/form/StyleAddForm.class.php
files/lib/acp/form/StyleImportForm.class.php

index b621edfcfb421a10d85fefe48839c8603f6714d6..b11f9f7f62aceca2f5f3e1fce287fbbdcd9ce8c4 100644 (file)
@@ -207,7 +207,7 @@ class StyleAddForm extends ACPForm {
                // read variables with units, e.g. 13px
                foreach ($this->globals as $variableName) {
                        if (isset($_POST[$variableName]) && is_numeric($_POST[$variableName])) {
-                               if(isset($_POST[$variableName.'_unit']) && in_array($_POST[$variableName.'_unit'], $this->availableUnits)) { 
+                               if (isset($_POST[$variableName.'_unit']) && in_array($_POST[$variableName.'_unit'], $this->availableUnits)) { 
                                        $this->variables[$variableName] = $_POST[$variableName].$_POST[$variableName.'_unit'];
                                }
                        }
index e9e7745664a81fb070821a5b6f467f5f4753e142..c8b305c9f83d2cc18d43e03e75ad6b30fcaa893e 100644 (file)
@@ -67,8 +67,6 @@ class StyleImportForm extends ACPForm {
                if (!@move_uploaded_file($this->source['tmp_name'], $this->source['name'])) {
                        throw new UserInputException('source', 'uploadFailed');
                }
-               
-               
        }
        
        /**