Passed
Pull Request — master (#143)
by Michael
04:30
created
class/form/TDMCreateFormTabTray.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         $GLOBALS['xoTheme']->addScript('browse.php?Frameworks/jquery/jquery.js');
62 62
         $GLOBALS['xoTheme']->addScript('browse.php?Frameworks/jquery/plugins/jquery.ui.js');
63 63
         $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL.'/modules/system/css/ui/'.$this->uiTheme.'/ui.all.css');
64
-        $GLOBALS['xoTheme']->addScript('', ['type' => 'text/javascript'], '$(function() { $("#tabs_' . $this->getName() . '").tabs(); });');
64
+        $GLOBALS['xoTheme']->addScript('', ['type' => 'text/javascript'], '$(function() { $("#tabs_'.$this->getName().'").tabs(); });');
65 65
 
66 66
         $ret = '<div id="tabs_'.$this->getName().'">'.NWLINE;
67 67
         $ret .= '<ul>'.NWLINE;
Please login to merge, or discard this patch.
class/files/templates/user/TemplatesUserBreadcrumbs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
         $link = $sc->getSmartyDoubleVar('itm', 'link');
83 83
         $glyph = $hc->getHtmlTag('i', ['class' => 'glyphicon glyphicon-home'], '', false, true);
84 84
         $anchor = $hc->getHtmlAnchor('<{xoAppUrl index.php}>', $glyph, 'home');
85
-        $into = $hc->getHtmlTag('li', ['class' => 'bc-item'], $anchor, false, true, $t) . PHP_EOL;
85
+        $into = $hc->getHtmlTag('li', ['class' => 'bc-item'], $anchor, false, true, $t).PHP_EOL;
86 86
         $anchorIf = $hc->getHtmlAnchor($link, $title, $title, '', '', '', $t."\t").PHP_EOL;
87 87
         $breadcrumb = $sc->getSmartyConditions('itm.link', '', '', $anchorIf, $titleElse, false, false, $t);
88 88
         $foreach = $hc->getHtmlTag('li', ['class' => 'bc-item'], $breadcrumb, false, false, $t);
Please login to merge, or discard this patch.
class/files/templates/admin/TemplatesAdminAbout.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
         $content .= $hc->getSmartyIncludeFile($moduleDirname, 'header', true, true).PHP_EOL;
78 78
         $content .= $hc->getHtmlComment('About Page').PHP_EOL;
79 79
         $single = $hc->getSmartySingleVar('about');
80
-        $content .= $hc->getHtmlTag('div', ['class' => 'top'], $single) . PHP_EOL;
80
+        $content .= $hc->getHtmlTag('div', ['class' => 'top'], $single).PHP_EOL;
81 81
         $content .= $hc->getHtmlComment('Footer').PHP_EOL;
82 82
         $content .= $hc->getSmartyIncludeFile($moduleDirname, 'footer', true, true);
83 83
 
Please login to merge, or discard this patch.
class/files/templates/admin/TemplatesAdminPermissions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,8 +85,8 @@
 block discarded – undo
85 85
     {
86 86
         $hc = TDMCreateHtmlSmartyCodes::getInstance();
87 87
         $form = $hc->getSmartySingleVar('form');
88
-        $ret = $hc->getHtmlTag('div', ['class' => 'spacer'], $form) . PHP_EOL;
89
-        $ret .= $hc->getHtmlTag('br', [], '', false) . PHP_EOL;
88
+        $ret = $hc->getHtmlTag('div', ['class' => 'spacer'], $form).PHP_EOL;
89
+        $ret .= $hc->getHtmlTag('br', [], '', false).PHP_EOL;
90 90
 
91 91
         return $ret;
92 92
     }
Please login to merge, or discard this patch.
class/files/templates/admin/TemplatesAdminIndex.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
         $content .= $hc->getSmartyIncludeFile($moduleDirname, 'header', true, true).PHP_EOL;
79 79
         $content .= $hc->getHtmlComment('Index Page').PHP_EOL;
80 80
         $single = $hc->getSmartySingleVar('index');
81
-        $content .= $hc->getHtmlTag('div', ['class' => 'top'], $single) . PHP_EOL;
81
+        $content .= $hc->getHtmlTag('div', ['class' => 'top'], $single).PHP_EOL;
82 82
         $content .= $hc->getHtmlComment('Footer').PHP_EOL;
83 83
         $content .= $hc->getSmartyIncludeFile($moduleDirname, 'footer', true, true);
84 84
 
