Completed
Pull Request — master (#74)
by Gino
03:12
created
admin/building.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,9 +49,9 @@
 block discarded – undo
49 49
                 TDMCreate_clearDir($fromDir);
50 50
             }
51 51
             // Clear this module if it's in root/modules
52
-			// Warning: If you have an older operating module with the same name, 
53
-			// it's good to make a copy in another safe folder, 
54
-			// otherwise it will be deleted irreversibly.
52
+            // Warning: If you have an older operating module with the same name, 
53
+            // it's good to make a copy in another safe folder, 
54
+            // otherwise it will be deleted irreversibly.
55 55
             if (is_dir($toDir)) {
56 56
                 TDMCreate_clearDir($toDir);
57 57
             }
Please login to merge, or discard this patch.
class/files/classes/ClassFormElements.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
  */
28 28
 class ClassFormElements extends TDMCreateFile
29 29
 {    	
30
-	/*
30
+    /*
31 31
     * @var string
32 32
     */
33 33
     private $tdmcreate = null;
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     */
38 38
     private $xoopscode = null;
39 39
 	
40
-	/*
40
+    /*
41 41
     * @var mixed
42 42
     */
43 43
     private $classcode = null;
@@ -109,11 +109,11 @@  discard block
 block discarded – undo
109 109
             $ret = $this->phpcode->getPhpCodeCommentLine('Form Text', $ucfFieldName);
110 110
             $ret .= $this->phpcode->getPhpCodeTernaryOperator($ccFieldName, '$this->isNew()', "'{$fieldDefault}'", "\$this->getVar('{$fieldName}')");
111 111
             $formText = $this->classcode->getClassXoopsFormText('', $language, $fieldName, 20, 150, "{$ccFieldName}", true);
112
-			$ret .= $this->classcode->getClassAddElement('form', $formText.$required);            
112
+            $ret .= $this->classcode->getClassAddElement('form', $formText.$required);            
113 113
         } else {
114
-			$ret = $this->phpcode->getPhpCodeCommentLine('Form Text', $ucfFieldName);
114
+            $ret = $this->phpcode->getPhpCodeCommentLine('Form Text', $ucfFieldName);
115 115
             $formText = $this->classcode->getClassXoopsFormText('', $language, $fieldName, 50, 255, "this->getVar('{$fieldName}')", true);
116
-			$ret .= $this->classcode->getClassAddElement('form', $formText.$required);
116
+            $ret .= $this->classcode->getClassAddElement('form', $formText.$required);
117 117
         }
118 118
 
119 119
         return $ret;
@@ -134,10 +134,10 @@  discard block
 block discarded – undo
134 134
      */
135 135
     private function getXoopsFormTextArea($language, $fieldName, $required = 'false')
136 136
     {
137
-		$ucfFieldName = $this->getCamelCase($fieldName, true);
137
+        $ucfFieldName = $this->getCamelCase($fieldName, true);
138 138
         $ret = $this->phpcode->getPhpCodeCommentLine('Form Text Area', $ucfFieldName);
139
-		$formTextArea = $this->classcode->getClassXoopsFormTextArea('', $language, $fieldName, 4, 47, true);
140
-		$ret .= $this->classcode->getClassAddElement('form', $formTextArea.$required);
139
+        $formTextArea = $this->classcode->getClassXoopsFormTextArea('', $language, $fieldName, 4, 47, true);
140
+        $ret .= $this->classcode->getClassAddElement('form', $formTextArea.$required);
141 141
 		
142 142
         return $ret;
143 143
     }
@@ -160,14 +160,14 @@  discard block
 block discarded – undo
160 160
     private function getXoopsFormDhtmlTextArea($language, $moduleDirname, $fieldName, $required = 'false')
161 161
     {
162 162
         $rpFieldName = $this->getRightString($fieldName);
163
-		$ret = $this->phpcode->getPhpCodeArray('editorConfigs');
163
+        $ret = $this->phpcode->getPhpCodeArray('editorConfigs');
164 164
         $configs = array('name' => "'{$fieldName}'", 'value' => "\$this->getVar('{$fieldName}', 'e')", 'rows' => 5, 'cols' => 40, 
165
-						'width' => "'100%'", 'height' => "'400px'", 'editor' => "\$this->{$moduleDirname}->getConfig('{$moduleDirname}_editor_{$rpFieldName}')");		
166
-		foreach ($configs as $c => $d) {
167
-			$ret .= "\$editorConfigs['{$c}'] = {$d};";
168
-		}
169
-		$formEditor = $this->classcode->getClassXoopsFormEditor('', $language, $fieldName, 'editorConfigs', true);
170
-		$ret .= $this->classcode->getClassAddElement('form', $formEditor.$required);
165
+                        'width' => "'100%'", 'height' => "'400px'", 'editor' => "\$this->{$moduleDirname}->getConfig('{$moduleDirname}_editor_{$rpFieldName}')");		
166
+        foreach ($configs as $c => $d) {
167
+            $ret .= "\$editorConfigs['{$c}'] = {$d};";
168
+        }
169
+        $formEditor = $this->classcode->getClassXoopsFormEditor('', $language, $fieldName, 'editorConfigs', true);
170
+        $ret .= $this->classcode->getClassAddElement('form', $formEditor.$required);
171 171
 		
