Completed
Push — master ( 6f00b4...805ee0 )
by Gino
03:23
created
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/TDMCreateArchitecture.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
         $language = ($xLanguage != 'english') ? $xLanguage : 'english';
114 114
         $copyFiles = array('class' => $indexFile, 'include' => $indexFile, 'language' => $indexFile, 'assets' => $indexFile, 'assets/css' => $indexFile,
115 115
                         'assets/icons' => $indexFile, 'assets/icons/16' => $indexFile, 'assets/icons/32' => $indexFile, 'docs' => $indexFile,
116
-                        'assets/images' => $indexFile, 'assets/js' => $indexFile, 'language/'.$language => $indexFile, 'language/'.$language.'/help' => $indexFile, 'preloads' => $indexFile, );
116
+                        'assets/images' => $indexFile, 'assets/js' => $indexFile, 'language/'.$language => $indexFile, 'language/'.$language.'/help' => $indexFile, 'preloads' => $indexFile,);
117 117
         foreach ($copyFiles as $k => $v) {
118 118
             // Creation of folders and index.html file
119 119
             $this->makeDirAndCopyFile($k, $v, 'index.html');
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         // Creation of 'module_author_logo.gif' file
139 139
         $this->copyFile('assets/images', $copyNewFile, $stlModuleAuthor.'_logo.gif');
140 140
         $docs = array('/credits.txt' => 'credits.txt', '/install.txt' => 'install.txt',
141
-                    '/lang_diff.txt' => 'lang_diff.txt', '/license.txt' => 'license.txt', '/readme.txt' => 'readme.txt', );
141
+                    '/lang_diff.txt' => 'lang_diff.txt', '/license.txt' => 'license.txt', '/readme.txt' => 'readme.txt',);
142 142
         foreach ($docs as $k => $v) {
143 143
             // Creation of folder docs and .txt files
144 144
             $this->makeDirAndCopyFile('docs', TDMC_DOCS_PATH.$k, $v);
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/files/user/UserXoopsVersion.php 1 patch
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 
147 147
         $descriptions = array('name' => "{$language}NAME", 'version' => "{$module->getVar('mod_version')}", 'description' => "{$language}DESC",
148 148
                             'author' => "'{$module->getVar('mod_author')}'", 'author_mail' => "'{$module->getVar('mod_author_mail')}'", 'author_website_url' => "'{$module->getVar('mod_author_website_url')}'",
149
-                            'author_website_name' => "'{$module->getVar('mod_author_website_name')}'",'credits' => "'{$module->getVar('mod_credits')}'",'license' => "'{$module->getVar('mod_license')}'",
149
+                            'author_website_name' => "'{$module->getVar('mod_author_website_name')}'", 'credits' => "'{$module->getVar('mod_credits')}'", 'license' => "'{$module->getVar('mod_license')}'",
150 150
                             'license_url' => "'www.gnu.org/licenses/gpl-2.0.html/'", 'help' => "'page=help'", 'release_info' => "'{$module->getVar('mod_release_info')}'",
151 151
                             'release_file' => "XOOPS_URL . '/modules/{$module->getVar('mod_dirname')}/docs/{$module->getVar('mod_release_file')}'", 'release_date' => "'{$date}'",
152 152
                             'manual' => "'{$module->getVar('mod_manual')}'", 'manual_file' => "XOOPS_URL . '/modules/{$module->getVar('mod_dirname')}/docs/{$module->getVar('mod_manual_file')}'",
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                             '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')}'",
158 158
                             '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')}'",
159 159
                             'system_menu' => '1', 'hasAdmin' => $ha, 'hasMain' => $hm, 'adminindex' => "'admin/index.php'", 'adminmenu' => "'admin/menu.php'",
160
-                            'onInstall' => "'include/install.php'", 'onUpdate' => "'include/update.php'", );
160
+                            'onInstall' => "'include/install.php'", 'onUpdate' => "'include/update.php'",);
161 161
 
162 162
         $ret .= $this->uc->getUserModVersion(1, $descriptions);
163 163
 
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
         $ret = $this->phpcode->getPhpCodeCommentLine("{$ucfTableName}");
