Completed
Push — master ( 8e4f41...38ab27 )
by Goffy
03:18
created
class/files/TDMCreateHtmlCode.php 1 patch
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     }
46 46
 
47 47
     /**
48
-    *  @public function getHtmlTag
48
+     *  @public function getHtmlTag
49 49
      * @param string $tag
50 50
      * @param array  $attributes
51 51
      * @param string $content
@@ -74,11 +74,11 @@  discard block
 block discarded – undo
74 74
     }
75 75
 
76 76
     /**
77
-    *  @private function setAttributes
78
-    *  @param array $attributes
79
-    *
80
-    * @return string
81
-    */
77
+     *  @private function setAttributes
78
+     *  @param array $attributes
79
+     *
80
+     * @return string
81
+     */
82 82
     private function getAttributes($attributes)
83 83
     {
84 84
         $str = '';
@@ -92,8 +92,8 @@  discard block
 block discarded – undo
92 92
     }
93 93
 
94 94
     /**
95
-    *  @public function getHtmlEmpty
96
-    *  @param string $empty
95
+     *  @public function getHtmlEmpty
96
+     *  @param string $empty
97 97
      *
98 98
      * @return string
99 99
      */
@@ -103,9 +103,9 @@  discard block
 block discarded – undo
103 103
     }
104 104
 
105 105
     /**
106
-    *  @public function getHtmlComment
107
-    *  @param string $htmlComment
108
-       * @return string
106
+     *  @public function getHtmlComment
107
+     *  @param string $htmlComment
108
+     * @return string
109 109
      */
110 110
     public function getHtmlComment($htmlComment = '')
111 111
     {
@@ -113,8 +113,8 @@  discard block
 block discarded – undo
113 113
     }
114 114
 
115 115
     /**
116
-    *  @public function getHtmlBr
117
-    *  @param int $brNumb
116
+     *  @public function getHtmlBr
117
+     *  @param int $brNumb
118 118
      * @param string $htmlClass
119 119
      * @param string $t
120 120
      * @return string
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     }
132 132
 
133 133
     /**
134
-    *  @public function getHtmlHNumb
134
+     *  @public function getHtmlHNumb
135 135
      * @param string $content
136 136
      * @param string $n
137 137
      * @param string $htmlHClass
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
     }
148 148
 
149 149
     /**
150
-    *  @public function getHtmlDiv
150
+     *  @public function getHtmlDiv
151 151
      * @param string $content
152 152
      * @param string $divClass
153 153
      * @param string $t
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
     }
165 165
 
166 166
     /**
167
-    *  @public function getHtmlPre
167
+     *  @public function getHtmlPre
168 168
      * @param string $content
169 169
      * @param string $preClass
170 170
      * @param string $t
@@ -181,8 +181,8 @@  discard block
 block discarded – undo
181 181
     }
182 182
 
183 183
     /**
184
-    *  @public function getHtmlSpan
185
-    *  @param string $content
184
+     *  @public function getHtmlSpan
185
+     *  @param string $content
186 186
      * @param string $spanClass
187 187
      * @param string $t
188 188
      * @return string
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
     }
197 197
 
198 198
     /**
199
-    *  @public function getHtmlParagraph
199
+     *  @public function getHtmlParagraph
200 200
      * @param string $content
201 201
      * @param string $pClass
202 202
      * @param string $t
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
     }
214 214
 
215 215
     /**
216
-    *  @public function getHtmlI
216
+     *  @public function getHtmlI
217 217
      * @param string $content
218 218
      * @param string $iClass
219 219
      * @param string $t
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
     }
229 229
 
230 230
     /**
231
-    *  @public function getHtmlUl
231
+     *  @public function getHtmlUl
232 232
      * @param string $content
233 233
      * @param string $ulClass
234 234
      * @param string $t
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
     }
246 246
 
247 247
     /**
248
-    *  @public function getHtmlOl
248
+     *  @public function getHtmlOl
249 249
      * @param string $content
250 250
      * @param string $olClass
251 251
      * @param string $t
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
     }
263 263
 
264 264
     /**
265
-    *  @public function getHtmlLi
265
+     *  @public function getHtmlLi
266 266
      * @param string $content
267 267
      * @param string $liClass
268 268
      * @param string $t
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
     }
277 277
 
278 278
     /**
279
-    *  @public function getHtmlStrong
279
+     *  @public function getHtmlStrong
280 280
      * @param string $content
281 281
      * @param string $strongClass
282 282
      * @param string $t
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
     }
291 291
 
292 292
     /**
293
-    *  @public function getHtmlAnchor
293
+     *  @public function getHtmlAnchor
294 294
      * @param string $url
295 295
      * @param string $content
296 296
      * @param string $title
@@ -310,9 +310,9 @@  discard block
 block discarded – undo
310 310
     }
311 311
 
312 312
     /**
313
-    *  @public function getHtmlImage
314
-    *  @param string $src
315
-    *  @param string $alt
313
+     *  @public function getHtmlImage
314
+     *  @param string $src
315
+     *  @param string $alt
316 316
      * @param string $imgClass
317 317
      * @param string $t
318 318
      * @return string
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
     }
327 327
 
328 328
     /**
329
-    *  @public function getHtmlTable
329
+     *  @public function getHtmlTable
330 330
      * @param string $content
331 331
      * @param string $tableClass
332 332
      * @param string $t
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
     }
344 344
 
345 345
     /**
346
-    *  @public function getHtmlTableThead
346
+     *  @public function getHtmlTableThead
347 347
      * @param string $content
348 348
      * @param string $theadClass
349 349
      * @param string $t
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
     }
361 361
 
362 362
     /**
363
-    *  @public function getHtmlTableTbody
363
+     *  @public function getHtmlTableTbody
364 364
      * @param string $content
365 365
      * @param string $tbodyClass
366 366
      * @param string $t
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
     }
378 378
 
379 379
     /**
380
-    *  @public function getHtmlTableTfoot
380
+     *  @public function getHtmlTableTfoot
381 381
      * @param string $content
382 382
      * @param string $tfootClass
383 383
      * @param string $t
@@ -394,12 +394,12 @@  discard block
 block discarded – undo
394 394
     }
395 395
 
396 396
     /**
397
-    *  @public function getHtmlTableRow
397
+     *  @public function getHtmlTableRow
398 398
      * @param string $content
399 399
      * @param string $trClass
400 400
      * @param string $t
401 401
      * @return string
402
-      */
402
+     */
403 403
     public function getHtmlTableRow($content = '', $trClass = '', $t = '')
