Passed
Pull Request — master (#145)
by Goffy
04:27
created
class/Files/User/UserPages.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         $ret              .= $pc->getPhpCodeArray('keywords', null, false, '');
116 116
         $condIf           = $pc->getPhpCodeArray($tableName, null, false, $t);
117 117
         $condIf           .= $pc->getPhpCodeCommentLine('Get All', $ucfTableName, $t);
118
-        $foreach          = $xc->getXcGetValues($tableName, $tableName . '[]', 'i', false, $t);
118
+        $foreach          = $xc->getXcGetValues($tableName, $tableName.'[]', 'i', false, $t);
119 119
 
120 120
         $table = $this->getTable();
121 121
         // Fields
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
                 $fieldMain = $fieldName; // fieldMain = fields parameters main field
127 127
             }
128 128
         }
129
-        $foreach   .= $xc->getXcGetVar('keywords[]', "{$tableName}All[\$i]", $fieldMain, false, $t . "\t");
129
+        $foreach   .= $xc->getXcGetVar('keywords[]', "{$tableName}All[\$i]", $fieldMain, false, $t."\t");
130 130
         $condIf    .= $pc->getPhpCodeForeach("{$tableName}All", true, false, 'i', $foreach, $t);
131 131
         $condIf    .= $xc->getXcTplAssign($tableName, "\${$tableName}", true, $t);
132 132
         $condIf    .= $pc->getPhpCodeUnset($tableName, $t);
Please login to merge, or discard this patch.
class/Files/User/UserSingle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
         }
94 94
         if (1 == $table->getVar('table_category')) {
95 95
             $ccFieldPid = $this->getCamelCase($fieldPid, false, true);
96
-            $ret        .= $xc->getXcXoopsRequest($ccFieldPid, (string)$fieldPid, '0', 'Int');
96
+            $ret .= $xc->getXcXoopsRequest($ccFieldPid, (string)$fieldPid, '0', 'Int');
97 97
         }
98 98
         $ccFieldId = $this->getCamelCase($fieldId, false, true);
99 99
         $ret       .= $xc->getXcXoopsRequest($ccFieldId, (string)$fieldId, '0', 'Int');
Please login to merge, or discard this patch.
class/Files/User/UserSubmit.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -112,18 +112,18 @@  discard block
 block discarded – undo
112 112
         $pc  = Tdmcreate\Files\CreatePhpCode::getInstance();
113 113
         $uc  = UserXoopsCode::getInstance();
114 114
         $ret = $pc->getPhpCodeCommentLine('Navigation');
115
-        $ret .= $xc->getXcEqualsOperator('$navigation', "{$language}SUBMIT_PROPOSER", '', false, $t . "\t");
116
-        $ret .= $xc->getXcTplAssign('navigation', '$navigation', true, $t . "\t");
117
-        $ret .= $pc->getPhpCodeCommentLine('Title of page', null, $t . "\t");
118
-        $ret .= $xc->getXcEqualsOperator('$title', "{$language}SUBMIT_PROPOSER . ' - '", '', false, $t . "\t");
119
-        $ret .= $xc->getXcEqualsOperator('$title', "\$GLOBALS['xoopsModule']->name()", '.', false, $t . "\t");
120
-        $ret .= $xc->getXcTplAssign('xoops_pagetitle', '$title', true, $t . "\t");
121
-        $ret .= $pc->getPhpCodeCommentLine('Description', null, $t . "\t");
122
-        $ret .= $uc->getUserAddMeta('description', $language, 'SUBMIT_PROPOSER', $t . "\t");
123
-        $ret .= $pc->getPhpCodeCommentLine('Form Create', null, $t . "\t");
124
-        $ret .= $xc->getXcObjHandlerCreate($tableName, $t . "\t");
125
-        $ret .= $xc->getXcGetForm('form', $tableName, 'Obj', $t . "\t");
126
-        $ret .= $xc->getXcTplAssign('form', '$form->render()', true, $t . "\t");
115
+        $ret .= $xc->getXcEqualsOperator('$navigation', "{$language}SUBMIT_PROPOSER", '', false, $t."\t");
116
+        $ret .= $xc->getXcTplAssign('navigation', '$navigation', true, $t."\t");
117
+        $ret .= $pc->getPhpCodeCommentLine('Title of page', null, $t."\t");
118
+        $ret .= $xc->getXcEqualsOperator('$title', "{$language}SUBMIT_PROPOSER . ' - '", '', false, $t."\t");
119
+        $ret .= $xc->getXcEqualsOperator('$title', "\$GLOBALS['xoopsModule']->name()", '.', false, $t."\t");
120
+        $ret .= $xc->getXcTplAssign('xoops_pagetitle', '$title', true, $t."\t");
121
+        $ret .= $pc->getPhpCodeCommentLine('Description', null, $t."\t");
122
+        $ret .= $uc->getUserAddMeta('description', $language, 'SUBMIT_PROPOSER', $t."\t");
123
+        $ret .= $pc->getPhpCodeCommentLine('Form Create', null, $t."\t");
124
+        $ret .= $xc->getXcObjHandlerCreate($tableName, $t."\t");
125
+        $ret .= $xc->getXcGetForm('form', $tableName, 'Obj', $t."\t");
126
+        $ret .= $xc->getXcTplAssign('form', '$form->render()', true, $t."\t");
127 127
 