172 172
         return $ret;
173 173
     }
@@ -226,9 +226,9 @@  discard block
 block discarded – undo
226 226
     private function getXoopsFormHidden($fieldName)
227 227
     {
228 228
         $ucfFieldName = $this->getCamelCase($fieldName, true);
229
-		$ret = $this->phpcode->getPhpCodeCommentLine('Form Hidden', $ucfFieldName);
230
-		$formHidden = $this->classcode->getClassXoopsFormHidden('', $fieldName, $fieldName, true, true);
231
-		$ret .= $this->classcode->getClassAddElement('form', $formHidden);
229
+        $ret = $this->phpcode->getPhpCodeCommentLine('Form Hidden', $ucfFieldName);
230
+        $formHidden = $this->classcode->getClassXoopsFormHidden('', $fieldName, $fieldName, true, true);
231
+        $ret .= $this->classcode->getClassAddElement('form', $formHidden);
232 232
 		
233 233
         return $ret;
234 234
     }
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
      * @param        $moduleDirname
346 346
      * @param        $fieldName
347 347
      * @param        $fieldDefault
348
-	 *
348
+     *
349 349
      * @param $required
350 350
      *
351 351
      * @return string
@@ -590,7 +590,7 @@  discard block
 block discarded – undo
590 590
     {
591 591
         $ucfTableName = ucfirst($tableName);
592 592
         $ret = '';
593
-		if ($fieldElement > 15) {
593
+        if ($fieldElement > 15) {
594 594
             $fElement = $this->tdmcreate->getHandler('fieldelements')->get($fieldElement);
595 595
             $rpFieldelementName = strtolower(str_replace('Table : ', '', $fElement->getVar('fieldelement_name')));
596 596
             $ccFieldName = $this->getCamelCase($fieldName, false, true);
Please login to merge, or discard this patch.
class/files/language/LanguageModinfo.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
             $tableSoleName = $tables[$i]->getVar('table_solename');
201 201
             $stuTableSoleName = strtoupper($tableSoleName);
202 202
             $ucfTableName = ucfirst($tableName);
203
-			$ucfTableSoleName = ucfirst($stuTableSoleName);
203
+            $ucfTableSoleName = ucfirst($stuTableSoleName);
204 204
             if (1 == $tables[$i]->getVar('table_blocks')) {
205 205
                 $ret .= $this->defines->getDefine($language, "{$stuTableName}_BLOCK", "{$ucfTableName} block");
206 206
                 $ret .= $this->defines->getDefine($language, "{$stuTableName}_BLOCK_DESC", "{$ucfTableName} block description");
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
                     $ret .= $this->defines->getDefine($language, "{$stuTableName}_BLOCK_{$stuTableSoleName}", "{$ucfTableName} block {$ucfTableSoleName}");
209 209
                     $ret .= $this->defines->getDefine($language, "{$stuTableName}_BLOCK_{$stuTableSoleName}_DESC", "{$ucfTableName} block {$ucfTableSoleName} description");
210 210
                 } else {
211
-					$ret .= $this->defines->getDefine($language, "{$stuTableName}_BLOCK_{$stuTableSoleName}", "{$ucfTableName} block  {$ucfTableSoleName}");
211
+                    $ret .= $this->defines->getDefine($language, "{$stuTableName}_BLOCK_{$stuTableSoleName}", "{$ucfTableName} block  {$ucfTableSoleName}");
212 212
                     $ret .= $this->defines->getDefine($language, "{$stuTableName}_BLOCK_{$stuTableSoleName}_DESC", "{$ucfTableName} block  {$ucfTableSoleName} description");
213 213
                     $ret .= $this->defines->getDefine($language, "{$stuTableName}_BLOCK_LAST", "{$ucfTableName} block last");
214 214
                     $ret .= $this->defines->getDefine($language, "{$stuTableName}_BLOCK_LAST_DESC", "{$ucfTableName} block last description");
Please login to merge, or discard this patch.
class/modules.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -255,7 +255,7 @@
 block discarded – undo
255 255
         $form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_LICENSE, 'mod_license', 50, 255, $modLicense), true);
256 256
         //
257 257
         $optionsTray = new XoopsFormElementTray(_OPTIONS, '<br />');
258
-		$optionsTray->setDescription(_AM_TDMCREATE_OPTIONS_DESC);
258
+        $optionsTray->setDescription(_AM_TDMCREATE_OPTIONS_DESC);
259 259
         // Check All Modules Options
260 260
         $checkAllOptions = new XoopsFormCheckBox('', 'modulebox', 1);
261 261
         $checkAllOptions->addOption('allbox', _AM_TDMCREATE_MODULE_ALL);
Please login to merge, or discard this patch.