Passed
Push — master ( 834a16...1c3825 )
by Goffy
09:06 queued 04:27
created
class/form/themeform.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     {
52 52
         $ele_name = $this->getName();
53 53
         //$ret = ($this->getTitle() ? '<div class=" center head ">' . $this->getTitle() . '</div>' : '');
54
-        $ret    = NWLINE . '<form name="' . $ele_name . '" id="' . $ele_name . '" action="' . $this->getAction() . '" method="' . $this->getMethod() . '" onsubmit="return xoopsFormValidate_' . $ele_name . '();"' . $this->getExtra() . '>' . NWLINE;
54
+        $ret    = NWLINE.'<form name="'.$ele_name.'" id="'.$ele_name.'" action="'.$this->getAction().'" method="'.$this->getMethod().'" onsubmit="return xoopsFormValidate_'.$ele_name.'();"'.$this->getExtra().'>'.NWLINE;
55 55
         $hidden = '';
56 56
         $class  = 'even';
57 57
         foreach ($this->getElements() as $ele) {
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
                 }
66 66
             }
67 67
         }
68
-        $ret .= NWLINE . ' ' . $hidden . NWLINE . '</form>';
68
+        $ret .= NWLINE.' '.$hidden.NWLINE.'</form>';
69 69
         $ret .= $this->renderValidationJS(true);
70 70
 
71 71
         return $ret;
Please login to merge, or discard this patch.
class/Utility.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -189,14 +189,14 @@
 block discarded – undo
