Completed
Push — master ( 6b7a6d...74143b )
by Gino
20s
created
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.
admin/modules.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
                                  'mod_release_info' => $_POST['mod_release_info'],
109 109
                                  'mod_release_file' => $_POST['mod_release_file'],
110 110
                                  'mod_manual' => $_POST['mod_manual'],
111
-                                 'mod_manual_file' => $_POST['mod_manual_file'], ));
111
+                                 'mod_manual_file' => $_POST['mod_manual_file'],));
112 112
         //Form mod_image
113 113
         include_once XOOPS_ROOT_PATH.'/class/uploader.php';
114 114
         $uploader = new XoopsMediaUploader(TDMC_UPLOAD_IMGMOD_PATH, $tdmcreate->getConfig('mimetypes'),
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         if ($uploader->fetchMedia($_POST['xoops_upload_file'][0])) {
117 117
             $uploader->fetchMedia($_POST['xoops_upload_file'][0]);
118 118
             if (!$uploader->upload()) {
119
-                $errors =& $uploader->getErrors();
119
+                $errors = & $uploader->getErrors();
120 120
                 redirect_header('javascript:history.go(-1)', 3, $errors);
121 121
             } else {
122 122
                 $modulesObj->setVar('mod_image', $uploader->getSavedFileName());
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
                                  'mod_release' => $_POST['mod_release'],
136 136
                                  'mod_status' => $_POST['mod_status'],
137 137
                                  'mod_donations' => $_POST['mod_donations'],
138
-                                 'mod_subversion' => $_POST['mod_subversion'], )
138
+                                 'mod_subversion' => $_POST['mod_subversion'],)
139 139
         );
140 140
         $moduleOption = XoopsRequest::getArray('module_option', array());
141 141
         $modulesObj->setVar('mod_admin', in_array('admin', $moduleOption));
Please login to merge, or discard this patch.