Completed
Push — master ( 6b7a6d...74143b )
by Gino
20s
created
class/files/user/UserBroken.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@
 block discarded – undo
202 202
         $tableMid = $table->getVar('table_mid');
203 203
         $fields = $this->getTableFields($tableMid, $tableId);
204 204
         $cases = array('form' => array($this->getUserBrokenForm($tableName, $language)),
205
-                    'save' => array($this->getUserBrokenSave($moduleDirname, $fields, $tableName, $tableSolename, $tableAutoincrement, $language)), );
205
+                    'save' => array($this->getUserBrokenSave($moduleDirname, $fields, $tableName, $tableSolename, $tableAutoincrement, $language)),);
206 206
 
207 207
         return $xc->getXcSwitch('op', $cases, true);
208 208
     }
Please login to merge, or discard this patch.
class/files/language/LanguageModinfo.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
             }
293 293
         }
294 294
         $getDefinesConf = array('NUMB_COL' => 'Number Columns', 'NUMB_COL_DESC' => 'Number Columns to View.', 'DIVIDEBY' => 'Divide By', 'DIVIDEBY_DESC' => 'Divide by columns number.',
295
-                                'TABLE_TYPE' => 'Table Type', 'TABLE_TYPE_DESC' => 'Table Type is the bootstrap html table.', 'PANEL_TYPE' => 'Panel Type', 'PANEL_TYPE_DESC' => 'Panel Type is the bootstrap html div.', 'IDPAYPAL' => 'Paypal ID', 'IDPAYPAL_DESC' => 'Insert here your PayPal ID for donactions.', 'ADVERTISE' => 'Advertisement Code', 'ADVERTISE_DESC' => 'Insert here the advertisement code', 'MAINTAINEDBY' => 'Maintained By', 'MAINTAINEDBY_DESC' => 'Allow url of support site or community', 'BOOKMARKS' => 'Social Bookmarks', 'BOOKMARKS_DESC' => 'Show Social Bookmarks in the single page', 'FACEBOOK_COMMENTS' => 'Facebook comments', 'FACEBOOK_COMMENTS_DESC' => 'Allow Facebook comments in the single page', 'DISQUS_COMMENTS' => 'Disqus comments', 'DISQUS_COMMENTS_DESC' => 'Allow Disqus comments in the single page', );
295
+                                'TABLE_TYPE' => 'Table Type', 'TABLE_TYPE_DESC' => 'Table Type is the bootstrap html table.', 'PANEL_TYPE' => 'Panel Type', 'PANEL_TYPE_DESC' => 'Panel Type is the bootstrap html div.', 'IDPAYPAL' => 'Paypal ID', 'IDPAYPAL_DESC' => 'Insert here your PayPal ID for donactions.', 'ADVERTISE' => 'Advertisement Code', 'ADVERTISE_DESC' => 'Insert here the advertisement code', 'MAINTAINEDBY' => 'Maintained By', 'MAINTAINEDBY_DESC' => 'Allow url of support site or community', 'BOOKMARKS' => 'Social Bookmarks', 'BOOKMARKS_DESC' => 'Show Social Bookmarks in the single page', 'FACEBOOK_COMMENTS' => 'Facebook comments', 'FACEBOOK_COMMENTS_DESC' => 'Allow Facebook comments in the single page', 'DISQUS_COMMENTS' => 'Disqus comments', 'DISQUS_COMMENTS_DESC' => 'Allow Disqus comments in the single page',);
296 296
         foreach ($getDefinesConf as $defc => $descc) {
297 297
             $ret .= $df->getDefine($language, $defc, $descc);
298 298
         }
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
         $stuTableSoleName = strtoupper($tableSoleName);
318 318
         $ucfTableSoleName = ucfirst($tableSoleName);