451 451
         $blocks = array('file' => "'{$tableName}.php'", 'name' => "{$language}{$stuTableName}_BLOCK_{$stuTableSoleName}", 'description' => "{$language}{$stuTableName}_BLOCK_{$stuTableSoleName}_DESC",
452 452
                         'show_func' => "'b_{$moduleDirname}_{$tableName}_show'", 'edit_func' => "'b_{$moduleDirname}_{$tableName}_edit'",
453
-                        'template' => "'{$moduleDirname}_block_{$tableName}.tpl'", 'options' => "'{$type}|5|25|0'", );
453
+                        'template' => "'{$moduleDirname}_block_{$tableName}.tpl'", 'options' => "'{$type}|5|25|0'",);
454 454
         $ret .= $this->uc->getUserModVersion(3, $blocks, 'blocks', '$b');
455 455
         $ret .= $this->getSimpleString('++$b;');
456 456
 
@@ -485,7 +485,7 @@  discard block
 block discarded – undo
485 485
                 $ret .= $this->xc->getXcLoad('xoopseditorhandler');
486 486
                 $ret .= $this->xc->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 .= $this->uc->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 = $this->xc->getXcEqualsOperator('$groups[$group] ', '$key');
499 499
             $ret .= $this->phpcode->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 .= $this->uc->getUserModVersion(3, $groups, 'config', '$c');
503 503
             $ret .= $this->getSimpleString('++$c;');
504 504
             $ret .= $this->phpcode->getPhpCodeCommentLine('Get Admin groups');
@@ -509,14 +509,14 @@  discard block
 block discarded – undo
509 509
             $adminGroup = $this->xc->getXcEqualsOperator('$adminGroups[$adminGroup] ', '$key');
510 510
             $ret .= $this->phpcode->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 .= $this->uc->getUserModVersion(3, $adminGroups, 'config', '$c');
514 514
             $ret .= $this->getSimpleString('++$c;');
515 515
         }
516 516
         $keyword = implode(', ', $this->getKeywords());
517 517
         $ret .= $this->phpcode->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 .= $this->uc->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 .= $this->phpcode->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 .= $this->uc->getUserModVersion(3, $maxsize, 'config', '$c');
532 532
             $ret .= $this->phpcode->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 .= $this->uc->getUserModVersion(3, $mimetypes, 'config', '$c');
538 538
             $ret .= $this->getSimpleString('++$c;');
539 539
         }
540 540
         if (1 == $table->getVar('table_admin')) {
541 541
             $ret .= $this->phpcode->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 .= $this->uc->getUserModVersion(3, $adminPager, 'config', '$c');
545 545
             $ret .= $this->getSimpleString('++$c;');
546 546
         }
547 547
         if (1 == $table->getVar('table_user')) {
548 548
             $ret .= $this->phpcode->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 .= $this->uc->getUserModVersion(3, $userPager, 'config', '$c');
552 552
             $ret .= $this->getSimpleString('++$c;');
553 553
         }
554 554
         if (1 == $table->getVar('table_tag')) {
555 555
             $ret .= $this->phpcode->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 .= $this->uc->getUserModVersion(3, $useTag, 'config', '$c');
559 559
             $ret .= $this->getSimpleString('++$c;');
560 560
         }
561 561
         $ret .= $this->phpcode->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 .= $this->uc->getUserModVersion(3, $numbCol, 'config', '$c');
565 565
         $ret .= $this->getSimpleString('++$c;');
566 566
         $ret .= $this->phpcode->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 .= $this->uc->getUserModVersion(3, $divideby, 'config', '$c');
570 570
         $ret .= $this->getSimpleString('++$c;');
571 571
         $ret .= $this->phpcode->getPhpCodeCommentLine('Table type');
