Completed
Push — master ( 6b7a6d...74143b )
by Gino
20s
created
admin/tables.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
             $tablesObj = &$tables->create();
133 133
         }
134 134
         $tableOrder = XoopsRequest::getInt('table_order');
135
-        $order = $tablesObj->isNew() ? $tableOrder + 1 : $tableOrder;
135
+        $order = $tablesObj->isNew() ? $tableOrder+1 : $tableOrder;
136 136
         // Form save tables
137 137
         $tablesObj->setVars(array(
138 138
                                 'table_mid' => $tableMid,
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
                                 'table_category' => ((1 == $_REQUEST['table_category']) ? 1 : 0),
142 142
                                 'table_fieldname' => $tableFieldname,
143 143
                                 'table_nbfields' => $tableNumbFields,
144
-                                'table_order' => $order, ));
144
+                                'table_order' => $order,));
145 145
         //Form table_image
146 146
         include_once XOOPS_ROOT_PATH.'/class/uploader.php';
147 147
         $uploaddir = is_dir(XOOPS_ICONS32_PATH) ? XOOPS_ICONS32_PATH : TDMC_UPLOAD_IMGTAB_PATH;
Please login to merge, or discard this patch.
admin/morefiles.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
                                  'file_mid' => $_POST['file_mid'],
95 95
                                  'file_name' => $_POST['file_name'],
96 96
                                  'file_extension' => $_POST['file_extension'],
97
-                                 'file_infolder' => $_POST['file_infolder'], ));
97
+                                 'file_infolder' => $_POST['file_infolder'],));
98 98
 
99 99
         if ($tdmcreate->getHandler('addfiles')->insert($addfilesObj)) {
100 100
             if ($addfilesObj->isNew()) {
Please login to merge, or discard this patch.
class/files/user/UserPrint.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
             if (strpos($fieldName, '_')) {
100 100
                 $str = strpos($fieldName, '_');
101 101
                 if ($str !== false) {
102
-                    $rpFieldName = substr($fieldName, $str + 1, strlen($fieldName));
102
+                    $rpFieldName = substr($fieldName, $str+1, strlen($fieldName));
103 103
                 }
104 104
             }
105 105
             $lpFieldName = substr($fieldName, 0, strpos($fieldName, '_'));
Please login to merge, or discard this patch.
class/files/admin/AdminMenu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
         $ret = $this->getAdminMenuArray($dirname);
119 119
         $mod = array('$moduleHandler' => "xoops_gethandler('module')",
120 120
                     '$xoopsModule' => 'XoopsModule::getByDirname($dirname)',
121
-                    '$moduleInfo' => "\$moduleHandler->get(\$xoopsModule->getVar('mid'))", );
121
+                    '$moduleInfo' => "\$moduleHandler->get(\$xoopsModule->getVar('mid'))",);
122 122
         $ret .= $this->getAdminMenuArray($mod, false, true);
123 123
         $sys = array('$sysPathIcon32' => "\$moduleInfo->getInfo('sysicons32')");
124 124
         $ret .= $this->getAdminMenuArray($sys);
Please login to merge, or discard this patch.
class/files/admin/AdminPages.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -376,7 +376,7 @@
 block discarded – undo
376 376
                         'new' => array($new),
377 377
                         'save' => array($save),
378 378
                         'edit' => array($edit),
379
-                        'delete' => array($delete), );
379
+                        'delete' => array($delete),);
380 380
         $content .= $this->getAdminPagesSwitch($cases);
381 381
         $content .= $this->getInclude('footer');
382 382
         //