404 404
     {
405 405
         $rTrClass = ('' != $trClass) ? " class='{$trClass}'" : '';
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
     }
412 412
 
413 413
     /**
414
-    *  @public function getHtmlTableHead
414
+     *  @public function getHtmlTableHead
415 415
      * @param string $content
416 416
      * @param string $thClass
417 417
      * @param string $colspan
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
     }
428 428
 
429 429
     /**
430
-    *  @public function getHtmlTableData
430
+     *  @public function getHtmlTableData
431 431
      * @param string $content
432 432
      * @param string $tdClass
433 433
      * @param string $colspan
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/SplClassLoader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,12 +142,12 @@
 block discarded – undo
142 142
             $namespace = '';
143 143
             if (false !== ($lastNsPos = strrpos($className, $this->_namespaceSeparator))) {
144 144
                 $namespace = substr($className, 0, $lastNsPos);
145
-                $className = substr($className, $lastNsPos + 1);
145
+                $className = substr($className, $lastNsPos+1);
146 146
                 $fileName = str_replace($this->_namespaceSeparator, DIRECTORY_SEPARATOR, $namespace).DIRECTORY_SEPARATOR;
147 147
             }
148 148
             $fileName .= str_replace('_', DIRECTORY_SEPARATOR, $className).$this->_fileExtension;
149 149
 
150
-            require(null !== $this->_includePath ? $this->_includePath . DIRECTORY_SEPARATOR : '') . $fileName;
150
+            require(null !== $this->_includePath ? $this->_includePath.DIRECTORY_SEPARATOR : '').$fileName;
151 151
         }
152 152
     }
153 153
 }
Please login to merge, or discard this patch.
admin/settings.php 1 patch
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -85,42 +85,42 @@
 block discarded – undo
85 85
         $setModuleDirname = preg_replace('/[^a-zA-Z0-9]\s+/', '', strtolower($_POST['set_dirname']));
86 86
         //Form module save
87 87
         $settingsObj->setVars([
88
-                                 'set_name' => $_POST['set_name'],
89
-                                 'set_dirname' => $setModuleDirname,
90
-                                 'set_version' => $_POST['set_version'],
91
-                                 'set_since' => $_POST['set_since'],
92
-                                 'set_min_php' => $_POST['set_min_php'],
93
-                                 'set_min_xoops' => $_POST['set_min_xoops'],
94
-                                 'set_min_admin' => $_POST['set_min_admin'],
95
-                                 'set_min_mysql' => $_POST['set_min_mysql'],
96
-                                 'set_description' => $_POST['set_description'],
97
-                                 'set_author' => $_POST['set_author'],
98
-                                 'set_author_mail' => $_POST['set_author_mail'],
99
-                                 'set_author_website_url' => $_POST['set_author_website_url'],
100
-                                 'set_author_website_name' => $_POST['set_author_website_name'],
101
-                                 'set_credits' => $_POST['set_credits'],
102
-                                 'set_license' => $_POST['set_license'],
103
-                                 'set_release_info' => $_POST['set_release_info'],
104
-                                 'set_release_file' => $_POST['set_release_file'],
105
-                                 'set_manual' => $_POST['set_manual'],
106
-                                 'set_manual_file' => $_POST['set_manual_file'],
107
-                              ]);
88
+                                    'set_name' => $_POST['set_name'],
89
+                                    'set_dirname' => $setModuleDirname,
90
+                                    'set_version' => $_POST['set_version'],
91
+                                    'set_since' => $_POST['set_since'],
92
+                                    'set_min_php' => $_POST['set_min_php'],
93
+                                    'set_min_xoops' => $_POST['set_min_xoops'],
94
+                                    'set_min_admin' => $_POST['set_min_admin'],
95
+                                    'set_min_mysql' => $_POST['set_min_mysql'],
96
+                                    'set_description' => $_POST['set_description'],
97
+                                    'set_author' => $_POST['set_author'],
98
+                                    'set_author_mail' => $_POST['set_author_mail'],
99
+                                    'set_author_website_url' => $_POST['set_author_website_url'],
100
+                                    'set_author_website_name' => $_POST['set_author_website_name'],
101
+                                    'set_credits' => $_POST['set_credits'],
102
+                                    'set_license' => $_POST['set_license'],
103
+                                    'set_release_info' => $_POST['set_release_info'],
104
+                                    'set_release_file' => $_POST['set_release_file'],
105
+                                    'set_manual' => $_POST['set_manual'],
106
+                                    'set_manual_file' => $_POST['set_manual_file'],
107
+                                ]);
108 108
         //Form set_image
109 109
         $settingsObj->setVar('set_image', $_POST['set_image']);
110 110
         //Form module save
111 111
         $settingsObj->setVars(
112 112
             [
113
-                                 'set_demo_site_url' => $_POST['set_demo_site_url'],
114
-                                 'set_demo_site_name' => $_POST['set_demo_site_name'],
115
-                                 'set_support_url' => $_POST['set_support_url'],
116
-                                 'set_support_name' => $_POST['set_support_name'],
117
-                                 'set_website_url' => $_POST['set_website_url'],
118
-                                 'set_website_name' => $_POST['set_website_name'],
119
-                                 'set_release' => $_POST['set_release'],
120
-                                 'set_status' => $_POST['set_status'],
121
-                                 'set_donations' => $_POST['set_donations'],
122
-                                 'set_subversion' => $_POST['set_subversion'],
123
-                              ]
113
+                                    'set_demo_site_url' => $_POST['set_demo_site_url'],
114
+                                    'set_demo_site_name' => $_POST['set_demo_site_name'],
115
+                                    'set_support_url' => $_POST['set_support_url'],
116
+                                    'set_support_name' => $_POST['set_support_name'],
117
+                                    'set_website_url' => $_POST['set_website_url'],
118
+                                    'set_website_name' => $_POST['set_website_name'],
119
+                                    'set_release' => $_POST['set_release'],
120
+                                    'set_status' => $_POST['set_status'],
121
+                                    'set_donations' => $_POST['set_donations'],
122
+                                    'set_subversion' => $_POST['set_subversion'],
123
+                                ]
124 124
         );
125 125
         $settingOption = XoopsRequest::getArray('setting_option', []);
126 126
         $settingsObj->setVar('set_admin', in_array('admin', $settingOption));
Please login to merge, or discard this patch.
include/functions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -61,10 +61,10 @@
 block discarded – undo
61 61
     }
62 62
     $aboutRes = '';
63 63
     $istart = strpos($about, $paypalform[0], 1);
64
-    $iend = strpos($about, $paypalform[5], $istart + 1) + strlen($paypalform[5]) - 1;
65
-    $aboutRes .= substr($about, 0, $istart - 1);
64
+    $iend = strpos($about, $paypalform[5], $istart+1)+strlen($paypalform[5])-1;
65
+    $aboutRes .= substr($about, 0, $istart-1);
66 66
     $aboutRes .= implode("\n", $donationform);
67
-    $aboutRes .= substr($about, $iend + 1, strlen($about) - $iend - 1);
67
+    $aboutRes .= substr($about, $iend+1, strlen($about)-$iend-1);
68 68
 
69 69
     return $aboutRes;
70 70
 }
Please login to merge, or discard this patch.
class/logoGenerator.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      * @param $logoIcon
50 50
      * @param $moduleName
51 51
      *
52
-     * @return bool|string
52
+     * @return false|string
53 53
      */