189 189
         $donationform = [
190 190
             0   => '<form name="donation" id="donation" action="http://www.txmodxoops.org/modules/xdonations/" method="post" onsubmit="return xoopsFormValidate_donation();">',
191 191
             1   => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">'
192
-                   . _AM_TDMCREATE_ABOUT_MAKE_DONATION
193
-                   . '</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">'
194
-                   . _AM_TDMCREATE_DONATION_AMOUNT
195
-                   . '</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 EUR</option><option value="10">10.00 EUR</option><option value="20">20.00 EUR</option><option value="40">40.00 EUR</option><option value="60">60.00 EUR</option><option value="80">80.00 EUR</option><option value="90">90.00 EUR</option><option value="100">100.00 EUR</option><option value="200">200.00 EUR</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'
196
-                   . _SUBMIT
197
-                   . '" title="'
198
-                   . _SUBMIT
199
-                   . '" type="submit"></td></tr></tbody></table>',
192
+                    . _AM_TDMCREATE_ABOUT_MAKE_DONATION
193
+                    . '</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">'
194
+                    . _AM_TDMCREATE_DONATION_AMOUNT
195
+                    . '</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 EUR</option><option value="10">10.00 EUR</option><option value="20">20.00 EUR</option><option value="40">40.00 EUR</option><option value="60">60.00 EUR</option><option value="80">80.00 EUR</option><option value="90">90.00 EUR</option><option value="100">100.00 EUR</option><option value="200">200.00 EUR</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'
196
+                    . _SUBMIT
197
+                    . '" title="'
198
+                    . _SUBMIT
199
+                    . '" type="submit"></td></tr></tbody></table>',
200 200
             2   => '<input name="op" id="op" value="createinvoice" type="hidden"><input name="plugin" id="plugin" value="donations" type="hidden"><input name="donation" id="donation" value="1" type="hidden"><input name="drawfor" id="drawfor" value="Chronolabs Co-Operative" type="hidden"><input name="drawto" id="drawto" value="%s" type="hidden"><input name="drawto_email" id="drawto_email" value="%s" type="hidden"><input name="key" id="key" value="%s" type="hidden"><input name="currency" id="currency" value="EUR" type="hidden"><input name="weight_unit" id="weight_unit" value="kgs" type="hidden"><input name="item[A][cat]" id="item[A][cat]" value="XDN%s" type="hidden"><input name="item[A][name]" id="item[A][name]" value="Donation for %s" type="hidden"><input name="item[A][quantity]" id="item[A][quantity]" value="1" type="hidden"><input name="item[A][shipping]" id="item[A][shipping]" value="0" type="hidden"><input name="item[A][handling]" id="item[A][handling]" value="0" type="hidden"><input name="item[A][weight]" id="item[A][weight]" value="0" type="hidden"><input name="item[A][tax]" id="item[A][tax]" value="0" type="hidden"><input name="return" id="return" value="http://www.txmodxoops.org/modules/xdonations/success.php" type="hidden"><input name="cancel" id="cancel" value="http://www.txmodxoops.org/modules/xdonations/success.php" type="hidden"></form>',
201 201
             'D' => '',
202 202
             3   => '',
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -56,11 +56,11 @@  discard block
 block discarded – undo
56 56
     {
57 57
         if ($considerHtml) {
58 58
             // if the plain text is shorter than the maximum length, return the whole text
59
-            if (mb_strlen(preg_replace('/<.*?' . '>/', '', $text)) <= $length) {
59
+            if (mb_strlen(preg_replace('/<.*?'.'>/', '', $text)) <= $length) {
60 60
                 return $text;
61 61
             }
62 62
             // splits all html-tags to scanable lines
63
-            preg_match_all('/(<.+?' . '>)?([^<>]*)/s', $text, $lines, PREG_SET_ORDER);
63
+            preg_match_all('/(<.+?'.'>)?([^<>]*)/s', $text, $lines, PREG_SET_ORDER);
64 64
             $total_length = mb_strlen($ending);
65 65
             $open_tags    = [];
66 66
             $truncate     = '';
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
                             unset($open_tags[$pos]);
79 79
                         }
80 80
                         // if tag is an opening tag
81
-                    } elseif (preg_match('/^<\s*([^\s>!]+).*?' . '>$/s', $line_matchings[1], $tag_matchings)) {
81
+                    } elseif (preg_match('/^<\s*([^\s>!]+).*?'.'>$/s', $line_matchings[1], $tag_matchings)) {
82 82
                         // add tag to the beginning of $open_tags list
83 83
                         array_unshift($open_tags, mb_strtolower($tag_matchings[1]));
84 84
                     }
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
         if ($considerHtml) {
137 137
             // close all unclosed html-tags
138 138
             foreach ($open_tags as $tag) {
139
-                $truncate .= '</' . $tag . '>';
139
+                $truncate .= '</'.$tag.'>';
140 140
             }
141 141
         }
142 142
 
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 //--></script>
210 210
 <!-- End Form Validation JavaScript //-->',
211 211
         ];
212
-        $paypalform   = [
212
+        $paypalform = [
213 213
             0 => '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">',
214 214
             1 => '<input name="cmd" value="_s-xclick" type="hidden">',
215 215
             2 => '<input name="hosted_button_id" value="%s" type="hidden">',
@@ -222,11 +222,11 @@  discard block
 block discarded – undo
222 222
                 case 2:
223 223
                     $donationform[$key] = sprintf(
224 224
                         $donationform[$key],
225
-                        $GLOBALS['xoopsConfig']['sitename'] . ' - ' . ('' != $GLOBALS['xoopsUser']->getVar('name') ? $GLOBALS['xoopsUser']->getVar('name') . ' [' . $GLOBALS['xoopsUser']->getVar('uname') . ']' : $GLOBALS['xoopsUser']->getVar('uname')),
225
+                        $GLOBALS['xoopsConfig']['sitename'].' - '.('' != $GLOBALS['xoopsUser']->getVar('name') ? $GLOBALS['xoopsUser']->getVar('name').' ['.$GLOBALS['xoopsUser']->getVar('uname').']' : $GLOBALS['xoopsUser']->getVar('uname')),
226 226
                         $GLOBALS['xoopsUser']->getVar('email'),
227 227
                         XOOPS_LICENSE_KEY,
228 228
                         mb_strtoupper($GLOBALS['xoopsModule']->getVar('dirname')),
229
-                        mb_strtoupper($GLOBALS['xoopsModule']->getVar('dirname')) . ' ' . $GLOBALS['xoopsModule']->getVar('name')
229
+                        mb_strtoupper($GLOBALS['xoopsModule']->getVar('dirname')).' '.$GLOBALS['xoopsModule']->getVar('name')
230 230
                     );
231 231
                     break;
232 232
             }
Please login to merge, or discard this patch.
class/autoload.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,15 +37,15 @@
 block discarded – undo
37 37
      */
38 38
     function application_autoloader($class)
39 39
     {
40
-        $classFilename = $class . '.php';
41
-        $cachePath     = XOOPS_VAR_PATH . '/caches/tdmcreate_cache';
40
+        $classFilename = $class.'.php';
41
+        $cachePath     = XOOPS_VAR_PATH.'/caches/tdmcreate_cache';
42 42
         if (!is_dir($cachePath)) {
43 43
             if (!mkdir($cachePath, 0777) && !is_dir($cachePath)) {
44 44
                 throw new \RuntimeException(sprintf('Directory "%s" was not created', $cachePath));
45 45
             }
46 46
             chmod($cachePath, 0777);
47 47
         }
48
-        $pathCache = file_exists($cacheFile = $cachePath . '/classpaths.cache') ? unserialize(file_get_contents($cacheFile)) : [];
48
+        $pathCache = file_exists($cacheFile = $cachePath.'/classpaths.cache') ? unserialize(file_get_contents($cacheFile)) : [];
49 49
         if (!is_array($pathCache)) {
50 50
             $pathCache = [];
51 51
         }
Please login to merge, or discard this patch.
class/Files/User/UserSingle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
         }
94 94
         if (1 == $table->getVar('table_category')) {
95 95
             $ccFieldPid = $this->getCamelCase($fieldPid, false, true);
96
-            $ret        .= $xc->getXcXoopsRequest($ccFieldPid, (string)$fieldPid, '0', 'Int');
96
+            $ret .= $xc->getXcXoopsRequest($ccFieldPid, (string)$fieldPid, '0', 'Int');
97 97
         }
98 98
         $ccFieldId = $this->getCamelCase($fieldId, false, true);
99 99
         $ret       .= $xc->getXcXoopsRequest($ccFieldId, (string)$fieldId, '0', 'Int');
Please login to merge, or discard this patch.
class/Files/User/UserVisit.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,10 +104,10 @@
 block discarded – undo
104 104
         }
105 105
         if (1 == $table->getVar('table_category')) {
106 106
             $ccFieldPid = $this->getCamelCase($fieldPid, false, true);
107
-            $ret        .= $this->xc->getXcXoopsRequest($ccFieldPid, (string)$fieldPid, '0', 'Int');
107
+            $ret .= $this->xc->getXcXoopsRequest($ccFieldPid, (string)$fieldPid, '0', 'Int');
108 108
         }
109 109
         $ccFieldId = $this->getCamelCase($fieldId, false, true);
110
-        $ret       .= $this->xc->getXcXoopsRequest($ccFieldId, (string)$fieldId, '0', 'Int');
110
+        $ret .= $this->xc->getXcXoopsRequest($ccFieldId, (string)$fieldId, '0', 'Int');
111 111
 
112 112
         return $ret;
113 113
     }
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     private $xc = null;
43 43
 	