Please login to merge, or discard this patch.
class/files/templates/admin/TemplatesAdminHeader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,9 +75,9 @@
 block discarded – undo
75 75
         $moduleDirname = $module->getVar('mod_dirname');
76 76
 
77 77
         $navigation = $hc->getSmartySingleVar('navigation');
78
-        $due = $hc->getHtmlTag('span', ['class' => 'left'], $navigation) . PHP_EOL;
78
+        $due = $hc->getHtmlTag('span', ['class' => 'left'], $navigation).PHP_EOL;
79 79
         $buttons = $hc->getSmartySingleVar('buttons');
80
-        $right = $hc->getHtmlTag('span', ['class' => 'left'], $buttons . '&nbsp;');
80
+        $right = $hc->getHtmlTag('span', ['class' => 'left'], $buttons.'&nbsp;');
81 81
         $due .= $hc->getSmartyConditions('buttons', '', '', $right).PHP_EOL;
82 82
         $content = $hc->getHtmlTag('div', ['class' => 'top'], $due);
83 83
 
Please login to merge, or discard this patch.
class/files/classes/ClassXoopsCode.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,8 +71,8 @@
 block discarded – undo
71 71
      */
72 72
     public function getClassCriteria($var, $param1, $param2 = '', $param3 = '', $isParam = false, $t = '')
73 73
     {
74
-        $params = ('' != $param2) ? ', ' . $param2 : '';
75
-        $params .= ('' != $param3) ? ', ' . $param3 : '';
74
+        $params = ('' != $param2) ? ', '.$param2 : '';
75
+        $params .= ('' != $param3) ? ', '.$param3 : '';
76 76
 
77 77
         if (false === $isParam) {
78 78
             $ret = "{$t}\${$var} = new Criteria( {$param1}{$params} );\n";
Please login to merge, or discard this patch.
class/files/assets/css/CssSelectors.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -67,14 +67,14 @@
 block discarded – undo
67 67
     {
68 68
         $ret = '';
69 69
         if (is_array($selector)) {
70
-            $ret .= $t. implode("\n", $selector) . ' {';
70
+            $ret .= $t.implode("\n", $selector).' {';
71 71
         } else {
72
-            $ret .= $selector . ' {';
72
+            $ret .= $selector.' {';
73 73
         }
74 74
         if (is_array($content)) {
75
-            $ret .= $t. implode("\n", $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.
class/files/templates/admin/TemplatesAdminFooter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -78,12 +78,12 @@
 block discarded – undo
78 78
         $language = $this->getLanguage($moduleDirname, 'AM');
79 79
 
80 80
         $singleNoVar = $hc->getSmartyNoSimbol('xoModuleIcons32 xoopsmicrobutton.gif');
81
-        $img = $hc->getHtmlTag('img', ['src' => $singleNoVar, 'alt' => 'XOOPS'], '', true) . PHP_EOL;
82
-        $anchor = $hc->getHtmlTag('a', ['href' => 'https://xoops.org/', 'title' => 'Visit XOOPS', 'target' => '_blank'], $img) . PHP_EOL;
83
-        $content = $hc->getHtmlTag('div', ['class' => 'center'], $anchor) . PHP_EOL;
81
+        $img = $hc->getHtmlTag('img', ['src' => $singleNoVar, 'alt' => 'XOOPS'], '', true).PHP_EOL;
82
+        $anchor = $hc->getHtmlTag('a', ['href' => 'https://xoops.org/', 'title' => 'Visit XOOPS', 'target' => '_blank'], $img).PHP_EOL;
83
+        $content = $hc->getHtmlTag('div', ['class' => 'center'], $anchor).PHP_EOL;
84 84
         $tree = $hc->getHtmlTag('strong', [], $moduleName);
85 85
         $tree .= $hc->getSmartyConst($language, 'MAINTAINEDBY').PHP_EOL;
86
-        $tree .= $hc->getHtmlTag('a', ['href' => '<{$maintainedby}>', 'title' => 'Visit ' . $supportName, 'class' => 'tooltip', 'rel' => 'external'], $supportName);
86
+        $tree .= $hc->getHtmlTag('a', ['href' => '<{$maintainedby}>', 'title' => 'Visit '.$supportName, 'class' => 'tooltip', 'rel' => 'external'], $supportName);
87 87
         $content .= $hc->getHtmlTag('div', ['class' => 'center smallsmall italic pad5'], $tree);
88 88
 
89 89
         $this->create($moduleDirname, 'templates/admin', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
Please login to merge, or discard this patch.