Completed
Push — master ( 38ab27...5e4bad )
by Goffy
02:55
created
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 . ' ');
80
+        $right = $hc->getHtmlTag('span', ['class' => 'left'], $buttons.' ');
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/templates/admin/TemplatesAdminPages.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
         $lang = $hc->getSmartyConst($language, 'FORM_ACTION');
110 110
         $th .= $hc->getHtmlTag('th', ['class' => 'center width5'], $lang, false, false, "\t\t\t");
111
-        $tr = $hc->getHtmlTag('tr', ['class' => 'head'], $th) . PHP_EOL;
111
+        $tr = $hc->getHtmlTag('tr', ['class' => 'head'], $th).PHP_EOL;
112 112
         $ret = $hc->getHtmlTag('thead', [], $tr);
113 113
 
114 114
         return $ret;
@@ -156,12 +156,12 @@  discard block
 block discarded – undo
156 156
                         $src = $hc->getSmartyNoSimbol('xoModuleIcons32');
157 157
                         $src .= $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
158 158
                         $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, false);
159
-                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n\t" . $img);
159
+                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n\t".$img);
160 160
                         break;
161 161
                     case 13:
162 162
                         $single = $hc->getSmartySingleVar($moduleDirname.'_upload_url');
163 163
                         $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
164
-                        $img = $hc->getHtmlTag('img', ['src' => $single . "/images/{$tableName}/" . $double, 'alt' => $tableName, 'style' => 'max-width:100px'], '', true, false);
164
+                        $img = $hc->getHtmlTag('img', ['src' => $single."/images/{$tableName}/".$double, 'alt' => $tableName, 'style' => 'max-width:100px'], '', true, false);
165 165
                         $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img, false, false, "\t\t");
166 166
                         break;
167 167
                     default:
@@ -177,13 +177,13 @@  discard block
 block discarded – undo
177 177
         $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
178 178
         $src = $hc->getSmartyNoSimbol('xoModuleIcons16 edit.png');
179 179
         $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, false);
180
-        $anchor = $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=edit&{$fieldId}=" . $double, 'title' => $lang], "\n\t" . $img);
180
+        $anchor = $hc->getHtmlTag('a', ['href' => $tableName.".php?op=edit&{$fieldId}=".$double, 'title' => $lang], "\n\t".$img);
181 181
         $lang = $hc->getSmartyConst('', '_DELETE');
182 182
         $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
183 183
         $src = $hc->getSmartyNoSimbol('xoModuleIcons16 delete.png');
184 184
         $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, false);
185
-        $anchor .= $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=delete&{$fieldId}=" . $double, 'title' => $lang], "\n\t" . $img);
186
-        $td .= $hc->getHtmlTag('td', ['class' => 'center  width5'], "\n" . $anchor);
185
+        $anchor .= $hc->getHtmlTag('a', ['href' => $tableName.".php?op=delete&{$fieldId}=".$double, 'title' => $lang], "\n\t".$img);
186
+        $td .= $hc->getHtmlTag('td', ['class' => 'center  width5'], "\n".$anchor);
187 187
         $cycle = $hc->getSmartyNoSimbol('cycle values=\'odd, even\'');
188 188
         $tr = $hc->getHtmlTag('tr', ['class' => $cycle], $td);
189 189
         $foreach = $hc->getSmartyForeach($tableSoleName, $tableName.'_list', $tr);
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
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
             $this->makeDirAndCopyFile('blocks', $indexFile, 'index.html');
96 96
         }
97 97
         $language = ('english' !== $GLOBALS['xoopsConfig']['language']) ? $GLOBALS['xoopsConfig']['language'] : 'english';