319 319
         $getDefinesNotif = array('GLOBAL_NOTIFY' => 'Global notify', 'GLOBAL_NOTIFY_DESC' => 'Global notify desc', 'CATEGORY_NOTIFY' => 'Category notify',
320
-                                'CATEGORY_NOTIFY_DESC' => 'Category notify desc', $stuTableSoleName.'_NOTIFY' => $ucfTableSoleName.' notify', $stuTableSoleName.'_NOTIFY_DESC' => $ucfTableSoleName.' notify desc', 'GLOBAL_NEWCATEGORY_NOTIFY' => 'Global newcategory notify', 'GLOBAL_NEWCATEGORY_NOTIFY_CAPTION' => 'Global newcategory notify caption', 'GLOBAL_NEWCATEGORY_NOTIFY_DESC' => 'Global newcategory notify desc', 'GLOBAL_NEWCATEGORY_NOTIFY_SUBJECT' => 'Global newcategory notify subject', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY' => 'Global '.$tableSoleName.'modify notify', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY_CAPTION' => 'Global '.$tableSoleName.' modify notify caption', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY_DESC' => 'Global '.$tableSoleName.'modify notify desc', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY_SUBJECT' => 'Global '.$tableSoleName.' modify notify subject', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY' => 'Global '.$tableSoleName.' broken notify', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY_CAPTION' => 'Global '.$tableSoleName.'broken notify caption', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY_DESC' => 'Global '.$tableSoleName.'broken notify desc', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY_SUBJECT' => 'Global '.$tableSoleName.'broken notify subject', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY' => 'Global '.$tableSoleName.' submit notify', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY_CAPTION' => 'Global '.$tableSoleName.' submit notify caption', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY_DESC' => 'Global '.$tableSoleName.'submit notify desc', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY_SUBJECT' => 'Global '.$tableSoleName.'submit notify subject', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY' => 'Global new'.$tableSoleName.' notify', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY_CAPTION' => 'Global new'.$tableSoleName.' notify caption', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY_DESC' => 'Global new'.$tableSoleName.' notify desc', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY_SUBJECT' => 'Global new'.$tableSoleName.' notify subject', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY' => 'Category '.$tableSoleName.'submit notify', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY_CAPTION' => 'Category '.$tableSoleName.' submit notify caption', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY_DESC' => 'Category '.$tableSoleName.' submit notify desc', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY_SUBJECT' => 'Category '.$tableSoleName.' submit notify subject', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY' => 'Category new'.$tableSoleName.' notify', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY_CAPTION' => 'Category new'.$tableSoleName.' notify caption', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY_DESC' => 'Category new'.$tableSoleName.' notify desc', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY_SUBJECT' => 'Category new'.$tableSoleName.' notify subject', $stuTableSoleName.'_APPROVE_NOTIFY' => $ucfTableSoleName.' approve notify', $stuTableSoleName.'_APPROVE_NOTIFY_CAPTION' => $ucfTableSoleName.' approve notify caption', $stuTableSoleName.'_APPROVE_NOTIFY_DESC' => $ucfTableSoleName.' approve notify desc', $stuTableSoleName.'_APPROVE_NOTIFY_SUBJECT' => $ucfTableSoleName.' approve notify subject', );
320
+                                'CATEGORY_NOTIFY_DESC' => 'Category notify desc', $stuTableSoleName.'_NOTIFY' => $ucfTableSoleName.' notify', $stuTableSoleName.'_NOTIFY_DESC' => $ucfTableSoleName.' notify desc', 'GLOBAL_NEWCATEGORY_NOTIFY' => 'Global newcategory notify', 'GLOBAL_NEWCATEGORY_NOTIFY_CAPTION' => 'Global newcategory notify caption', 'GLOBAL_NEWCATEGORY_NOTIFY_DESC' => 'Global newcategory notify desc', 'GLOBAL_NEWCATEGORY_NOTIFY_SUBJECT' => 'Global newcategory notify subject', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY' => 'Global '.$tableSoleName.'modify notify', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY_CAPTION' => 'Global '.$tableSoleName.' modify notify caption', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY_DESC' => 'Global '.$tableSoleName.'modify notify desc', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY_SUBJECT' => 'Global '.$tableSoleName.' modify notify subject', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY' => 'Global '.$tableSoleName.' broken notify', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY_CAPTION' => 'Global '.$tableSoleName.'broken notify caption', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY_DESC' => 'Global '.$tableSoleName.'broken notify desc', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY_SUBJECT' => 'Global '.$tableSoleName.'broken notify subject', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY' => 'Global '.$tableSoleName.' submit notify', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY_CAPTION' => 'Global '.$tableSoleName.' submit notify caption', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY_DESC' => 'Global '.$tableSoleName.'submit notify desc', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY_SUBJECT' => 'Global '.$tableSoleName.'submit notify subject', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY' => 'Global new'.$tableSoleName.' notify', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY_CAPTION' => 'Global new'.$tableSoleName.' notify caption', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY_DESC' => 'Global new'.$tableSoleName.' notify desc', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY_SUBJECT' => 'Global new'.$tableSoleName.' notify subject', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY' => 'Category '.$tableSoleName.'submit notify', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY_CAPTION' => 'Category '.$tableSoleName.' submit notify caption', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY_DESC' => 'Category '.$tableSoleName.' submit notify desc', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY_SUBJECT' => 'Category '.$tableSoleName.' submit notify subject', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY' => 'Category new'.$tableSoleName.' notify', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY_CAPTION' => 'Category new'.$tableSoleName.' notify caption', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY_DESC' => 'Category new'.$tableSoleName.' notify desc', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY_SUBJECT' => 'Category new'.$tableSoleName.' notify subject', $stuTableSoleName.'_APPROVE_NOTIFY' => $ucfTableSoleName.' approve notify', $stuTableSoleName.'_APPROVE_NOTIFY_CAPTION' => $ucfTableSoleName.' approve notify caption', $stuTableSoleName.'_APPROVE_NOTIFY_DESC' => $ucfTableSoleName.' approve notify desc', $stuTableSoleName.'_APPROVE_NOTIFY_SUBJECT' => $ucfTableSoleName.' approve notify subject',);
321 321
         foreach ($getDefinesNotif as $defn => $descn) {
322 322
             $ret .= $df->getDefine($language, $defn, $descn);
323 323
         }
Please login to merge, or discard this patch.
class/files/user/UserSubmit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -209,7 +209,7 @@
 block discarded – undo
209 209
         $xc = TDMCreateXoopsCode::getInstance();
210 210
         $fields = $this->getTableFields($tableMid, $tableId);
211 211
         $cases = array('form' => array($this->getUserSubmitForm($tableName, $language, $t)),
212
-                    'save' => array($this->getUserSubmitSave($moduleDirname, $fields, $tableName, $tableSolename, $tableSubmit, $tableAutoincrement, $language, $t)), );
212
+                    'save' => array($this->getUserSubmitSave($moduleDirname, $fields, $tableName, $tableSolename, $tableSubmit, $tableAutoincrement, $language, $t)),);
213 213
 
214 214
         return $xc->getXcSwitch('op', $cases, true, false, $t);
215 215
     }
Please login to merge, or discard this patch.
class/files/user/UserXoopsVersion.php 1 patch
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
                             'demo_site_url' => "'{$module->getVar('mod_demo_site_url')}'", 'demo_site_name' => "'{$module->getVar('mod_demo_site_name')}'", 'support_url' => "'{$module->getVar('mod_support_url')}'",
