Fix code style issues
authorMatthias Schmidt <gravatronics@live.com>
Thu, 24 May 2018 15:57:13 +0000 (17:57 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 24 May 2018 15:57:13 +0000 (17:57 +0200)
See #2509

wcfsetup/install/files/lib/system/form/builder/field/ShowOrderFormField.class.php

index c6ca5f2e286a973877e432804c7c2d9c927e2799..e212835f8d883ba81ca5ff458f9e46c1dd835163 100644 (file)
@@ -80,7 +80,7 @@ class ShowOrderFormField extends SingleSelectionFormField {
                // when editing an objects, the value has to be reduced by one to determine the
                // relevant sibling as the edited object is shown after its previous sibling 
                if ($this->getDocument()->getFormMode() === IFormDocument::FORM_MODE_UPDATE) {
-                       $value -= 1;
+                       $value--;
                }
                
                if (count($keys) <= $value) {
@@ -94,7 +94,9 @@ class ShowOrderFormField extends SingleSelectionFormField {
         * @inheritDoc
         * @return      static
         */
+       // @codingStandardsIgnoreStart
        public static function create(string $id = 'showOrder'): IFormNode {
                return parent::create($id);
        }
+       // @codingStandardsIgnoreEnd
 }