572 572
         $tableType = array('name' => "'table_type'", 'title' => "'{$language}DIVIDEBY'", '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 .= $this->uc->getUserModVersion(3, $tableType, 'config', '$c');
575 575
         $ret .= $this->getSimpleString('++$c;');
576 576
         $ret .= $this->phpcode->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 .= $this->uc->getUserModVersion(3, $panelType, 'config', '$c');
580 580
         $ret .= $this->getSimpleString('++$c;');
581 581
         $ret .= $this->phpcode->getPhpCodeCommentLine('Panel by');
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 .= $this->uc->getUserModVersion(3, $advertise, 'config', '$c');
585 585
         $ret .= $this->getSimpleString('++$c;');
586 586
         $ret .= $this->phpcode->getPhpCodeCommentLine('Panel by');
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 .= $this->uc->getUserModVersion(3, $bookmarks, 'config', '$c');
590 590
         $ret .= $this->getSimpleString('++$c;');
591 591
         $ret .= $this->phpcode->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 .= $this->uc->getUserModVersion(3, $facebookComments, 'config', '$c');
595 595
         $ret .= $this->getSimpleString('++$c;');
596 596
         $ret .= $this->phpcode->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 .= $this->uc->getUserModVersion(3, $disqusComments, 'config', '$c');
600 600
         $ret .= $this->getSimpleString('++$c;');
601 601
         $ret .= $this->phpcode->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 .= $this->uc->getUserModVersion(3, $maintainedby, 'config', '$c');
605 605
         $ret .= $this->getSimpleString('unset($c);');
606 606
 
@@ -636,14 +636,14 @@  discard block
 block discarded – undo
636 636
             case 'category':
637 637
                 $ret .= $this->phpcode->getPhpCodeCommentLine('Category Notify');
638 638
                 $category = array('name' => "'category'", 'title' => "'{$language}{$stuTableName}_NOTIFY'", 'description' => "'{$language}{$stuTableName}_NOTIFY_DESC'",
639
-                                    'subscribe_from' => "array('index.php',{$notifyFile})", 'item_name' => "'{$item}'", "'allow_bookmark'" => '1', );
639
+                                    'subscribe_from' => "array('index.php',{$notifyFile})", 'item_name' => "'{$item}'", "'allow_bookmark'" => '1',);
640 640
                 $ret .= $this->uc->getUserModVersion(3, $category, 'notification', "'{$type}'");
641 641
                 break;
642 642
             case 'event':
643 643
                 $ret .= $this->phpcode->getPhpCodeCommentLine('Event Notify');
644 644
                 $event = array('name' => "'{$typeOfNotify}'", 'category' => "'{$tableName}'", 'admin_only' => '1', "'title'" => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY'",
645 645
                                 'caption' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_CAPTION'", 'description' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_DESC'",
646
-                                'mail_template' => "'{$tableName}_{$typeOfNotify}_notify'", 'mail_subject' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_SUBJECT'", );
646
+                                'mail_template' => "'{$tableName}_{$typeOfNotify}_notify'", 'mail_subject' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_SUBJECT'",);
647 647
                 $ret .= $this->uc->getUserModVersion(3, $event, 'notification', "'{$type}'");
648 648
                 break;
649 649
         }
@@ -762,7 +762,7 @@  discard block
 block discarded – undo
762 762
         $implodeFrom = implode(".php', '", $from);
763 763
         $ret = $this->phpcode->getPhpCodeCommentLine('Global Notify');
764 764
         $global = array('name' => "'{$name}'", 'title' => "{$language}{$title}_NOTIFY", 'description' => "{$language}{$title}_NOTIFY_DESC",
765
-                        'subscribe_from' => "array('index.php', '{$implodeFrom}.php')", );
765
+                        'subscribe_from' => "array('index.php', '{$implodeFrom}.php')",);
766 766
         $ret .= $this->uc->getUserModVersion(4, $global, 'notification', "'{$type}'", $num);
767 767
 
768 768
         return $ret;
@@ -786,7 +786,7 @@  discard block
 block discarded – undo
786 786
         $impFile = implode(".php', '", $file);
787 787
         $ret = $this->phpcode->getPhpCodeCommentLine('Category Notify');
788 788
         $global = array('name' => "'{$name}'", 'title' => "{$language}{$title}_NOTIFY", 'description' => "{$language}{$title}_NOTIFY_DESC",
789
-                        'subscribe_from' => "array('{$impFile}.php')", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}", );
789
+                        'subscribe_from' => "array('{$impFile}.php')", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}",);
790 790
         $ret .= $this->uc->getUserModVersion(4, $global, 'notification', "'{$type}'", $num);
791 791
 
792 792
         return $ret;
@@ -812,7 +812,7 @@  discard block
 block discarded – undo
812 812
         $ucfTitle = ucfirst($title);
813 813
         $ret = $this->phpcode->getPhpCodeCommentLine($ucfTitle.' Notify');
814 814
         $table = array('name' => "'{$name}'", 'title' => "{$language}{$stuTitle}_NOTIFY", 'description' => "{$language}{$stuTitle}_NOTIFY_DESC",
815
-                        'subscribe_from' => "'{$file}.php'", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}", );
815
+                        'subscribe_from' => "'{$file}.php'", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}",);
816 816
         $ret .= $this->uc->getUserModVersion(4, $table, 'notification', "'{$type}'", $num);
817 817
 
818 818
         return $ret;