145 145
                             'support_name' => "'{$module->getVar('mod_support_name')}'", 'module_website_url' => "'{$module->getVar('mod_website_url')}'", 'module_website_name' => "'{$module->getVar('mod_website_name')}'", 'release' => "'{$module->getVar('mod_release')}'", 'module_status' => "'{$module->getVar('mod_status')}'",
146 146
                             'system_menu' => '1', 'hasAdmin' => $ha, 'hasMain' => $hm, 'adminindex' => "'admin/index.php'", 'adminmenu' => "'admin/menu.php'",
147
-                            'onInstall' => "'include/install.php'", 'onUpdate' => "'include/update.php'", );
147
+                            'onInstall' => "'include/install.php'", 'onUpdate' => "'include/update.php'",);
148 148
 
149 149
         $ret .= $uCodeVHeader->getUserModVersion(1, $descriptions);
150 150
 
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
         $ret = $phpCodeVTBlocks->getPhpCodeCommentLine("{$ucfTableName}");
446 446
         $blocks = array('file' => "'{$tableName}.php'", 'name' => "{$language}{$stuTableName}_BLOCK_{$stuTableSoleName}", 'description' => "{$language}{$stuTableName}_BLOCK_{$stuTableSoleName}_DESC",
447 447
                         'show_func' => "'b_{$moduleDirname}_{$tableName}_show'", 'edit_func' => "'b_{$moduleDirname}_{$tableName}_edit'",
448
-                        'template' => "'{$moduleDirname}_block_{$tableName}.tpl'", 'options' => "'{$type}|5|25|0'", );
448
+                        'template' => "'{$moduleDirname}_block_{$tableName}.tpl'", 'options' => "'{$type}|5|25|0'",);
449 449
         $ret .= $uCodeVTBlocks->getUserModVersion(3, $blocks, 'blocks', '$b');
450 450
         $ret .= $this->getSimpleString('++$b;');
451 451
 
@@ -485,7 +485,7 @@  discard block
 block discarded – undo
485 485
                 $ret .= $xCodeVConfig->getXcLoad('xoopseditorhandler');
486 486
                 $ret .= $xCodeVConfig->getXcEqualsOperator('$editorHandler'.$ucfFieldName, 'XoopsEditorHandler::getInstance()');
487 487
                 $editor = array('name' => "'{$moduleDirname}_editor_{$rpFieldName}'", 'title' => "'{$language}EDITOR_{$stuFieldName}'", 'description' => "'{$language}EDITOR_{$stuFieldName}_DESC'",
488
-                        'formtype' => "'select'", 'valuetype' => "'text'", 'default' => "'dhtml'", 'options' => 'array_flip($editorHandler'.$ucfFieldName.'->getList())', );
488
+                        'formtype' => "'select'", 'valuetype' => "'text'", 'default' => "'dhtml'", 'options' => 'array_flip($editorHandler'.$ucfFieldName.'->getList())',);
489 489
                 $ret .= $uCodeVConfig->getUserModVersion(3, $editor, 'config', '$c');
490 490
                 $ret .= $this->getSimpleString('++$c;');
491 491
             }
@@ -498,7 +498,7 @@  discard block
 block discarded – undo
498 498
             $group = $xCodeVConfig->getXcEqualsOperator('$groups[$group] ', '$key');
499 499
             $ret .= $phpCodeVConfig->getPhpCodeForeach('xoopsGroups', false, 'key', 'group', $group);
500 500
             $groups = array('name' => "'groups'", 'title' => "'{$language}GROUPS'", 'description' => "'{$language}GROUPS_DESC'",
501
-                        'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => '$groups', 'options' => '$groups', );
501
+                        'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => '$groups', 'options' => '$groups',);
502 502
             $ret .= $uCodeVConfig->getUserModVersion(3, $groups, 'config', '$c');
503 503
             $ret .= $this->getSimpleString('++$c;');
504 504
             $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Get Admin groups');
@@ -509,14 +509,14 @@  discard block
 block discarded – undo
509 509
             $adminGroup = $xCodeVConfig->getXcEqualsOperator('$adminGroups[$adminGroup] ', '$key');
510 510
             $ret .= $phpCodeVConfig->getPhpCodeForeach('adminXoopsGroups', false, 'key', 'adminGroup', $adminGroup);
511 511
             $adminGroups = array('name' => "'admin_groups'", 'title' => "'{$language}GROUPS'", 'description' => "'{$language}GROUPS_DESC'",
512
-                        'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => '$adminGroups', 'options' => '$adminGroups', );
512
+                        'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => '$adminGroups', 'options' => '$adminGroups',);
513 513
             $ret .= $uCodeVConfig->getUserModVersion(3, $adminGroups, 'config', '$c');
514 514
             $ret .= $this->getSimpleString('++$c;');
515 515
         }
516 516
         $keyword = implode(', ', $this->getKeywords());
517 517
         $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Keywords');
518 518
         $arrayKeyword = array('name' => "'keywords'", 'title' => "'{$language}KEYWORDS'", 'description' => "'{$language}KEYWORDS_DESC'",
519
-                        'formtype' => "'textbox'", 'valuetype' => "'text'", 'default' => "'{$moduleDirname}, {$keyword}'", );
519
+                        'formtype' => "'textbox'", 'valuetype' => "'text'", 'default' => "'{$moduleDirname}, {$keyword}'",);
520 520
         $ret .= $uCodeVConfig->getUserModVersion(3, $arrayKeyword, 'config', '$c');
521 521
         $ret .= $this->getSimpleString('++$c;');
522 522
         unset($this->keywords);
@@ -527,80 +527,80 @@  discard block
 block discarded – undo
