Passed
Push — main ( f05cfd...29a9c1 )
by Stefan
02:38
created
examples/SimpleForm.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 $oFG->setConfig($oConfig);
45 45
 // $oFG->setReadOnly(true);
46 46
 // $oFG->setDebugMode(true);
47
-$oFG->setColWidth([20, 80], '%');       // we set colwidth for the whole form
47
+$oFG->setColWidth([20, 80], '%'); // we set colwidth for the whole form
48 48
 
49 49
 $oFG->add(new FormHeader('With exposed Header...'));
50 50
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 <script type="text/javascript" src="../script/FormDataValidator.js"></script>
92 92
 <script type="text/javascript" src="../script/jscolor.min.js"></script>
93 93
 <script>
94
-<?php echo $oFG->getScript();?>
94
+<?php echo $oFG->getScript(); ?>
95 95
 </script>
96 96
 </head>
97 97
 <body>
Please login to merge, or discard this patch.
examples/CKEditorForm.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 $oFG->setDebugMode(true);
16 16
 $oFG->setConfig($oConfig);
17 17
 
18
-$oFG->setColWidth([100], '%');       // we set colwidth for the whole form
18
+$oFG->setColWidth([100], '%'); // we set colwidth for the whole form
19 19
 $oEditor = new FormCKEdit('editor', 20, '100%');
20 20
 $oFG->add($oEditor);
21 21
 $oEditor->setContentsCss('../style/FormGenerator.css');
@@ -34,10 +34,10 @@  discard block
 block discarded – undo
34 34
 <script type="text/javascript" src="https://code.jquery.com/jquery-latest.min.js"></script>
35 35
 <script type="text/javascript" src="../ckeditor/ckeditor.js"></script>
36 36
 <script>
37
-<?php echo $oFG->getScript();?>
37
+<?php echo $oFG->getScript(); ?>
38 38
 </script>
39 39
 <style>
40
-<?php echo $oFG->getStyle();?>
40
+<?php echo $oFG->getStyle(); ?>
41 41
 </style>
42 42
 </head>
43 43
 <body>
Please login to merge, or discard this patch.
SKien/Formgenerator/FormButtonBox.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -24,19 +24,19 @@  discard block
 block discarded – undo
24 24
     public const NONE       = 0;
25 25
     public const FIRST      = 0;
26 26
     public const LAST       = -1;
27
-    public const OK	        = 0x0001;   // An "OK" button for submit.
28
-    public const OPEN	    = 0x0002;   // An "Open" button for submit.
29
-    public const SAVE       = 0x0004;   // A "Save" button for submit.
30
-    public const YES	    = 0x0008;   // A "Yes" button for submit.
31
-    public const NO         = 0x0010;   // A "No" button
32
-    public const CANCEL     = 0x0020;   // A "Cancel" button
33
-    public const CLOSE      = 0x0040;   // A "Close" button
34
-    public const DISCARD    = 0x0080;   // A "Discard" button
35
-    public const APPLY      = 0x0100;   // An "Apply" button for submit.
36
-    public const RESET      = 0x0200;   // A "Reset" button
37
-    public const RETRY      = 0x0400;   // A "Retry" button for submit.
38
-    public const IGNORE     = 0x0800;   // An "Ignore" button
39
-    public const BACK       = 0x1000;   // A "Back" button
27
+    public const OK	        = 0x0001; // An "OK" button for submit.
28
+    public const OPEN = 0x0002; // An "Open" button for submit.
29
+    public const SAVE       = 0x0004; // A "Save" button for submit.
30
+    public const YES = 0x0008; // A "Yes" button for submit.
31
+    public const NO         = 0x0010; // A "No" button
32
+    public const CANCEL     = 0x0020; // A "Cancel" button
33
+    public const CLOSE      = 0x0040; // A "Close" button
34
+    public const DISCARD    = 0x0080; // A "Discard" button
35
+    public const APPLY      = 0x0100; // An "Apply" button for submit.
36
+    public const RESET      = 0x0200; // A "Reset" button
37
+    public const RETRY      = 0x0400; // A "Retry" button for submit.
38
+    public const IGNORE     = 0x0800; // An "Ignore" button
39
+    public const BACK       = 0x1000; // A "Back" button
40 40
     
41 41
     public const YES_NO_CANCEL = self::YES | self::NO | self::CANCEL;