@@ -840,7 +840,7 @@  discard block
 block discarded – undo
840 840
         $ret = $this->phpcode->getPhpCodeCommentLine($ucfTitle.' Notify');
841 841
         $event = array('name' => "'{$name}'", 'category' => "'{$category}'", 'admin_only' => "{$admin}", 'title' => "{$language}{$title}_{$table}_NOTIFY",
842 842
                         'caption' => "{$language}{$title}_{$table}_NOTIFY_CAPTION", 'description' => "{$language}{$title}_{$table}_NOTIFY_DESC",
843
-                        'mail_template' => "'{$mail}'", 'mail_subject' => "{$language}{$title}_{$table}_NOTIFY_SUBJECT", );
843
+                        'mail_template' => "'{$mail}'", 'mail_subject' => "{$language}{$title}_{$table}_NOTIFY_SUBJECT",);
844 844
         $ret .= $this->uc->getUserModVersion(4, $event, 'notification', "'{$type}'", $num);
845 845
 
846 846
         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.
include/functions.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -119,26 +119,26 @@
 block discarded – undo
119 119
 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;
120 120
 }
121 121
 //--></script>
122
-<!-- End Form Validation JavaScript //-->', );
122
+<!-- End Form Validation JavaScript //-->',);
123 123
     $paypalform = array(0 => '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">',
124 124
                                 1 => '<input name="cmd" value="_s-xclick" type="hidden">',
125 125
                                 2 => '<input name="hosted_button_id" value="%s" type="hidden">',
126 126
                                 3 => '<img alt="" src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" height="1" border="0" width="1">',
127 127
                                 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">',
128
-                                5 => '</form>', );
129
-    for ($key = 0;$key <= 4;++$key) {
128
+                                5 => '</form>',);
129
+    for ($key = 0; $key <= 4; ++$key) {
130 130
         switch ($key) {
131 131
             case 2:
132
-                $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'));
132
+                $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'));
133 133
                 break;
134 134
         }
135 135
     }
136 136
     $aboutRes = '';
137 137
     $istart = strpos($about, $paypalform[0], 1);
138
-    $iend = strpos($about, $paypalform[5], $istart + 1) + strlen($paypalform[5]) - 1;
139
-    $aboutRes .= substr($about, 0, $istart - 1);
138
+    $iend = strpos($about, $paypalform[5], $istart+1)+strlen($paypalform[5])-1;
139
+    $aboutRes .= substr($about, 0, $istart-1);
140 140
     $aboutRes .= implode("\n", $donationform);
141
-    $aboutRes .= substr($about, $iend + 1, strlen($about) - $iend - 1);
141
+    $aboutRes .= substr($about, $iend+1, strlen($about)-$iend-1);
142 142
 
143 143
     return $aboutRes;
144 144
 }
Please login to merge, or discard this patch.
class/files/templates/blocks/TemplatesBlocks.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
             $fieldName = $fields[$f]->getVar('field_name');
96 96
             $stuFieldName = strtoupper($fieldName);
97 97
             $lang = $hc->getSmartyConst($language, $stuFieldName);
98
-            $th    .= $hc->getHtmlTableHead($lang, 'center').PHP_EOL;
98
+            $th .= $hc->getHtmlTableHead($lang, 'center').PHP_EOL;
99 99
         }
100 100
         $tr = $hc->getHtmlTableRow($th, 'head').PHP_EOL;
101 101
 
Please login to merge, or discard this patch.
class/files/templates/user/TemplatesUserCategories.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -233,7 +233,7 @@
 block discarded – undo
233 233
         $hc = TDMCreateHtmlSmartyCodes::getInstance();
234 234
         $incl = $hc->getSmartyIncludeFileListForeach($moduleDirname, $tableName, $tableSoleName).PHP_EOL;
235 235
         $html = $hc->getHtmlEmpty('<br />').PHP_EOL;
236
-        $incl     .= $hc->getSmartyConditions($tableSoleName.'.count', ' is div by ', '$numb_col', $html).PHP_EOL;
236
+        $incl .= $hc->getSmartyConditions($tableSoleName.'.count', ' is div by ', '$numb_col', $html).PHP_EOL;
237 237
         $const = $hc->getSmartyConst($language, $stuTableName.'_TITLE');
238 238
         $div = $hc->getHtmlDiv($const, 'panel-heading').PHP_EOL;
239 239
         $cont = $hc->getHtmlDiv($incl, 'panel panel-body').PHP_EOL;
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.