527 527
         if (in_array(10, $fieldElement) || in_array(11, $fieldElement) || in_array(12, $fieldElement) || in_array(13, $fieldElement) || in_array(14, $fieldElement)) {
528 528
             $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Uploads : maxsize of image');
529 529
             $maxsize = array('name' => "'maxsize'", 'title' => "'{$language}MAXSIZE'", 'description' => "'{$language}MAXSIZE_DESC'",
530
-                'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '5000000', );
530
+                'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '5000000',);
531 531
             $ret .= $uCodeVConfig->getUserModVersion(3, $maxsize, 'config', '$c');
532 532
             $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Uploads : mimetypes of image');
533 533
             $ret .= $this->getSimpleString('++$c;');
534 534
             $mimetypes = array('name' => "'mimetypes'", 'title' => "'{$language}MIMETYPES'", 'description' => "'{$language}MIMETYPES_DESC'",
535 535
                 'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => "array('image/gif', 'image/jpeg', 'image/png')",
536
-                'options' => "array('bmp' => 'image/bmp','gif' => 'image/gif','pjpeg' => 'image/pjpeg', 'jpeg' => 'image/jpeg','jpg' => 'image/jpg','jpe' => 'image/jpe', 'png' => 'image/png')", );
536
+                'options' => "array('bmp' => 'image/bmp','gif' => 'image/gif','pjpeg' => 'image/pjpeg', 'jpeg' => 'image/jpeg','jpg' => 'image/jpg','jpe' => 'image/jpe', 'png' => 'image/png')",);
537 537
             $ret .= $uCodeVConfig->getUserModVersion(3, $mimetypes, 'config', '$c');
538 538
             $ret .= $this->getSimpleString('++$c;');
539 539
         }
540 540
         if (1 == $table->getVar('table_admin')) {
541 541
             $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Admin pager');
542 542
             $adminPager = array('name' => "'adminpager'", 'title' => "'{$language}ADMIN_PAGER'", 'description' => "'{$language}ADMIN_PAGER_DESC'",
543
-                    'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10', );
543
+                    'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10',);
544 544
             $ret .= $uCodeVConfig->getUserModVersion(3, $adminPager, 'config', '$c');
545 545
             $ret .= $this->getSimpleString('++$c;');
546 546
         }
547 547
         if (1 == $table->getVar('table_user')) {
548 548
             $ret .= $phpCodeVConfig->getPhpCodeCommentLine('User pager');
549 549
             $userPager = array('name' => "'userpager'", 'title' => "'{$language}USER_PAGER'", 'description' => "'{$language}USER_PAGER_DESC'",
550
-                    'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10', );
550
+                    'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10',);
551 551
             $ret .= $uCodeVConfig->getUserModVersion(3, $userPager, 'config', '$c');
552 552
             $ret .= $this->getSimpleString('++$c;');
553 553
         }
554 554
         if (1 == $table->getVar('table_tag')) {
555 555
             $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Use tag');
556 556
             $useTag = array('name' => "'usetag'", 'title' => "'{$language}USE_TAG'", 'description' => "'{$language}USE_TAG_DESC'",
557
-                    'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0', );
557
+                    'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0',);
558 558
             $ret .= $uCodeVConfig->getUserModVersion(3, $useTag, 'config', '$c');
559 559
             $ret .= $this->getSimpleString('++$c;');
560 560
         }
561 561
         $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Number column');
562 562
         $numbCol = array('name' => "'numb_col'", 'title' => "'{$language}NUMB_COL'", 'description' => "'{$language}NUMB_COL_DESC'",
563
-                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => '1', 'options' => "array(1 => '1', 2 => '2', 3 => '3', 4 => '4')", );
563
+                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => '1', 'options' => "array(1 => '1', 2 => '2', 3 => '3', 4 => '4')",);
564 564
         $ret .= $uCodeVConfig->getUserModVersion(3, $numbCol, 'config', '$c');
565 565
         $ret .= $this->getSimpleString('++$c;');
566 566
         $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Divide by');
567 567
         $divideby = array('name' => "'divideby'", 'title' => "'{$language}DIVIDEBY'", 'description' => "'{$language}DIVIDEBY_DESC'",
568
-                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => '1', 'options' => "array(1 => '1', 2 => '2', 3 => '3', 4 => '4')", );
568
+                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => '1', 'options' => "array(1 => '1', 2 => '2', 3 => '3', 4 => '4')",);
569 569
         $ret .= $uCodeVConfig->getUserModVersion(3, $divideby, 'config', '$c');
570 570
         $ret .= $this->getSimpleString('++$c;');
571 571
         $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Table type');
572 572
         $tableType = array('name' => "'table_type'", 'title' => "'{$language}TABLE_TYPE'", 'description' => "'{$language}DIVIDEBY_DESC'",
573
-                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => "'bordered'", 'options' => "array('bordered' => 'bordered', 'striped' => 'striped', 'hover' => 'hover', 'condensed' => 'condensed')", );
573
+                        'formtype' => "'select'", 'valuetype' => "'int'", 'default' => "'bordered'", 'options' => "array('bordered' => 'bordered', 'striped' => 'striped', 'hover' => 'hover', 'condensed' => 'condensed')",);
574 574
         $ret .= $uCodeVConfig->getUserModVersion(3, $tableType, 'config', '$c');
575 575
         $ret .= $this->getSimpleString('++$c;');
576 576
         $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Panel by');
577 577
         $panelType = array('name' => "'panel_type'", 'title' => "'{$language}PANEL_TYPE'", 'description' => "'{$language}PANEL_TYPE_DESC'",
578
-                        'formtype' => "'select'", 'valuetype' => "'text'", 'default' => "'default'", 'options' => "array('default' => 'default', 'primary' => 'primary', 'success' => 'success', 'info' => 'info', 'warning' => 'warning', 'danger' => 'danger')", );
578
+                        'formtype' => "'select'", 'valuetype' => "'text'", 'default' => "'default'", 'options' => "array('default' => 'default', 'primary' => 'primary', 'success' => 'success', 'info' => 'info', 'warning' => 'warning', 'danger' => 'danger')",);
579 579
         $ret .= $uCodeVConfig->getUserModVersion(3, $panelType, 'config', '$c');