54 54
     public static function createLogo($logoIcon, $moduleName)
55 55
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 //include_once XOOPS_ROOT_PATH . '/modules/TDMCreate/include/common.php';
26 26
 
27 27
 if (function_exists($_GET['f'])) { // get function name and parameter  $_GET['f']($_GET["p"]);
28
-    include_once __DIR__ . '/logoGenerator.php';
28
+    include_once __DIR__.'/logoGenerator.php';
29 29
     $ret = logoGenerator::createLogo($_GET['iconName'], $_GET['caption']);
30 30
     phpFunction($ret);
31 31
 } else {
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
         // Write text
85 85
         $textColor = imagecolorallocate($imageModule, 0, 0, 0);
86
-        $spaceToBorder = (92 - strlen($moduleName) * 7.5) / 2;
86
+        $spaceToBorder = (92-strlen($moduleName) * 7.5) / 2;
87 87
         imagefttext($imageModule, 8.5, 0, $spaceToBorder, 45, $textColor, $font, $moduleName, []);
88 88
 
89 89
         imagecopy($imageModule, $imageIcon, 29, 2, 0, 0, 32, 32);
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.
class/files/TDMCreateXoopsCode.php 3 patches
Indentation   +134 added lines, -134 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
 class TDMCreateXoopsCode
29 29
 {
30 30
     /**
31
-    *  @static function getInstance
32
-    *  @param null
33
-    */
31
+     *  @static function getInstance
32
+     *  @param null
33
+     */
34 34
     /**
35 35
      * @return TDMCreateXoopsCode
36 36
      */
@@ -63,15 +63,15 @@  discard block
 block discarded – undo
63 63
     }
64 64
 
65 65
     /**
66
-    *  @public function getXcEqualsOperator
67
-    *  @param $var
68
-    *  @param $value
69
-    *  @param $interlock
70
-    *  @param $ref
71
-    *  @param $t - Indentation
72
-    *
73
-    *  @return string
74
-    */
66
+     *  @public function getXcEqualsOperator
67
+     *  @param $var
68
+     *  @param $value
69
+     *  @param $interlock
70
+     *  @param $ref
71
+     *  @param $t - Indentation
72
+     *
73
+     *  @return string
74
+     */
75 75
     public function getXcEqualsOperator($var, $value, $interlock = null, $ref = false, $t = '')
76 76
     {
77 77
         if (false === $ref) {
@@ -84,20 +84,20 @@  discard block
 block discarded – undo
84 84
     }
85 85
 
86 86
     /**
87
-    *  @public function getXcCPHeader
88
-    *  @param null
89
-    *  @return string
90
-    */
87
+     *  @public function getXcCPHeader
88
+     *  @param null
89
+     *  @return string
90
+     */
91 91
     public function getXcCPHeader()
92 92
     {
93 93
         return "xoops_cp_header();\n";
94 94
     }
95 95
 
96 96
     /**
97
-    *  @public function getXcCPFooter
98
-    *  @param null
99
-    *  @return string
100
-    */
97
+     *  @public function getXcCPFooter
98
+     *  @param null
99
+     *  @return string
100
+     */
101 101
     public function getXcCPFooter()
102 102
     {
103 103
         return "xoops_cp_footer();\n";
@@ -129,14 +129,14 @@  discard block
 block discarded – undo
129 129
     }
130 130
 
131 131
     /**
132
-    *  @public function getXcAnchorFunction
133
-    *  @param $anchor
134
-    *  @param $name
135
-    *  @param $vars
136
-    *  @param $close
137
-    *
138
-    *  @return string
139
-    */
132
+     *  @public function getXcAnchorFunction
133
+     *  @param $anchor
134
+     *  @param $name
135
+     *  @param $vars
136
+     *  @param $close
137
+     *
138
+     *  @return string
139
+     */
140 140
     public function getXcAnchorFunction($anchor, $name, $vars, $close = false)
141 141
     {
142 142
         $semicolon = false !== $close ? ';' : '';
@@ -145,28 +145,28 @@  discard block
 block discarded – undo
145 145
     }
146 146
 
147 147
     /**
148
-    *  @public function getXcSetVar
149
-    *  @param $tableName
150
-    *  @param $fieldName
151
-    *  @param $var
148
+     *  @public function getXcSetVar
149
+     *  @param $tableName
150
+     *  @param $fieldName
151
+     *  @param $var
152 152
      * @param $t
153
-    *  @return string
154
-    */
153
+     *  @return string
154
+     */
155 155
     public function getXcSetVar($tableName, $fieldName, $var, $t = '')
156 156
     {
157 157
         return "{$t}\${$tableName}Obj->setVar('{$fieldName}', {$var});\n";
158 158
     }
159 159
 
160 160
     /**
161
-    *  @public function getXcGetVar
162
-    *  @param $varLeft
163
-    *  @param $handle
164
-    *  @param $var
165
-    *  @param $isParam
161
+     *  @public function getXcGetVar
162
+     *  @param $varLeft
163
+     *  @param $handle
164
+     *  @param $var
165
+     *  @param $isParam
166 166
      * @param $t
167
-    *
168
-    *  @return string
169
-    */
167
+     *
168
+     *  @return string
169
+     */
170 170
     public function getXcGetVar($varLeft = '', $handle = '', $var = '', $isParam = false, $t = '')
171 171
     {
172 172
         if (!$isParam) {
@@ -179,31 +179,31 @@  discard block
 block discarded – undo
179 179
     }
180 180
 
181 181
     /**
182
-    *  @public function getXcGroupPermForm
183
-    *  @param $varLeft
184
-    *  @param $formTitle
185
-    *  @param $moduleId
186
-    *  @param $permName
187
-    *  @param $permDesc
188
-    *  @param $filename
182
+     *  @public function getXcGroupPermForm
183
+     *  @param $varLeft
184
+     *  @param $formTitle
185
+     *  @param $moduleId
186
+     *  @param $permName
187
+     *  @param $permDesc
188
+     *  @param $filename
189 189
      * @param $t
190
-    *
191
-    *  @return string
192
-    */
190
+     *
191
+     *  @return string
192
+     */
193 193
     public function getXcGroupPermForm($varLeft = '', $formTitle = '', $moduleId = '', $permName = '', $permDesc = '', $filename = '', $t = '')
194 194
     {
195 195
         return "{$t}\${$varLeft} = new XoopsGroupPermForm({$formTitle}, {$moduleId}, {$permName}, {$permDesc}, {$filename});\n";
196 196
     }
197 197
 
198 198
     /**
199
-    *  @public function getXcAddItem
200
-    *  @param $varLeft
201
-    *  @param $paramLeft
202
-    *  @param $paramRight
203
-    * @param $t
204
-    *
205
-    *  @return string
206
-    */
199
+     *  @public function getXcAddItem
200
+     *  @param $varLeft
201
+     *  @param $paramLeft
202
+     *  @param $paramRight
203
+     * @param $t
204
+     *
205
+     *  @return string
206
+     */
207 207
     public function getXcAddItem($varLeft = '', $paramLeft = '', $paramRight = '', $t = '')
208 208
     {
209 209
         return "{$t}\${$varLeft}->addItem({$paramLeft}, {$paramRight});\n";
@@ -260,25 +260,25 @@  discard block
 block discarded – undo
260 260
     }
261 261
 
262 262
     /**
263
-    *  @public function getXcCheckBoxOrRadioYNSetVar
264
-    *  @param $tableName
265
-    *  @param $fieldName
263
+     *  @public function getXcCheckBoxOrRadioYNSetVar
264
+     *  @param $tableName
265
+     *  @param $fieldName
266 266
      * @param $t
267
-    *  @return string
268
-    */
267
+     *  @return string
268
+     */
269 269
     public function getXcCheckBoxOrRadioYNSetVar($tableName, $fieldName, $t = '')
270 270
     {
271 271
         return $this->getXcSetVar($tableName, $fieldName, "((1 == \$_REQUEST['{$fieldName}']) ? '1' : '0')", $t);
272 272
     }
273 273
 
274 274
     /**
275
-    *  @public function getXcMediaUploader
276
-    *  @param $var
277
-    *  @param $dirPath
278
-    *  @param $moduleDirname
275
+     *  @public function getXcMediaUploader
276
+     *  @param $var
277
+     *  @param $dirPath
278
+     *  @param $moduleDirname
279 279
      * @param $t
280
-    *  @return string
281
-    */
280
+     *  @return string
281
+     */
282 282
     public function getXcMediaUploader($var, $dirPath, $moduleDirname, $t = '')
283 283
     {
284 284
         $mimetypes = $this->getXcGetConfig($moduleDirname, 'mimetypes');
@@ -290,72 +290,72 @@  discard block
 block discarded – undo
290 290
     }
291 291
 
292 292
     /**
293
-    *  @public function getXcXoopsCaptcha
294
-    *  @param $var
295
-    *  @param $instance
296
-    * @param $t
297
-    *
298
-    *  @return string
299
-    */
293
+     *  @public function getXcXoopsCaptcha
294
+     *  @param $var
295
+     *  @param $instance
296
+     * @param $t
297
+     *
298
+     *  @return string
299
+     */
300 300
     public function getXcGetInstance($var = '', $instance = '', $t = '')
301 301
     {
302 302
         return "{$t}\${$var} = {$instance}::getInstance();\n";
303 303
     }
304 304
 
305 305
     /**
306
-    *  @public function getXcXoopsCaptcha
307
-    *  @param $t
308
-    *  @return string
309
-    */
306
+     *  @public function getXcXoopsCaptcha
307
+     *  @param $t
308
+     *  @return string
309
+     */
310 310
     public function getXcXoopsCaptcha($t = '')
311 311
     {
312 312
         return "{$t}\$xoopsCaptcha = XoopsCaptcha::getInstance();\n";
313 313
     }
314 314
 
315 315
     /**
316
-    *  @public function getXcXoopsImgListArray
317
-    *  @param $return
318
-    *  @param $var
319
-    *  @param $t
320
-    *
321
-    *  @return string
322
-    */
316
+     *  @public function getXcXoopsImgListArray
317
+     *  @param $return
318
+     *  @param $var
319
+     *  @param $t
320
+     *
321
+     *  @return string
322
+     */
323 323
     public function getXcXoopsImgListArray($return, $var, $t = '')
324 324
     {
325 325
         return "{$t}\${$return} = XoopsLists::getImgListAsArray( {$var} );\n";
326 326
     }
327 327
 
328 328
     /**
329
-    *  @public function getXcGetConfig
330
-    *  @param $moduleDirname
331
-    *  @param $name
332
-    *  @return string
333
-    */
329
+     *  @public function getXcGetConfig
330
+     *  @param $moduleDirname
331
+     *  @param $name
332
+     *  @return string
333
+     */
334 334
     public function getXcGetConfig($moduleDirname, $name)
335 335
     {
336 336
         return "\${$moduleDirname}->getConfig('{$name}')";
337 337
     }
338 338
 
339 339
     /**
340
-    *  @public function getXcIdGetVar
341
-    *  @param $lpFieldName
342
-    * @param $t
343
-    *  @return string
344
-    */
340
+     *  @public function getXcIdGetVar
341
+     *  @param $lpFieldName
342
+     * @param $t
343
+     *  @return string
344
+     */
345 345
     public function getXcIdGetVar($lpFieldName, $t = '')
346 346
     {
347 347
         return "{$t}\${$lpFieldName}['id'] = \$i;\n";
348 348
     }
349 349
 
350 350
     /**
351
-    *  @public function getXcGetVarAll
352
-    *  @param $lpFieldName
353
-    *  @param $rpFieldName
354
-    *  @param $tableName
355
-    *  @param $fieldName
351
+     *  @public function getXcGetVarAll
352
+     *  @param $lpFieldName
353
+     *  @param $rpFieldName
354
+     *  @param $tableName
355
+     *  @param $fieldName
356 356
      * @param $t
357
-    *  @return string
358
-    */
357
+     *  @return string
358
+     */
359 359
     public function getXcGetVarAll($lpFieldName, $rpFieldName, $tableName, $fieldName, $t = '')
360 360
     {
361 361
         return "{$t}\${$lpFieldName}['{$rpFieldName}'] = \${$tableName}All[\$i]->getVar('{$fieldName}');\n";
@@ -390,14 +390,14 @@  discard block
 block discarded – undo
390 390
     }
391 391
 
392 392
     /**
393
-    *  @public function getXoopsClearHandler
394
-    *  @param $left
395
-    *  @param $anchor
396
-    *  @param $var
393
+     *  @public function getXoopsClearHandler
394
+     *  @param $left
395
+     *  @param $anchor
396
+     *  @param $var
397 397
      * @param $t
398 398
      *
399
-    *  @return string
400
-    */
399
+     *  @return string
400
+     */
401 401
     public function getXoopsClearHandler($left, $anchor, $var, $t = '')
402 402
     {
403 403
         return "{$t}\${$left}Handler = \${$anchor}->getHandler('{$var}');\n";
@@ -539,13 +539,13 @@  discard block
 block discarded – undo
539 539
         return $ret;
540 540
     }
541 541
     /**
542
-    *  @public function getXcUrlFileGetVar
543
-    *  @param $lpFieldName
544
-    *  @param $rpFieldName
545
-    *  @param $tableName
546
-    *  @param $fieldName
547
-    *  @return string
548
-    */
542
+     *  @public function getXcUrlFileGetVar
543
+     *  @param $lpFieldName
544
+     *  @param $rpFieldName
545
+     *  @param $tableName
546
+     *  @param $fieldName
547
+     *  @return string
548
+     */
549 549
     public function getXcUrlFileGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName)
550 550
     {
551 551
         return $this->getXcGetVarAll($lpFieldName, $rpFieldName, $tableName, $fieldName);
@@ -609,11 +609,11 @@  discard block
 block discarded – undo
609 609
     }
610 610
 
611 611
     /**
612
-    *  @public function getXcUserHeader
613
-    *  @param $moduleDirname
614
-    *  @param $tableName
615
-    *  @return string
616
-    */
612
+     *  @public function getXcUserHeader
613
+     *  @param $moduleDirname
614
+     *  @param $tableName
615
+     *  @return string
616
+     */
617 617
     public function getXcUserHeader($moduleDirname, $tableName)
618 618
     {
619 619
         $phpCodeUserHeader = TDMCreatePhpCode::getInstance();
@@ -625,8 +625,8 @@  discard block
 block discarded – undo
625 625
     }
626 626
 
627 627
     /**
628
-    *  @public function getXcPermissionsHeader
629
-    *  @param null
628
+     *  @public function getXcPermissionsHeader
629
+     *  @param null
630 630
      * @return string
631 631
      */
632 632
     public function getXcPermissionsHeader()
@@ -1165,20 +1165,20 @@  discard block
 block discarded – undo
1165 1165
     }
1166 1166
 
1167 1167
     /**
1168
-    *  @public function getXcSecurityCheck
1169
-    *  @param $denial
1170
-    *  @return boolean
1171
-    */
1168
+     *  @public function getXcSecurityCheck
1169
+     *  @param $denial
1170
+     *  @return boolean
1171
+     */
1172 1172
     public function getXcSecurityCheck($denial = '')
1173 1173
     {
1174 1174
         return "{$denial}\$GLOBALS['xoopsSecurity']->check()";
1175 1175
     }
1176 1176
 
1177 1177
     /**
1178
-    *  @public function getXcSecurityErrors
1179
-    *  @param null
1180
-    *  @return string
1181
-    */
1178
+     *  @public function getXcSecurityErrors
1179
+     *  @param null
1180
+     *  @return string
1181
+     */
1182 1182
     public function getXcSecurityErrors()
1183 1183
     {
1184 1184
         return "\$GLOBALS['xoopsSecurity']->getErrors()";
Please login to merge, or discard this patch.
Doc Comments   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     *  @public function getXcEqualsOperator
67 67
     *  @param $var
68 68
     *  @param $value
69
-    *  @param $interlock
69
+    *  @param boolean|string $interlock
70 70
     *  @param $ref
71 71
     *  @param $t - Indentation
72 72
     *
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     /**
119 119
      *  @public function getXcLoadLanguage
120 120
      *
121
-     *  @param $lang
121
+     *  @param string $lang
122 122
      *  @param $t
123 123
      *  @param $domain
124 124
      *
@@ -135,9 +135,9 @@  discard block
 block discarded – undo
135 135
 
136 136
     /**
137 137
     *  @public function getXcAnchorFunction
138
-    *  @param $anchor
139
-    *  @param $name
140
-    *  @param $vars
138
+    *  @param string $anchor
139
+    *  @param string $name
140
+    *  @param string $vars
141 141
     *  @param $close
142 142
     *
143 143
     *  @return string
@@ -219,8 +219,8 @@  discard block
 block discarded – undo
219 219
      * @param string $var
220 220
      * @param string $anchor
221 221
      * @param        $param1
222
-     * @param        $param2
223
-     * @param        $param3
222
+     * @param        string $param2
223
+     * @param        string $param3
224 224
      * @param string $t
225 225
      * @return string
226 226
      */
@@ -234,8 +234,8 @@  discard block
 block discarded – undo
234 234
      * @param string $var
235 235
      * @param string $anchor
236 236
      * @param        $param1
237
-     * @param        $param2
238
-     * @param        $param3
237
+     * @param        string $param2
238
+     * @param        string $param3
239 239
      * @param string $t
240 240
      * @return string
241 241
      */
@@ -278,8 +278,8 @@  discard block
 block discarded – undo
278 278
 
279 279
     /**
280 280
     *  @public function getXcMediaUploader
281
-    *  @param $var
282
-    *  @param $dirPath
281
+    *  @param string $var
282
+    *  @param string $dirPath
283 283
     *  @param $moduleDirname
284 284
      * @param $t
285 285
     *  @return string
@@ -319,8 +319,8 @@  discard block
 block discarded – undo
319 319
 
320 320
     /**
321 321
     *  @public function getXcXoopsImgListArray
322
-    *  @param $return
323
-    *  @param $var
322
+    *  @param string $return
323
+    *  @param string $var
324 324
     *  @param $t
325 325
     *
326 326
     *  @return string
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
     /**
334 334
     *  @public function getXcGetConfig
335 335
     *  @param $moduleDirname
336
-    *  @param $name
336
+    *  @param string $name
337 337
     *  @return string
338 338
     */
339 339
     public function getXcGetConfig($moduleDirname, $name)
@@ -856,11 +856,11 @@  discard block
 block discarded – undo
856 856
     /**
857 857
      * @public function getXcGetInfo
858 858
      *
859
-     * @param        $left
860
-     * @param        $string
859
+     * @param        string string
860
+     * @param        string $string
861 861
      * @param bool   $isParam
862 862
      *
863
-     * @param string $t
863
+     * @param string string
864 864
      * @return string
865 865
      */
866 866
     public function getXcGetInfo($left, $string, $isParam = false, $t = '')
@@ -877,7 +877,7 @@  discard block
 block discarded – undo
877 877
     /**
878 878
      * @public function getXcAddRight
879 879
      *
880
-     * @param        $anchor
880
+     * @param        string $anchor
881 881
      * @param string $permString
882 882
      * @param string $var
883 883
      * @param string $groups
@@ -901,7 +901,7 @@  discard block
 block discarded – undo
901 901
     /**
902 902
      * @public function getXcCheckRight
903 903
      *
904
-     * @param        $anchor
904
+     * @param        string $anchor
905 905
      * @param string $permString
906 906
      * @param string $var
907 907
      * @param string $groups
@@ -953,7 +953,7 @@  discard block
 block discarded – undo
953 953
 
954 954
     /**
955 955
      *  @public function getXcClearCount
956
-     * @param  $left
956
+     * @param  string $left
957 957
      *  @param $anchor
958 958
      *  @param  $params
959 959
      *  @param $t
@@ -990,7 +990,7 @@  discard block
 block discarded – undo
990 990
 
991 991
     /**
992 992
      * @public function getXcClearHandlerAll
993
-     * @param        $left
993
+     * @param        string $left
994 994
      * @param string $anchor
995 995
      * @param string $params
996 996
      * @param string $t
@@ -1116,7 +1116,7 @@  discard block
 block discarded – undo
1116 1116
     /**
1117 1117
      * @public function getXcRedirectHeader
1118 1118
      * @param        $directory
1119
-     * @param        $options
1119
+     * @param        string $options
1120 1120
      * @param        $numb
1121 1121
      * @param        $var
1122 1122
      * @param bool   $isString
@@ -1218,7 +1218,7 @@  discard block
 block discarded – undo
1218 1218
     /**
1219 1219
      * @public function getXcObjHandlerCount
1220 1220
      *
1221
-     * @param        $left
1221
+     * @param        string $left
1222 1222
      * @param        $tableName
1223 1223
      * @param string $obj
1224 1224
      *
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -474,7 +474,7 @@  discard block
 block discarded – undo
474 474
         $pTopic = TDMCreatePhpCode::getInstance();
475 475
         $ret = $pTopic->getPhpCodeCommentLine('Get Var', $fieldNameParent, $t);
476 476
         $fieldParent = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldNameParent, true, '');
477
-        $ret .= $this->getXcGet($rpFieldName, $fieldParent, '', $tableNameTopic . 'Handler', false, $t);
477
+        $ret .= $this->getXcGet($rpFieldName, $fieldParent, '', $tableNameTopic.'Handler', false, $t);
478 478
         $ret .= $this->getXcGetVar("\${$lpFieldName}['{$rpFieldName}']", "\${$rpFieldName}", $fieldNameTopic, false, $t);
479 479
 
480 480
         return $ret;
@@ -496,7 +496,7 @@  discard block
 block discarded – undo
496 496
     {
497 497
         $pParentTopic = TDMCreatePhpCode::getInstance();
498 498
         $parentTopic = $pParentTopic->getPhpCodeCommentLine('Get', $tableNameTopic.' Handler', $t."\t");
499
-        $parentTopic .= $this->getXoopsHandlerLine($moduleDirname, $tableNameTopic, $t . "\t");
499
+        $parentTopic .= $this->getXoopsHandlerLine($moduleDirname, $tableNameTopic, $t."\t");
500 500
         $elseGroups = $this->getXcEqualsOperator('$groups', 'XOOPS_GROUP_ANONYMOUS');
501 501
         $ret = $pParentTopic->getPhpCodeConditions("!isset(\${$tableNameTopic}Handler", '', '', $parentTopic, $elseGroups);
502 502
         $ret .= $this->getXcGetVarFromID("\${$lpFieldName}['{$rpFieldName}']", $tableNameTopic, $tableSoleNameTopic, $tableName, $fieldNameParent, $t);
@@ -519,7 +519,7 @@  discard block
 block discarded – undo
519 519
         $pVarFromID = TDMCreatePhpCode::getInstance();
520 520
         $ret = $pVarFromID->getPhpCodeCommentLine('Get Var', $fieldName, $t);
521 521
         $getVarFromID = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldName, true, '');
522
-        $rightGet = $this->getXcAnchorFunction($anchor . 'Handler', 'get' . $var . 'FromId', $getVarFromID);
522
+        $rightGet = $this->getXcAnchorFunction($anchor.'Handler', 'get'.$var.'FromId', $getVarFromID);
523 523
         $ret .= $this->getXcEqualsOperator($left, $rightGet, null, false, $t);
524 524
 
525 525
         return $ret;
@@ -849,7 +849,7 @@  discard block
 block discarded – undo
849 849
         if ($usedoublequotes) {
850 850
             return "{$t}\$GLOBALS['xoopsTpl']->display(\"db:{$displayTpl}\");\n";
851 851
         } else {
852
-            return "{$t}\$GLOBALS['xoopsTpl']->display('db:" . $displayTpl . "');\n";
852
+            return "{$t}\$GLOBALS['xoopsTpl']->display('db:".$displayTpl."');\n";
853 853
         }
854 854
     }
855 855
 
@@ -1091,7 +1091,7 @@  discard block
 block discarded – undo
1091 1091
         $phpCodeSecurity = TDMCreatePhpCode::getInstance();
1092 1092
         $securityError = $this->getXcSecurityErrors();
1093 1093
         $implode = $phpCodeSecurity->getPhpCodeImplode(',', $securityError);
1094
-        $content = "{$t}\t" . $this->getXcRedirectHeader($tableName, '', 3, $implode, $t);
1094
+        $content = "{$t}\t".$this->getXcRedirectHeader($tableName, '', 3, $implode, $t);
1095 1095
         $securityCheck = $this->getXcSecurityCheck();
1096 1096
 
1097 1097
         return $phpCodeSecurity->getPhpCodeConditions('!'.$securityCheck, '', '', $content, $t);
@@ -1107,7 +1107,7 @@  discard block
 block discarded – undo
1107 1107
     public function getXcInsertData($tableName, $language, $t = '')
1108 1108
     {
1109 1109
         $phpCodeInsertData = TDMCreatePhpCode::getInstance();
1110
-        $content = "{$t}\t" . $this->getXcRedirectHeader($tableName, '?op=list', 2, "{$language}FORM_OK");
1110
+        $content = "{$t}\t".$this->getXcRedirectHeader($tableName, '?op=list', 2, "{$language}FORM_OK");
1111 1111
         $handlerInsert = $this->getXcHandler($tableName, $tableName, false, true, false, 'Obj');
1112 1112
 
1113 1113
         return $phpCodeInsertData->getPhpCodeConditions($handlerInsert, '', '', $content, $t);
@@ -1154,7 +1154,7 @@  discard block
 block discarded – undo
1154 1154
         $phpXoopsConfirm = TDMCreatePhpCode::getInstance();
1155 1155
         $array = "array('ok' => 1, '{$fieldId}' => \${$ccFieldId}, 'op' => '{$options}')";
1156 1156
         $server = $phpXoopsConfirm->getPhpCodeGlobalsVariables('REQUEST_URI', 'SERVER');
1157
-        $getVar = $this->getXcGetVar('', $tableName . 'Obj', $fieldMain, true, '');
1157
+        $getVar = $this->getXcGetVar('', $tableName.'Obj', $fieldMain, true, '');
1158 1158
         $sprintf = $phpXoopsConfirm->getPhpCodeSprintf($language.'FORM_SURE_'.$stuOptions, $getVar);
1159 1159
         $ret = "{$t}xoops_confirm({$array}, {$server}, {$sprintf});\n";
1160 1160
 
@@ -1328,7 +1328,7 @@  discard block
 block discarded – undo
1328 1328
     {
1329 1329
         $ret = TDMCreatePhpCode::getInstance()->getPhpCodeCommentLine('Get Var', $fieldNameParent, $t);
1330 1330
         $paramGet = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldNameParent, true, '');
1331
-        $ret .= $this->getXcGet($rpFieldName, $paramGet, '', $tableNameTopic . 'Handler', false, $t);
1331
+        $ret .= $this->getXcGet($rpFieldName, $paramGet, '', $tableNameTopic.'Handler', false, $t);
1332 1332
         $ret .= $this->getXcGetVar("\${$lpFieldName}['{$rpFieldName}']", "\${$rpFieldName}", $fieldNameTopic, false, $t);
1333 1333
 
1334 1334
         return $ret;
@@ -1416,18 +1416,18 @@  discard block
 block discarded – undo
1416 1416
                 $fieldMain = $fieldName;
1417 1417
             }
1418 1418
             if ((5 == $fieldElement) || (6 == $fieldElement)) {
1419
-                $ret .= $t . $this->getXcCheckBoxOrRadioYNSetVar($tableName, $fieldName);
1419
+                $ret .= $t.$this->getXcCheckBoxOrRadioYNSetVar($tableName, $fieldName);
1420 1420
             } elseif (13 == $fieldElement) {
1421 1421
                 $ret .= $axCodeSaveElements->getAxcUploadImageSetVar($moduleDirname, $tableName, $fieldName, $fieldMain);
1422 1422
             } elseif (14 == $fieldElement) {
1423 1423
                 $ret .= $axCodeSaveElements->getAxcUploadFileSetVar($moduleDirname, $tableName, $fieldName);
1424 1424
             } elseif (15 == $fieldElement) {
1425
-                $ret .= $t . $this->getXcTextDateSelectSetVar($tableName, $tableSoleName, $fieldName);
1425
+                $ret .= $t.$this->getXcTextDateSelectSetVar($tableName, $tableSoleName, $fieldName);
1426 1426
             } else {
1427 1427
                 if ((0 != $f) && 1 == $tableAutoincrement) {
1428
-                    $ret .= $t . $this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']");
1428
+                    $ret .= $t.$this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']");
1429 1429
                 } elseif ((0 == $f) && 0 == $tableAutoincrement) {
1430
-                    $ret .= $t . $this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']");
1430
+                    $ret .= $t.$this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']");
1431 1431
                 }
1432 1432
             }
1433 1433
         }
@@ -1449,7 +1449,7 @@  discard block
 block discarded – undo
1449 1449
         $ret = $phpCodePageNav->getPhpCodeCommentLine('Display Navigation', null, $t);
1450 1450
         $condition = $phpCodePageNav->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/pagenav', true, false, 'include', $t."\t");
1451 1451
         $condition .= $classXCode->getClassXoopsPageNav('pagenav', $tableName.'Count', 'limit', 'start', 'start', "'op=list&limit=' . \$limit", false, $t."\t");
1452
-        $condition .= $this->getXcTplAssign('pagenav', '$pagenav->renderNav(4)', true, $t . "\t");
1452
+        $condition .= $this->getXcTplAssign('pagenav', '$pagenav->renderNav(4)', true, $t."\t");
1453 1453
         $ret .= $phpCodePageNav->getPhpCodeConditions("\${$tableName}Count", ' > ', '$limit', $condition, false, $t);
1454 1454
 
1455 1455
         return $ret;
Please login to merge, or discard this patch.
class/files/language/LanguageDefines.php 2 patches
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -28,14 +28,14 @@  discard block
 block discarded – undo
28 28
 class LanguageDefines
29 29
 {
30 30
     /**
31
-    * @var mixed
32
-    */
31
+     * @var mixed
32
+     */
33 33
     protected $defines;
34 34
 
35 35
     /**
36
-    *  @public function constructor
37
-    *  @param null
38
-    */
36
+     *  @public function constructor
37
+     *  @param null
38
+     */
39 39
 
40 40
     public function __construct()
41 41
     {
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
     }
44 44
 
45 45
     /**
46
-    *  @static function getInstance
47
-    *  @param null
46
+     *  @static function getInstance
47
+     *  @param null
48 48
      * @return LanguageDefines
49 49
      */
50 50
     public static function getInstance()
@@ -58,33 +58,33 @@  discard block
 block discarded – undo
58 58
     }
59 59
 
60 60
     /**
61
-    *  @public function getAboveHeadDefines
62
-    *  @param string $string
63
-    *  @return string
64
-    */
61
+     *  @public function getAboveHeadDefines
62
+     *  @param string $string
63
+     *  @return string
64
+     */
65 65
     public function getAboveHeadDefines($string)
66 66
     {
67 67
         return "// ---------------- {$string} ----------------\n";
68 68
     }
69 69
 
70 70
     /**
71
-    *  @public function getAboveDefines
72
-    *  @param string $string
73
-    *  @return string
74
-    */
71
+     *  @public function getAboveDefines
72
+     *  @param string $string
73
+     *  @return string
74
+     */
75 75
     public function getAboveDefines($string)
76 76
     {
77 77
         return "// {$string}\n";
78 78
     }
79 79
 
80 80
     /**
81
-    *  @public function getDefine
82
-    *  @param string $language
83
-    *  @param string $defined
84
-    *  @param string $description
85
-    *  @param bool   $usedoubleqoute
86
-    *  @return string
87
-    */
81
+     *  @public function getDefine
82
+     *  @param string $language
83
+     *  @param string $defined
84
+     *  @param string $description
85
+     *  @param bool   $usedoubleqoute
86
+     *  @return string
87
+     */
88 88
     public function getDefine($language, $defined, $description, $usedoubleqoute = false)
89 89
     {
90 90
         $defined = strtoupper($defined);
@@ -98,8 +98,8 @@  discard block
 block discarded – undo
98 98
     }
99 99
 
100 100
     /**
101
-    *  @public function getBelowDefines
102
-    *  @param string $string
101
+     *  @public function getBelowDefines
102
+     *  @param string $string
103 103
      *
104 104
      * @return string
105 105
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
         if ($usedoubleqoute) {
93 93
             $ret = $this->phpcode->getPhpCodeDefine("{$language}{$defined}", "\"{$description}\"");
94 94
         } else {
95
-            $ret = $this->phpcode->getPhpCodeDefine("{$language}{$defined}", "'" . $description . "'");
95
+            $ret = $this->phpcode->getPhpCodeDefine("{$language}{$defined}", "'".$description."'");
96 96
         }
97 97
         return $ret;
98 98
     }
Please login to merge, or discard this patch.