98
-        $copyFiles = ['class' => $indexFile, 'include' => $indexFile, 'language' => $indexFile, 'assets' => $indexFile, 'assets/css' => $indexFile, 'assets/css/admin' => $indexFile, 'assets/icons' => $indexFile, 'assets/icons/16' => $indexFile, 'assets/icons/32' => $indexFile, 'docs' => $indexFile, 'assets/images' => $indexFile, 'assets/js' => $indexFile, 'language/' . $language => $indexFile, 'language/' . $language . '/help' => $indexFile, 'preloads' => $indexFile];
98
+        $copyFiles = ['class' => $indexFile, 'include' => $indexFile, 'language' => $indexFile, 'assets' => $indexFile, 'assets/css' => $indexFile, 'assets/css/admin' => $indexFile, 'assets/icons' => $indexFile, 'assets/icons/16' => $indexFile, 'assets/icons/32' => $indexFile, 'docs' => $indexFile, 'assets/images' => $indexFile, 'assets/js' => $indexFile, 'language/'.$language => $indexFile, 'language/'.$language.'/help' => $indexFile, 'preloads' => $indexFile];
99 99
         foreach ($copyFiles as $k => $v) {
100 100
             // Creation of folders and index.html file
101 101
             $this->makeDirAndCopyFile($k, $v, 'index.html');
Please login to merge, or discard this patch.
class/files/user/UserXoopsCode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
         $stuModuleDirname = strtoupper($moduleDirname);
139 139
         $ret = $pCodeHeaderFile->getPhpCodeCommentLine('Breadcrumbs');
140 140
         $ret .= $pCodeHeaderFile->getPhpCodeArray('xoBreadcrumbs', null, false, '');
141
-        $titleLink = ["'title'" => $language . 'TITLE', "'link'" => "{$stuModuleDirname}_URL . '/'"];
141
+        $titleLink = ["'title'" => $language.'TITLE', "'link'" => "{$stuModuleDirname}_URL . '/'"];
142 142
         $ret .= $pCodeHeaderFile->getPhpCodeArray('xoBreadcrumbs[]', $titleLink, false, '');
143 143
 
144 144
         return $ret;
Please login to merge, or discard this patch.
class/files/TDMCreatePhpCode.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -706,7 +706,7 @@  discard block
 block discarded – undo
706 706
     */
707 707
     public function getPhpCodeHtmlentities($entitiesVar, $entitiesQuote = false)
708 708
     {
709
-        $entitiesVar = (false !== $entitiesQuote) ? $entitiesVar . ', ' . $entitiesQuote : $entitiesVar;
709
+        $entitiesVar = (false !== $entitiesQuote) ? $entitiesVar.', '.$entitiesQuote : $entitiesVar;
710 710
         $entities = "htmlentities({$entitiesVar})";
711 711
 
712 712
         return $entities;
@@ -720,7 +720,7 @@  discard block
 block discarded – undo
720 720
     */
721 721
     public function getPhpCodeHtmlspecialchars($specialVar, $specialQuote = false)
722 722
     {
723
-        $specialVar = (false !== $specialQuote) ? $specialVar . ', ' . $specialQuote : $specialVar;
723
+        $specialVar = (false !== $specialQuote) ? $specialVar.', '.$specialQuote : $specialVar;
724 724
         $specialchars = "htmlspecialchars({$specialVar})";
725 725
 
726 726
         return $specialchars;
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.
include/update.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         $tplids[] = $tplid;
63 63
     }
64 64
     if (count($tplids) > 0) {
65
-        $tplfileHandler =  xoops_getHandler('tplfile');
65
+        $tplfileHandler = xoops_getHandler('tplfile');
66 66
         $duplicate_files = $tplfileHandler->getObjects(
67 67
             new Criteria('tpl_id', '('.implode(',', $tplids).')', 'IN')
68 68
         );
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/building.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
             if (('.' !== $file) && ('..' !== $file)) {
112 112
                 if (is_dir($src.'/'.$file)) {
113 113
                     // Copy the directory itself
114
-                    $this->copyDir($src . '/' . $file, $dst . '/' . $file);
114
+                    $this->copyDir($src.'/'.$file, $dst.'/'.$file);
115 115
                 } else {
116 116
                     // Make sure you copy the current script
117 117
                     copy($src.'/'.$file, $dst.'/'.$file);
Please login to merge, or discard this patch.