580 580
         $ret .= $this->getSimpleString('++$c;');
581 581
         $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Advertise');
582 582
         $advertise = array('name' => "'advertise'", 'title' => "'{$language}ADVERTISE'", 'description' => "'{$language}ADVERTISE_DESC'",
583
-                        'formtype' => "'textarea'", 'valuetype' => "'text'", 'default' => "''", );
583
+                        'formtype' => "'textarea'", 'valuetype' => "'text'", 'default' => "''",);
584 584
         $ret .= $uCodeVConfig->getUserModVersion(3, $advertise, 'config', '$c');
585 585
         $ret .= $this->getSimpleString('++$c;');
586 586
         $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Bookmarks');
587 587
         $bookmarks = array('name' => "'bookmarks'", 'title' => "'{$language}BOOKMARKS'", 'description' => "'{$language}BOOKMARKS_DESC'",
588
-                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0', );
588
+                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0',);
589 589
         $ret .= $uCodeVConfig->getUserModVersion(3, $bookmarks, 'config', '$c');
590 590
         $ret .= $this->getSimpleString('++$c;');
591 591
         $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Facebook Comments');
592 592
         $facebookComments = array('name' => "'facebook_comments'", 'title' => "'{$language}FACEBOOK_COMMENTS'", 'description' => "'{$language}FACEBOOK_COMMENTS_DESC'",
593
-                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0', );
593
+                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0',);
594 594
         $ret .= $uCodeVConfig->getUserModVersion(3, $facebookComments, 'config', '$c');
595 595
         $ret .= $this->getSimpleString('++$c;');
596 596
         $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Disqus Comments');
597 597
         $disqusComments = array('name' => "'disqus_comments'", 'title' => "'{$language}DISQUS_COMMENTS'", 'description' => "'{$language}DISQUS_COMMENTS_DESC'",
598
-                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0', );
598
+                        'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0',);
599 599
         $ret .= $uCodeVConfig->getUserModVersion(3, $disqusComments, 'config', '$c');
600 600
         $ret .= $this->getSimpleString('++$c;');
601 601
         $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Maintained by');
602 602
         $maintainedby = array('name' => "'maintainedby'", 'title' => "'{$language}MAINTAINEDBY'", 'description' => "'{$language}MAINTAINEDBY_DESC'",
603
-                        'formtype' => "'textbox'", 'valuetype' => "'text'", 'default' => "'{$module->getVar('mod_support_url')}'", );
603
+                        'formtype' => "'textbox'", 'valuetype' => "'text'", 'default' => "'{$module->getVar('mod_support_url')}'",);
604 604
         $ret .= $uCodeVConfig->getUserModVersion(3, $maintainedby, 'config', '$c');
605 605
         $ret .= $this->getSimpleString('unset($c);');
606 606
 
@@ -638,14 +638,14 @@  discard block
 block discarded – undo
638 638
             case 'category':
639 639
                 $ret .= $phpCodeNType->getPhpCodeCommentLine('Category Notify');
640 640
                 $category = array('name' => "'category'", 'title' => "'{$language}{$stuTableName}_NOTIFY'", 'description' => "'{$language}{$stuTableName}_NOTIFY_DESC'",
641
-                                    'subscribe_from' => "array('index.php',{$notifyFile})", 'item_name' => "'{$item}'", "'allow_bookmark'" => '1', );
641
+                                    'subscribe_from' => "array('index.php',{$notifyFile})", 'item_name' => "'{$item}'", "'allow_bookmark'" => '1',);
642 642
                 $ret .= $uCodeNType->getUserModVersion(3, $category, 'notification', "'{$type}'");
643 643
                 break;
644 644
             case 'event':
645 645
                 $ret .= $phpCodeNType->getPhpCodeCommentLine('Event Notify');
646 646
                 $event = array('name' => "'{$typeOfNotify}'", 'category' => "'{$tableName}'", 'admin_only' => '1', "'title'" => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY'",
647 647
                                 'caption' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_CAPTION'", 'description' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_DESC'",
648
-                                'mail_template' => "'{$tableName}_{$typeOfNotify}_notify'", 'mail_subject' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_SUBJECT'", );
648
+                                'mail_template' => "'{$tableName}_{$typeOfNotify}_notify'", 'mail_subject' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_SUBJECT'",);
649 649
                 $ret .= $uCodeNType->getUserModVersion(3, $event, 'notification', "'{$type}'");
650 650
                 break;
651 651
         }
@@ -768,7 +768,7 @@  discard block
 block discarded – undo
768 768
         $implodeFrom = implode(".php', '", $from);
769 769
         $ret = $phpCodeVNG->getPhpCodeCommentLine('Global Notify');
770 770
         $global = array('name' => "'{$name}'", 'title' => "{$language}{$title}_NOTIFY", 'description' => "{$language}{$title}_NOTIFY_DESC",
771
-                        'subscribe_from' => "array('index.php', '{$implodeFrom}.php')", );
771
+                        'subscribe_from' => "array('index.php', '{$implodeFrom}.php')",);
772 772
         $ret .= $uCodeVNG->getUserModVersion(4, $global, 'notification', "'{$type}'", $num);
773 773
 
774 774
         return $ret;
@@ -794,7 +794,7 @@  discard block
 block discarded – undo
794 794
         $impFile = implode(".php', '", $file);
795 795
         $ret = $phpCodeVNC->getPhpCodeCommentLine('Category Notify');