44
-	/**
44
+    /**
45 45
      * @var string
46 46
      */
47 47
     private $pc = null;
Please login to merge, or discard this patch.
class/Files/Templates/user/MoreFiles.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
         $moduleDirname = $module->getVar('mod_dirname');
106 106
         $content       = $this->getTemplatesUserMoreFile();
107 107
 
108
-        $this->create($moduleDirname, $this->folder, $filename . '.' . $this->extension, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
108
+        $this->create($moduleDirname, $this->folder, $filename.'.'.$this->extension, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
109 109
 
110 110
         return $this->renderFile();
111 111
     }
Please login to merge, or discard this patch.
class/Files/Templates/user/Rate.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     private function getTemplatesUserRateHeader($moduleDirname, $table, $language)
81 81
     {
82
-        $ret    = <<<EOT
82
+        $ret = <<<EOT
83 83
 <{include file="db:{$moduleDirname}_header.tpl"}>
84 84
 <table class="{$moduleDirname}">
85 85
     <thead class="outer">
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id'));
89 89
         foreach (array_keys($fields) as $f) {
90 90
             $fieldName        = $fields[$f]->getVar('field_name');
91
-            $langStuFieldName = $language . mb_strtoupper($fieldName);
91
+            $langStuFieldName = $language.mb_strtoupper($fieldName);
92 92
             if ((1 == $table->getVar('table_autoincrement')) || (1 == $fields[$f]->getVar('field_user'))) {
93 93
                 $ret .= <<<EOT
94 94
             <th class="center"><{\$smarty.const.{$langStuFieldName}}></th>\n
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         <{foreach item=list from=\${$tableName}}>
120 120
             <tr class="<{cycle values='odd, even'}>">\n
121 121
 EOT;
122
-        $fields    = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id'));
122
+        $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id'));
123 123
         foreach (array_keys($fields) as $f) {
124 124
             $fieldName    = $fields[$f]->getVar('field_name');
125 125
             $fieldElement = $fields[$f]->getVar('field_element');
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
         <{foreach item=list from=\${$tableName}}>
176 176
             <tr class="<{cycle values='odd, even'}>">\n
177 177
 EOT;
178
-        $fields    = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id'));
178
+        $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id'));
179 179
         foreach (array_keys($fields) as $f) {
180 180
             $fieldName    = $fields[$f]->getVar('field_name');
181 181
             $fieldElement = $fields[$f]->getVar('field_element');
Please login to merge, or discard this patch.
class/Files/Templates/user/Search.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     private function getTemplatesUserSearchHeader($moduleDirname, $table, $language)
81 81
     {
82
-        $ret    = <<<EOT
82
+        $ret = <<<EOT
83 83
 <{include file="db:{$moduleDirname}_header.tpl"}>
84 84
 <table class="{$moduleDirname}">
85 85
     <thead class="outer">
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id'));
89 89
         foreach (array_keys($fields) as $f) {
90 90
             $fieldName        = $fields[$f]->getVar('field_name');
91
-            $langStuFieldName = $language . mb_strtoupper($fieldName);
91
+            $langStuFieldName = $language.mb_strtoupper($fieldName);
92 92
             if ((1 == $table->getVar('table_autoincrement')) || (1 == $fields[$f]->getVar('field_user'))) {
93 93
                 $ret .= <<<EOT
94 94
             <th class="center"><{\$smarty.const.{$langStuFieldName}}></th>\n
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         <{foreach item=list from=\${$tableName}}>
120 120
             <tr class="<{cycle values='odd, even'}>">\n
121 121
 EOT;
122
-        $fields    = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id'));
122
+        $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id'));
123 123
         foreach (array_keys($fields) as $f) {
124 124
             $fieldName    = $fields[$f]->getVar('field_name');
125 125
             $fieldElement = $fields[$f]->getVar('field_element');
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
         <{foreach item=list from=\${$tableName}}>
176 176
             <tr class="<{cycle values='odd, even'}>">\n
177 177
 EOT;
178
-        $fields    = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id'));
178
+        $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id'));
179 179
         foreach (array_keys($fields) as $f) {
180 180
             $fieldName    = $fields[$f]->getVar('field_name');
181 181
             $fieldElement = $fields[$f]->getVar('field_element');
Please login to merge, or discard this patch.
class/Files/Templates/user/UserPrint.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     private function getTemplatesUserPrintHeader($moduleDirname, $table, $language)
81 81
     {
82
-        $ret    = <<<EOT
82
+        $ret = <<<EOT
83 83
 <{include file="db:{$moduleDirname}_header.tpl"}>
84 84
 <table class="{$moduleDirname}">
85 85
     <thead class="outer">
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id'));
89 89
         foreach (array_keys($fields) as $f) {
90 90
             $fieldName        = $fields[$f]->getVar('field_name');
91
-            $langStuFieldName = $language . mb_strtoupper($fieldName);
91
+            $langStuFieldName = $language.mb_strtoupper($fieldName);
92 92
             if ((1 == $table->getVar('table_autoincrement')) || (1 == $fields[$f]->getVar('field_user'))) {
93 93
                 $ret .= <<<EOT
94 94
             <th class="center"><{\$smarty.const.{$langStuFieldName}}></th>\n
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         <{foreach item=list from=\${$tableName}}>
120 120
             <tr class="<{cycle values='odd, even'}>">\n
121 121
 EOT;
122
-        $fields    = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id'));
122
+        $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id'));
123 123
         foreach (array_keys($fields) as $f) {
124 124
             $fieldName    = $fields[$f]->getVar('field_name');
125 125
             $fieldElement = $fields[$f]->getVar('field_element');
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
         <{foreach item=list from=\${$tableName}}>
176 176
             <tr class="<{cycle values='odd, even'}>">\n
177 177
 EOT;
178
-        $fields    = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id'));
178
+        $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id'));
179 179
         foreach (array_keys($fields) as $f) {
180 180
             $fieldName    = $fields[$f]->getVar('field_name');
181 181
             $fieldElement = $fields[$f]->getVar('field_element');
Please login to merge, or discard this patch.