128 128
         return $ret;
129 129
     }
@@ -149,8 +149,8 @@  discard block
 block discarded – undo
149 149
         $xoopsSecurityCheck = $xc->getXcSecurityCheck();
150 150
         $securityError      = $xc->getXcSecurityErrors();
151 151
         $implode            = $pc->getPhpCodeImplode(',', $securityError);
152
-        $redirectError      = $xc->getXcRedirectHeader($tableName, '', '3', $implode, true, $t . "\t");
153
-        $ret                .= $pc->getPhpCodeConditions('!' . $xoopsSecurityCheck, '', '', $redirectError, false, $t);
152
+        $redirectError      = $xc->getXcRedirectHeader($tableName, '', '3', $implode, true, $t."\t");
153
+        $ret                .= $pc->getPhpCodeConditions('!'.$xoopsSecurityCheck, '', '', $redirectError, false, $t);
154 154
         $ret                .= $xc->getXcObjHandlerCreate($tableName, $t);
155 155
         $autoincrement      = in_array(1, $tableAutoincrement) ? $tableAutoincrement : 0;
156 156
         if (in_array(1, $tableSubmit)) {
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
         }
159 159
         $ret       .= $pc->getPhpCodeCommentLine('Insert Data', null, $t);
160 160
         $insert    = $xc->getXcInsert($tableName, $tableName, 'Obj', 'Handler');
161
-        $confirmOk = $xc->getXcRedirectHeader('index', '', '2', "{$language}FORM_OK", true, $t . "\t");
161
+        $confirmOk = $xc->getXcRedirectHeader('index', '', '2', "{$language}FORM_OK", true, $t."\t");
162 162
         $ret       .= $pc->getPhpCodeConditions($insert, '', '', $confirmOk, false, $t);
163 163
 
164 164
         $ret .= $pc->getPhpCodeCommentLine('Get Form Error', null, $t);
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
         $fields = $this->getTableFields($tableMid, $tableId);
207 207
         $cases  = [
208 208
             'form' => [$this->getUserSubmitForm($tableName, $language, $t)],
209
-            'save' => [$this->getUserSubmitSave($moduleDirname, $fields, $tableName, $tableSoleName, $tableSubmit, $tableAutoincrement, $language, $t . "\t")],
209
+            'save' => [$this->getUserSubmitSave($moduleDirname, $fields, $tableName, $tableSoleName, $tableSubmit, $tableAutoincrement, $language, $t."\t")],
210 210
         ];
211 211
 
212 212
         return $xc->getXcSwitch('op', $cases, true, false, $t);
Please login to merge, or discard this patch.
class/Files/User/UserIndex.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -133,12 +133,12 @@  discard block
 block discarded – undo
133 133
             $contentIf .= $pc->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/tree', true, false, 'include', "\t");
134 134
             //$contentIf .= $cc->getClassXoopsObjectTree('mytree', $tableName, $fieldId, $fieldParent, "\t");
135 135
             $contentIf .= $pc->getPhpCodeArray($tableName, "\t");
136
-            $foreach   = $xc->getXcGetValues($tableName, $tableSoleName . 'Values', $tableFieldname, false, "\t");
136
+            $foreach = $xc->getXcGetValues($tableName, $tableSoleName.'Values', $tableFieldname, false, "\t");
137 137
             $foreach   .= $pc->getPhpCodeArray('acount', ["'count'", '$count']);
138
-            $foreach   .= $pc->getPhpCodeArrayType($tableName, 'merge', $tableSoleName . 'Values', '$acount');
138
+            $foreach   .= $pc->getPhpCodeArrayType($tableName, 'merge', $tableSoleName.'Values', '$acount');
139 139
             $foreach   .= $this->getSimpleString('++$count;', "\t\t");
140 140
             $contentIf .= $pc->getPhpCodeForeach("{$tableName}All", true, false, $tableFieldname, $foreach, "\t");
141
-            $contentIf .= $xc->getXcTplAssign($tableName, '$' . $tableName, true, "\t");
141
+            $contentIf .= $xc->getXcTplAssign($tableName, '$'.$tableName, true, "\t");
142 142
             $contentIf .= $pc->getPhpCodeUnset($tableName, "\t");
143 143
             $getConfig = $xc->getXcGetConfig($moduleDirname, 'numb_col');
144 144
             $contentIf .= $xc->getXcTplAssign('numb_col', $getConfig, true, "\t");
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
         $foreach  .= $xc->getXcGetVar('keywords[]', "{$tableName}All[\$i]", $fieldMain, false, "\t\t");
195 195
         $foreach  .= $this->getSimpleString('++$count;', "\t\t");
196 196
         $condIf   .= $pc->getPhpCodeForeach("{$tableName}All", true, false, 'i', $foreach, "\t");