796 796
         $global = array('name' => "'{$name}'", 'title' => "{$language}{$title}_NOTIFY", 'description' => "{$language}{$title}_NOTIFY_DESC",
797
-                        'subscribe_from' => "array('{$impFile}.php')", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}", );
797
+                        'subscribe_from' => "array('{$impFile}.php')", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}",);
798 798
         $ret .= $uCodeVNC->getUserModVersion(4, $global, 'notification', "'{$type}'", $num);
799 799
 
800 800
         return $ret;
@@ -822,7 +822,7 @@  discard block
 block discarded – undo
822 822
         $ucfTitle = ucfirst($title);
823 823
         $ret = $phpCodeVNTN->getPhpCodeCommentLine($ucfTitle.' Notify');
824 824
         $table = array('name' => "'{$name}'", 'title' => "{$language}{$stuTitle}_NOTIFY", 'description' => "{$language}{$stuTitle}_NOTIFY_DESC",
825
-                        'subscribe_from' => "'{$file}.php'", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}", );
825
+                        'subscribe_from' => "'{$file}.php'", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}",);
826 826
         $ret .= $uCodeVNTN->getUserModVersion(4, $table, 'notification', "'{$type}'", $num);
827 827
 
828 828
         return $ret;
@@ -852,7 +852,7 @@  discard block
 block discarded – undo
852 852
         $ret = $phpCodeVNCC->getPhpCodeCommentLine($ucfTitle.' Notify');
853 853
         $event = array('name' => "'{$name}'", 'category' => "'{$category}'", 'admin_only' => "{$admin}", 'title' => "{$language}{$title}_{$table}_NOTIFY",
854 854
                         'caption' => "{$language}{$title}_{$table}_NOTIFY_CAPTION", 'description' => "{$language}{$title}_{$table}_NOTIFY_DESC",
855
-                        'mail_template' => "'{$mail}'", 'mail_subject' => "{$language}{$title}_{$table}_NOTIFY_SUBJECT", );
855
+                        'mail_template' => "'{$mail}'", 'mail_subject' => "{$language}{$title}_{$table}_NOTIFY_SUBJECT",);
856 856
         $ret .= $uCodeVNCC->getUserModVersion(4, $event, 'notification', "'{$type}'", $num);
857 857
 
858 858
         return $ret;
Please login to merge, or discard this patch.
class/files/sql/SqlFile.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         $arrayServerInfo = array("# SQL Dump for {$moduleName} module", '# PhpMyAdmin Version: 4.0.4',
87 87
                                  '# http://www.phpmyadmin.net', '#', "# Host: {$serverName}",
88 88
                                  "# Generated on: {$date} to {$time}", "# Server version: {$serverVersion}",
89
-                                 "# PHP Version: {$phpVersion}\n", );
89
+                                 "# PHP Version: {$phpVersion}\n",);
90 90
         foreach ($arrayServerInfo as $serverInfo) {
91 91
             $ret .= $this->getSimpleString($serverInfo);
92 92
         }
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     {
109 109
         $ret = null;
110 110
         $arrayDbTable = array('#', "# Structure table for `{$moduleDirname}_{$tableName}` {$fieldsNumb}",
111
-                              '#', "\nCREATE TABLE `{$moduleDirname}_{$tableName}` (", );
111
+                              '#', "\nCREATE TABLE `{$moduleDirname}_{$tableName}` (",);
112 112
         foreach ($arrayDbTable as $dbTable) {
113 113
             $ret .= $this->getSimpleString($dbTable);
114 114
         }
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
         }
305 305
         // ================= COMMA ================= //