Please login to merge, or discard this patch.
class/files/TDMCreateFile.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
         if (strrpos($path, '\\')) {
261 261
             $str = strrpos($path, '\\');
262 262
             if ($str !== false) {
263
-                return substr($path, $str + 1, strlen($path));
263
+                return substr($path, $str+1, strlen($path));
264 264
             } else {
265 265
                 return substr($path, $str, strlen($path));
266 266
             }
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
         if (strpos($string, '_')) {
389 389
             $str = strpos($string, '_');
390 390
             if ($str !== false) {
391
-                $ret = substr($string, $str + 1, strlen($string));
391
+                $ret = substr($string, $str+1, strlen($string));
392 392
 
393 393
                 return $ret;
394 394
             }
@@ -587,7 +587,7 @@  discard block
 block discarded – undo
587 587
         $ret .= "*/\n";
588 588
         $copyright = array($name => 'module for xoops', '' => '', '@copyright  ' => '   module for xoops', '@license   ' => "    {$license}", '@package   ' => "    {$dirname}",
589 589
                             '@since    ' => "     {$since}", '@min_xoops   ' => "  {$minXoops}", '@author    ' => "    {$author} - Email:<{$authorMail}> - Website:<{$authorWebsiteUrl}>",
590
-                            '@version    ' => "   \$Id: {$version} {$fileName} {$subversion} {$date}Z {$credits} \$", );
590
+                            '@version    ' => "   \$Id: {$version} {$fileName} {$subversion} {$date}Z {$credits} \$",);
591 591
         $ret .= TDMCreatePhpCode::getInstance()->getPhpCodeCommentMultiLine($copyright);
592 592
 
593 593
         return $ret;
Please login to merge, or discard this patch.
class/logo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
 
135 135
         // Write text
136 136
         $textColor = imagecolorallocate($imageModule, 0, 0, 0);
137
-        $spaceToBorder = (92 - strlen($moduleDirname) * 7.5) / 2;
137
+        $spaceToBorder = (92-strlen($moduleDirname) * 7.5) / 2;
138 138
         imagefttext($imageModule, 8.5, 0, $spaceToBorder, 45, $textColor, $font, ucfirst($moduleDirname), array());
139 139
 
140 140
         imagecopy($imageModule, $imageIcon, 29, 2, 0, 0, 32, 32);
Please login to merge, or discard this patch.
class/files/classes/ClassFormElements.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -130,9 +130,9 @@
 block discarded – undo
130 130
         $ret .= $pc->getPhpCodeArray('editorConfigs', null, false, "\t\t");
131 131
         $getConfig = $xc->getXcGetConfig($moduleDirname, $moduleDirname.'_editor_'.$rpFieldName);
132 132
         $configs = array('name' => "'{$fieldName}'", 'value' => "\$this->getVar('{$fieldName}', 'e')", 'rows' => 5, 'cols' => 40,
133
-                        'width' => "'100%'", 'height' => "'400px'", 'editor' => $getConfig, );
133
+                        'width' => "'100%'", 'height' => "'400px'", 'editor' => $getConfig,);
134 134
         foreach ($configs as $c => $d) {
135
-            $ret .= $xc->getXcEqualsOperator("\$editorConfigs['{$c}']", $d,  null, false, "\t\t");
135
+            $ret .= $xc->getXcEqualsOperator("\$editorConfigs['{$c}']", $d, null, false, "\t\t");
136 136
         }
137 137
         $formEditor = $cc->getClassXoopsFormEditor('', $language, $fieldName, 'editorConfigs', true);
138 138
         $ret .= $cc->getClassAddElement('form', $formEditor.$required);
Please login to merge, or discard this patch.
class/files/admin/AdminPermissions.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         $ret .= $xc->getXcXoopsRequest('op', 'op', 'global');
101 101
         $ret .= $xc->getXcLoad('XoopsFormLoader');
102 102
         $optionsSelect = array('global' => "{$language}PERMISSIONS_GLOBAL", 'approve' => "{$language}PERMISSIONS_APPROVE",
103
-                                'submit' => "{$language}PERMISSIONS_SUBMIT", 'view' => "{$language}PERMISSIONS_VIEW", );
103
+                                'submit' => "{$language}PERMISSIONS_SUBMIT", 'view' => "{$language}PERMISSIONS_VIEW",);
104 104
         $formSelect = $xc->getXoopsFormSelectExtraOptions('formSelect', '\'\'', 'op', $optionsSelect, 'onchange="document.fselperm.submit()"');
105 105
         $ret .= $cc->getXoopsSimpleForm('permTableForm', 'formSelect', $formSelect, '\'\'', 'fselperm', 'permissions');
106 106
 
@@ -120,16 +120,16 @@  discard block
 block discarded – undo
120 120
         $cases = array('global' => array("\$formTitle = {$language}PERMISSIONS_GLOBAL;",
121 121
                                         "\$permName = '{$moduleDirname}_ac';",
122 122
                                         "\$permDesc = {$language}PERMISSIONS_GLOBAL_DESC;",
123
-                                        "\$globalPerms = array( '4' => {$language}PERMISSIONS_GLOBAL_4, '8' => {$language}PERMISSIONS_GLOBAL_8, '16' => {$language}PERMISSIONS_GLOBAL_16 );", ),
123
+                                        "\$globalPerms = array( '4' => {$language}PERMISSIONS_GLOBAL_4, '8' => {$language}PERMISSIONS_GLOBAL_8, '16' => {$language}PERMISSIONS_GLOBAL_16 );",),
124 124
                         'approve' => array("\$formTitle = {$language}PERMISSIONS_APPROVE;",
125 125
                                         "\$permName = '{$moduleDirname}_approve';",
126
-                                        "\$permDesc = {$language}PERMISSIONS_APPROVE_DESC;", ),
126
+                                        "\$permDesc = {$language}PERMISSIONS_APPROVE_DESC;",),
127 127
                         'submit' => array("\$formTitle = {$language}PERMISSIONS_SUBMIT;",
128 128
                                         "\$permName = '{$moduleDirname}_submit';",
129
-                                        "\$permDesc = {$language}PERMISSIONS_SUBMIT_DESC;", ),
129
+                                        "\$permDesc = {$language}PERMISSIONS_SUBMIT_DESC;",),
130 130
                         'view' => array("\$formTitle = {$language}PERMISSIONS_VIEW;",
131 131
                                         "\$permName = '{$moduleDirname}_view';",
132
-                                        "\$permDesc = {$language}PERMISSIONS_VIEW_DESC;", ), );
132
+                                        "\$permDesc = {$language}PERMISSIONS_VIEW_DESC;",),);
133 133
 
134 134
         $contentSwitch = $pc->getPhpCodeCaseSwitch($cases, true, false, "\t");
135 135
 
Please login to merge, or discard this patch.