197
-        $condIf   .= $xc->getXcTplAssign($tableName, '$' . $tableName, true, "\t");
197
+        $condIf   .= $xc->getXcTplAssign($tableName, '$'.$tableName, true, "\t");
198 198
         $condIf   .= $pc->getPhpCodeUnset($tableName, "\t");
199 199
         $condIf   .= $xc->getXcPageNav($tableName, "\t");
200 200
         $thereare = $pc->getPhpCodeSprintf("{$language}INDEX_THEREARE", "\${$tableName}Count");
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
         $moduleDirname = $module->getVar('mod_dirname');
252 252
         $language      = $this->getLanguage($moduleDirname, 'MA');
253 253
         $content       = $this->getHeaderFilesComments($module, $filename);
254
-        $content       .= $this->getTemplateHeaderFile($moduleDirname);
254
+        $content .= $this->getTemplateHeaderFile($moduleDirname);
255 255
         foreach (array_keys($tables) as $t) {
256 256
             $tableId         = $tables[$t]->getVar('table_id');
257 257
             $tableMid        = $tables[$t]->getVar('table_mid');
Please login to merge, or discard this patch.
class/Files/User/UserListTag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
         $filename      = $this->getFileName();
93 93
         $moduleDirname = $module->getVar('mod_dirname');
94 94
         $content       = $this->getHeaderFilesComments($module, $filename);
95
-        $content       .= $this->getUserListTag();
95
+        $content .= $this->getUserListTag();
96 96
 
97 97
         $this->create($moduleDirname, '/', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
98 98
 
Please login to merge, or discard this patch.
class/Files/User/UserBroken.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
         $ret       .= $pc->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'header', true);
91 91
         $ret       .= $xc->getXcAddStylesheet();
92 92
         $ret       .= $pc->getPhpCodeCommentLine('Redirection if not permissions');
93
-        $condIf    = $xc->getXcRedirectHeader('index', '', '2', '_NOPERM', true, "\t");
93
+        $condIf = $xc->getXcRedirectHeader('index', '', '2', '_NOPERM', true, "\t");
94 94
         $condIf    .= $this->getSimpleString('exit();', "\t");
95 95
         $ret       .= $pc->getPhpCodeConditions('$permSubmit', ' === ', 'false', $condIf);
96 96
 
Please login to merge, or discard this patch.
class/Files/User/UserFooter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
         $moduleDirname = $module->getVar('mod_dirname');
105 105
         $filename      = $this->getFileName();
106 106
         $content       = $this->getHeaderFilesComments($module, $filename);
107
-        $content       .= $this->getUserFooter($moduleDirname);
107
+        $content .= $this->getUserFooter($moduleDirname);
108 108
 
109 109
         $this->create($moduleDirname, '/', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
110 110
 
Please login to merge, or discard this patch.
class/Files/User/UserViewTag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
         $moduleDirname = $module->getVar('mod_dirname');
94 94
         $language      = $this->getLanguage($moduleDirname, 'MA');
95 95
         $content       = $this->getHeaderFilesComments($module, $filename);
96
-        $content       .= $this->getUserViewTag();
96
+        $content .= $this->getUserViewTag();
97 97
 
98 98
         $this->create($moduleDirname, '/', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
99 99
 
Please login to merge, or discard this patch.
class/Files/User/UserPrint.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -156,9 +156,9 @@  discard block
 block discarded – undo
156 156
         $ret            .= $this->phpcode->getPhpCodeForeach($tableSoleName, false, 'k', 'v', $contentForeach);
157 157
         $ret            .= $this->xc->getXcTplAssign('xoops_sitename', "\$GLOBALS['xoopsConfig']['sitename']");
158 158
         $getVar         = $this->xc->getXcGetVar('', $tableSoleName, $fieldMain, true);
159
-        $stripTags      = $this->phpcode->getPhpCodeStripTags('', $getVar . ' - ' . "{$language}PRINT" . ' - ' . "\$GLOBALS['xoopsModule']->name()", true);
159
+        $stripTags      = $this->phpcode->getPhpCodeStripTags('', $getVar.' - '."{$language}PRINT".' - '."\$GLOBALS['xoopsModule']->name()", true);
160 160
         $ret            .= $this->xc->getXcTplAssign('xoops_pagetitle', $stripTags);
161
-        $ret            .= $this->xc->getXcTplDisplay($tableName . '_print.tpl', '', false);
161
+        $ret            .= $this->xc->getXcTplDisplay($tableName.'_print.tpl', '', false);
162 162
 
163 163
         return $ret;
164 164
     }
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
         $moduleDirname = $module->getVar('mod_dirname');
176 176
         $language      = $this->getLanguage($moduleDirname, 'MA');
177 177
         $content       = $this->getHeaderFilesComments($module, $filename);
178
-        $content       .= $this->getUserPrint($moduleDirname, $language);
178
+        $content .= $this->getUserPrint($moduleDirname, $language);
179 179
 
180 180
         $this->create($moduleDirname, '/', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
181 181
 
Please login to merge, or discard this patch.