306 306
         for ($i = 0; $i < $j; ++$i) {
307
-            if ($i != $j - 1) {
307
+            if ($i != $j-1) {
308 308
                 $row[] = $comma[$i].',';
309 309
             } else {
310 310
                 $row[] = $comma[$i];
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
         $ret = null;
417 417
         // Comma issue
418 418
         for ($i = 1; $i <= $index; ++$i) {
419
-            if ($i != $index - 1) {
419
+            if ($i != $index-1) {
420 420
                 $ret = $this->getComma(isset($comma[$i]), ',')."\n";
421 421
             } else {
422 422
                 $ret = $this->getComma(isset($comma[$i]))."\n";
Please login to merge, or discard this patch.
class/files/TDMCreateArchitecture.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
         // Creation of 'module_author_logo.gif' file
123 123
         $this->copyFile('assets/images', $copyNewFile, $logoPng);
124 124
         $docs = array('/credits.txt' => 'credits.txt', '/install.txt' => 'install.txt',
125
-                    '/lang.diff' => 'lang.diff', '/license.txt' => 'license.txt', '/readme.txt' => 'readme.txt', );
125
+                    '/lang.diff' => 'lang.diff', '/license.txt' => 'license.txt', '/readme.txt' => 'readme.txt',);
126 126
         foreach ($docs as $k => $v) {
127 127
             // Creation of folder docs and .txt files
128 128
             $this->makeDirAndCopyFile('docs', TDMC_DOCS_PATH.$k, $v);
Please login to merge, or discard this patch.
include/functions.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,26 +41,26 @@
 block discarded – undo
41 41
 var hasSelected = false; var selectBox = myform.item[A][amount];for (i = 0; i < selectBox.options.length; i++ ) { if (selectBox.options[i].selected == true && selectBox.options[i].value != \'\') { hasSelected = true; break; } }if (!hasSelected) { window.alert("Please enter Donation Amount"); selectBox.focus(); return false; }return true;
42 42
 }
43 43
 //--></script>
44
-<!-- End Form Validation JavaScript //-->', );
44
+<!-- End Form Validation JavaScript //-->',);
45 45
     $paypalform = array(0 => '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">',
46 46
                                 1 => '<input name="cmd" value="_s-xclick" type="hidden">',
47 47
                                 2 => '<input name="hosted_button_id" value="%s" type="hidden">',
48 48
                                 3 => '<img alt="" src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" height="1" border="0" width="1">',
49 49
                                 4 => '<input src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" border="0" type="image">',
50
-                                5 => '</form>', );
50
+                                5 => '</form>',);
51 51
     for ($key = 0; $key <= 4; ++$key) {
52 52
         switch ($key) {
53 53
             case 2:
54
-                $donationform[$key] = sprintf($donationform[$key], $GLOBALS['xoopsConfig']['sitename'].' - '.(strlen($GLOBALS['xoopsUser']->getVar('name')) > 0 ? $GLOBALS['xoopsUser']->getVar('name').' ['.$GLOBALS['xoopsUser']->getVar('uname').']' : $GLOBALS['xoopsUser']->getVar('uname')), $GLOBALS['xoopsUser']->getVar('email'), XOOPS_LICENSE_KEY, strtoupper($GLOBALS['xoopsModule']->getVar('dirname')),  strtoupper($GLOBALS['xoopsModule']->getVar('dirname')).' '.$GLOBALS['xoopsModule']->getVar('name'));
54
+                $donationform[$key] = sprintf($donationform[$key], $GLOBALS['xoopsConfig']['sitename'].' - '.(strlen($GLOBALS['xoopsUser']->getVar('name')) > 0 ? $GLOBALS['xoopsUser']->getVar('name').' ['.$GLOBALS['xoopsUser']->getVar('uname').']' : $GLOBALS['xoopsUser']->getVar('uname')), $GLOBALS['xoopsUser']->getVar('email'), XOOPS_LICENSE_KEY, strtoupper($GLOBALS['xoopsModule']->getVar('dirname')), strtoupper($GLOBALS['xoopsModule']->getVar('dirname')).' '.$GLOBALS['xoopsModule']->getVar('name'));
55 55
                 break;
56 56
         }
57 57
     }
58 58
     $aboutRes = '';
59 59
     $istart = strpos($about, $paypalform[0], 1);
60
-    $iend = strpos($about, $paypalform[5], $istart + 1) + strlen($paypalform[5]) - 1;
61
-    $aboutRes .= substr($about, 0, $istart - 1);
60
+    $iend = strpos($about, $paypalform[5], $istart+1)+strlen($paypalform[5])-1;
61
+    $aboutRes .= substr($about, 0, $istart-1);
62 62
     $aboutRes .= implode("\n", $donationform);
63
-    $aboutRes .= substr($about, $iend + 1, strlen($about) - $iend - 1);
63
+    $aboutRes .= substr($about, $iend+1, strlen($about)-$iend-1);
64 64
 
65 65
     return $aboutRes;
66 66
 }
Please login to merge, or discard this patch.
class/files/templates/blocks/TemplatesBlocks.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -81,11 +81,11 @@  discard block
 block discarded – undo
81 81
             $fieldName    = $fields[$f]->getVar('field_name');
82 82
             $stuFieldName = strtoupper($fieldName);
83 83
             $lang         = $hc->getSmartyConst($language, $stuFieldName);
84
-            $th .= $hc->getHtmlTableHead($lang, 'center') . PHP_EOL;
84
+            $th .= $hc->getHtmlTableHead($lang, 'center').PHP_EOL;
85 85
         }
86
-        $tr = $hc->getHtmlTableRow($th, 'head') . PHP_EOL;
86
+        $tr = $hc->getHtmlTableRow($th, 'head').PHP_EOL;
87 87
 
88
-        return $hc->getHtmlTableThead($tr) . PHP_EOL;
88
+        return $hc->getHtmlTableThead($tr).PHP_EOL;
89 89
     }
90 90
 
91 91
     /**
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         $td = '';
106 106
         if (1 == $tableAutoincrement) {
107 107
             $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
108
-            $td .= $hc->getHtmlTag('td', array('class' => 'center'), $double) . PHP_EOL;
108
+            $td .= $hc->getHtmlTag('td', array('class' => 'center'), $double).PHP_EOL;
109 109
         }
110 110
         $fields = $this->getTableFields($tableMid, $tableId);
111 111
         foreach (array_keys($fields) as $f) {
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
                         // Old code was <span style="background-color: #<{\$list.{$rpFieldName}}>;">...
124 124
                         $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
125 125
                         $span   = $hc->getHtmlTag('span', array(), $double);
126
-                        $td .= $hc->getHtmlTag('td', array('class' => 'center'), $span) . PHP_EOL;
126
+                        $td .= $hc->getHtmlTag('td', array('class' => 'center'), $span).PHP_EOL;
127 127
                         /*$ret .= <<<EOT
128 128
                     <td class="center"><span style="background-color: #<{\$list.{$rpFieldName}}>;">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>\n
129 129
 EOT;*/
@@ -132,18 +132,18 @@  discard block
 block discarded – undo
132 132
                         $src = $hc->getSmartyNoSimbol('xoModuleIcons32');
133 133
                         $src .= $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
134 134
                         $img = $hc->getHtmlTag('img', array('src' => $src, 'alt' => $tableName), '', false);
135
-                        $td .= $hc->getHtmlTag('td', array('class' => 'center'), $img) . PHP_EOL;
135
+                        $td .= $hc->getHtmlTag('td', array('class' => 'center'), $img).PHP_EOL;
136 136
                         break;
137 137
                     case 13:
138
-                        $single = $hc->getSmartySingleVar($moduleDirname . '_upload_url');
138
+                        $single = $hc->getSmartySingleVar($moduleDirname.'_upload_url');
139 139
                         $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
140
-                        $img    = $hc->getHtmlTag('img', array('src' => $single . "/images/{$tableName}/" . $double, 'alt' => $tableName), '', false);
141
-                        $td .= $hc->getHtmlTag('td', array('class' => 'center'), $img) . PHP_EOL;
140
+                        $img    = $hc->getHtmlTag('img', array('src' => $single."/images/{$tableName}/".$double, 'alt' => $tableName), '', false);
141
+                        $td .= $hc->getHtmlTag('td', array('class' => 'center'), $img).PHP_EOL;
142 142
                         break;
143 143
                     default:
144 144
                         if (0 != $f) {
145 145
                             $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
146
-                            $td .= $hc->getHtmlTag('td', array('class' => 'center'), $double) . PHP_EOL;
146
+                            $td .= $hc->getHtmlTag('td', array('class' => 'center'), $double).PHP_EOL;
147 147
                         }
148 148
                         break;
149 149
                 }
@@ -153,19 +153,19 @@  discard block
 block discarded – undo
153 153
         $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
154 154
         $src    = $hc->getSmartyNoSimbol('xoModuleIcons32 edit.png');
155 155
         $img    = $hc->getHtmlTag('img', array('src' => $src, 'alt' => $tableName), '', false);
156
-        $anchor = $hc->getHtmlTag('a', array('href' => $tableName . ".php?op=edit&amp;{$fieldId}=" . $double, 'title' => $lang), $img) . PHP_EOL;
156
+        $anchor = $hc->getHtmlTag('a', array('href' => $tableName.".php?op=edit&amp;{$fieldId}=".$double, 'title' => $lang), $img).PHP_EOL;
157 157
         $lang   = $hc->getSmartyConst('', '_DELETE');
158 158
         $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
159 159
         $src    = $hc->getSmartyNoSimbol('xoModuleIcons32 delete.png');
160
-        $img    = $hc->getHtmlTag('img', array('src' => $src . $double, 'alt' => $tableName), '', false);
161
-        $anchor .= $hc->getHtmlTag('a', array('href' => $tableName . ".php?op=delete&amp;{$fieldId}=" . $double, 'title' => $lang), $img) . PHP_EOL;
162
-        $td .= $hc->getHtmlTag('td', array('class' => 'center'), "\n" . $anchor) . PHP_EOL;
160
+        $img    = $hc->getHtmlTag('img', array('src' => $src.$double, 'alt' => $tableName), '', false);
161
+        $anchor .= $hc->getHtmlTag('a', array('href' => $tableName.".php?op=delete&amp;{$fieldId}=".$double, 'title' => $lang), $img).PHP_EOL;
162
+        $td .= $hc->getHtmlTag('td', array('class' => 'center'), "\n".$anchor).PHP_EOL;
163 163
         $cycle   = $hc->getSmartyNoSimbol('cycle values="odd, even"');
164
-        $tr      = $hc->getHtmlTag('tr', array('class' => $cycle), $td) . PHP_EOL;
165
-        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName . '_list', $tr) . PHP_EOL;
166
-        $tbody   = $hc->getHtmlTag('tbody', array(), $foreach) . PHP_EOL;
164
+        $tr      = $hc->getHtmlTag('tr', array('class' => $cycle), $td).PHP_EOL;
165
+        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName.'_list', $tr).PHP_EOL;
166
+        $tbody   = $hc->getHtmlTag('tbody', array(), $foreach).PHP_EOL;
167 167
 