42 42
     public const SAVE_CANCEL = self::SAVE | self::CANCEL;
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     public function addButton(string $strText, string $strID, int $iAfterBtn = self::LAST, bool $bSubmit = false) : void
70 70
     {
71
-        $this->aCustomButtons[$iAfterBtn] = ['text' => $strText, 'id' => $strID, 'type' => ($bSubmit ? 'submit' : 'button') ]; 
71
+        $this->aCustomButtons[$iAfterBtn] = ['text' => $strText, 'id' => $strID, 'type' => ($bSubmit ? 'submit' : 'button')]; 
72 72
     }
73 73
 
74 74
     /**
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
     {
162 162
         $iCount = 0;
163 163
         $iBtns = $this->iBtns;
164
-        while($iBtns) {
164
+        while ($iBtns) {
165 165
             $iCount += ($iBtns & 1);
166 166
             $iBtns >>= 1;
167 167
         }
@@ -177,19 +177,19 @@  discard block
 block discarded – undo
177 177
     protected function loadButtonDef() : array
178 178
     {
179 179
         $aButtonDef = [
180
-            self::OK => ['text' => 'OK', 'id' => 'btnOK', 'type' => 'submit' ],
181
-            self::OPEN => ['text' => 'Open', 'id' => 'btnOpen', 'type' => 'button' ],
182
-            self::SAVE => ['text' => 'Save', 'id' => 'btnSave', 'type' => 'submit' ],
183
-            self::YES => ['text' => 'Yes', 'id' => 'btnYes', 'type' => 'submit' ],
184
-            self::NO => ['text' => 'No', 'id' => 'btnNo', 'type' => 'button' ],
185
-            self::CANCEL => ['text' => 'Cancel', 'id' => 'btnCancel', 'type' => 'button' ],
186
-            self::CLOSE => ['text' => 'Close', 'id' => 'btnClose', 'type' => 'button' ],
187
-            self::DISCARD => ['text' => 'Discard', 'id' => 'btnDiscard', 'type' => 'button' ],
188
-            self::APPLY => ['text' => 'Apply', 'id' => 'btnApply', 'type' => 'submit' ],
189
-            self::RESET => ['text' => 'Reset', 'id' => 'btnReset', 'type' => 'button' ],
190
-            self::RETRY => ['text' => 'Retry', 'id' => 'btnRetry', 'type' => 'submit' ],
191
-            self::IGNORE => ['text' => 'Ignore', 'id' => 'btnIgnore', 'type' => 'button' ],
192
-            self::BACK => ['text' => 'Back', 'id' => 'btnBack', 'type' => 'button' ],
180
+            self::OK => ['text' => 'OK', 'id' => 'btnOK', 'type' => 'submit'],
181
+            self::OPEN => ['text' => 'Open', 'id' => 'btnOpen', 'type' => 'button'],
182
+            self::SAVE => ['text' => 'Save', 'id' => 'btnSave', 'type' => 'submit'],
183
+            self::YES => ['text' => 'Yes', 'id' => 'btnYes', 'type' => 'submit'],
184
+            self::NO => ['text' => 'No', 'id' => 'btnNo', 'type' => 'button'],
185
+            self::CANCEL => ['text' => 'Cancel', 'id' => 'btnCancel', 'type' => 'button'],
186
+            self::CLOSE => ['text' => 'Close', 'id' => 'btnClose', 'type' => 'button'],
187
+            self::DISCARD => ['text' => 'Discard', 'id' => 'btnDiscard', 'type' => 'button'],
188
+            self::APPLY => ['text' => 'Apply', 'id' => 'btnApply', 'type' => 'submit'],
189
+            self::RESET => ['text' => 'Reset', 'id' => 'btnReset', 'type' => 'button'],
190
+            self::RETRY => ['text' => 'Retry', 'id' => 'btnRetry', 'type' => 'submit'],
191
+            self::IGNORE => ['text' => 'Ignore', 'id' => 'btnIgnore', 'type' => 'button'],
192
+            self::BACK => ['text' => 'Back', 'id' => 'btnBack', 'type' => 'button'],
193 193
         ];
194 194
         
195 195
         $aConfig = $this->oFG->getConfig()->getArray('ButtonBox.ButtonText');
Please login to merge, or discard this patch.