168
-        return $hc->getSmartyConditions($tableName . '_count', '', '', $tbody) . PHP_EOL;
168
+        return $hc->getSmartyConditions($tableName.'_count', '', '', $tbody).PHP_EOL;
169 169
     }
170 170
 
171 171
     /**
@@ -175,10 +175,10 @@  discard block
 block discarded – undo
175 175
     private function getTemplatesBlocksTableTfoot()
176 176
     {
177 177
         $hc = TDMCreateHtmlSmartyCodes::getInstance();
178
-        $td = $hc->getHtmlTag('td', array(), '&nbsp;') . PHP_EOL;
179
-        $tr = $hc->getHtmlTag('tr', array(), $td) . PHP_EOL;
178
+        $td = $hc->getHtmlTag('td', array(), '&nbsp;').PHP_EOL;
179
+        $tr = $hc->getHtmlTag('tr', array(), $td).PHP_EOL;
180 180
 
181
-        return $hc->getHtmlTag('tfoot', array(), $tr) . PHP_EOL;
181
+        return $hc->getHtmlTag('tfoot', array(), $tr).PHP_EOL;
182 182
     }
183 183
 
184 184
     /**
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
         $tbody .= $this->getTemplatesBlocksTableTfoot();
201 201
         $single = $hc->getSmartySingleVar('table_type');
202 202
 
203
-        return $hc->getHtmlTable($tbody, 'table table-' . $single) . PHP_EOL;
203
+        return $hc->getHtmlTable($tbody, 'table table-'.$single).PHP_EOL;
204 204
     }
205 205
 
206 206
     /**
Please login to merge, or discard this patch.
class/files/assets/css/CssSelectors.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -66,15 +66,15 @@
 block discarded – undo
66 66
     public function geCssSelector($selector, $content, $t)
67 67
     {
68 68
         $ret = '';
69
-		if(is_array($selector)) {
70
-			$ret .= $t. implode("\n", $selector) . ' {';
69
+		if (is_array($selector)) {
70
+			$ret .= $t.implode("\n", $selector).' {';
71 71
 		} else {
72
-			$ret .= $selector . ' {';
72
+			$ret .= $selector.' {';
73 73
 		}		
74
-		if(is_array($content)) {
75
-			$ret .= $t. implode("\n", $content) . ';';
74
+		if (is_array($content)) {
75
+			$ret .= $t.implode("\n", $content).';';
76 76
 		} else {
77
-			$ret .= $content . ';';
77
+			$ret .= $content.';';
78 78
 		}
79 79
 		$ret = '}';
80 80
 		
Please login to merge, or discard this patch.