Completed
Push — master ( bb5c69...2e7c79 )
by Gino
06:03 queued 02:48
created
class/files/admin/AdminXoopsCode.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     *  @param null
33 33
     */
34 34
     /**
35
-     * @return Axc
35
+     * @return AdminXoopsCode
36 36
      */
37 37
     public static function &getInstance()
38 38
     {
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
     /**
316 316
      *  @public function getAxcFetchMedia
317 317
      *
318
-     *  @param $anchor
318
+     *  @param string $anchor
319 319
      *  @param $var
320 320
      *
321 321
      *  @return string
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
     /**
329 329
      *  @public function getAxcSetPrefix
330 330
      *
331
-     *  @param $anchor
331
+     *  @param string $anchor
332 332
      *  @param $var
333 333
      *
334 334
      *  @return string
Please login to merge, or discard this patch.
class/files/TDMCreatePhpCode.php 1 patch
Doc Comments   +44 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,6 +61,10 @@  discard block
 block discarded – undo
61 61
     *  @param $var
62 62
     *  @return string
63 63
     */
64
+
65
+    /**
66
+     * @param string $comment
67
+     */
64 68
     public function getPhpCodeCommentLine($comment = null, $var = null, $t = '')
65 69
     {
66 70
         $value = !empty($var) ? ' '.$var : '';
@@ -140,6 +144,10 @@  discard block
 block discarded – undo
140 144
     *
141 145
     *  @return string
142 146
     */
147
+
148
+    /**
149
+     * @param string $var
150
+     */
143 151
     public function getPhpCodeGlobalsVariables($var = null, $type = 'REQUEST')
144 152
     {
145 153
         $type = strtoupper($type);
@@ -201,6 +209,11 @@  discard block
 block discarded – undo
201 209
     *
202 210
     *  @return string
203 211
     */
212
+
213
+    /**
214
+     * @param string $directory
215
+     * @param string $filename
216
+     */
204 217
     public function getPhpCodeIncludeDir($directory = null, $filename = null, $once = false, $isPath = false, $type = 'include', $t = '')
205 218
     {
206 219
         if ($type === '') {
@@ -233,6 +246,10 @@  discard block
 block discarded – undo
233 246
     *
234 247
     *  @return string
235 248
     */
249
+
250
+    /**
251
+     * @param string $two
252
+     */
236 253
     public function getPhpCodeTernaryOperator($return, $condition, $one, $two, $t = '')
237 254
     {
238 255
         return "{$t}\${$return} = {$condition} ? {$one} : {$two};\n";
@@ -392,8 +409,8 @@  discard block
 block discarded – undo
392 409
     /**
393 410
      *  @public function getPhpCodeSwitch
394 411
      *
395
-     *  @param $op
396
-     *  @param $content
412
+     *  @param string $op
413
+     *  @param string $content
397 414
      *  @param $t
398 415
      *
399 416
      *  @return string
@@ -451,6 +468,10 @@  discard block
 block discarded – undo
451 468
     *  @param $var
452 469
     *  @return string
453 470
     */
471
+
472
+    /**
473
+     * @param string $var
474
+     */
454 475
     public function getPhpCodeIsset($var)
455 476
     {
456 477
         return "isset(\${$var})";
@@ -482,6 +503,11 @@  discard block
 block discarded – undo
482 503
     *  @param $right
483 504
     *  @return string
484 505
     */
506
+
507
+    /**
508
+     * @param string $left
509
+     * @param string $right
510
+     */
485 511
     public function getPhpCodeImplode($left, $right)
486 512
     {
487 513
         return "implode('{$left}', {$right})";
@@ -593,6 +619,11 @@  discard block
 block discarded – undo
593 619
     *  @param $right
594 620
     *  @return string
595 621
     */
622
+
623
+    /**
624
+     * @param string $left
625
+     * @param string $right
626
+     */
596 627
     public function getPhpCodeSprintf($left, $right)
597 628
     {
598 629
         return "sprintf({$left}, {$right})";
@@ -639,6 +670,13 @@  discard block
 block discarded – undo
639 670
     *
640 671
     *  @return string
641 672
     */
673
+
674
+    /**
675
+     * @param string $var
676
+     * @param string $exp
677
+     * @param string $str
678
+     * @param string $val
679
+     */
642 680
     public function getPhpCodePregFunzions($var, $exp = null, $str, $val, $type = 'match', $isParam = false, $t = "\t")
643 681
     {
644 682
         $pregFunz = "preg_{$type}('";
@@ -682,6 +720,10 @@  discard block
 block discarded – undo
682 720
     *
683 721
     *  @return string
684 722
     */
723
+
724
+    /**
725
+     * @param string $value
726
+     */
685 727
     public function getPhpCodeStripTags($left = null, $value, $isParam = false, $t = '')
686 728
     {
687 729
         if (!$isParam) {
Please login to merge, or discard this patch.
class/files/TDMCreateXoopsCode.php 1 patch
Doc Comments   +18 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,6 +72,11 @@  discard block
 block discarded – undo
72 72
     *
73 73
     *  @return string
74 74
     */
75
+
76
+    /**
77
+     * @param string $value
78
+     * @param boolean $interlock
79
+     */
75 80
     public function getXcEqualsOperator($var, $value, $interlock = null, $ref = false, $t = '')
76 81
     {
77 82
         if (false === $ref) {
@@ -136,6 +141,12 @@  discard block
 block discarded – undo
136 141
     *
137 142
     *  @return string
138 143
     */
144
+
145
+    /**
146
+     * @param string $anchor
147
+     * @param string $name
148
+     * @param string $vars
149
+     */
139 150
     public function getXcAnchorFunction($anchor, $name, $vars, $close = false)
140 151
     {
141 152
         $semicolon = $close !== false ? ';' : '';
@@ -311,6 +322,10 @@  discard block
 block discarded – undo
311 322
     *  @param $name
312 323
     *  @return string
313 324
     */
325
+
326
+    /**
327
+     * @param string $name
328
+     */
314 329
     public function getXcGetConfig($moduleDirname, $name)
315 330
     {
316 331
         return "\${$moduleDirname}->getConfig('{$name}')";
@@ -726,8 +741,8 @@  discard block
 block discarded – undo
726 741
     /**
727 742
      *  @public function getXcTplAssign     
728 743
      *
729
-     *  @param $tplString
730
-     *  @param $phpRender
744
+     *  @param string $tplString
745
+     *  @param string $phpRender
731 746
      *  @param $leftIsString 
732 747
      *
733 748
      *  @return string
@@ -1167,7 +1182,7 @@  discard block
 block discarded – undo
1167 1182
      *  @public function getXcGet
1168 1183
      *
1169 1184
      *  @param $left
1170
-     *  @param $var
1185
+     *  @param string $var
1171 1186
      *  @param $obj
1172 1187
      *  @param $handler
1173 1188
      *  @param $isParam
Please login to merge, or discard this patch.
class/files/classes/ClassFormElements.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -165,9 +165,9 @@
 block discarded – undo
165 165
         $ret .= $this->pc->getPhpCodeArray('editorConfigs', null, false, "\t\t");
166 166
         $getConfig = $this->xc->getXcGetConfig('this->'.$moduleDirname, $moduleDirname.'_editor_'.$rpFieldName);
167 167
         $configs = array('name' => "'{$fieldName}'", 'value' => "\$this->getVar('{$fieldName}', 'e')", 'rows' => 5, 'cols' => 40,
168
-                        'width' => "'100%'", 'height' => "'400px'", 'editor' => $getConfig, );
168
+                        'width' => "'100%'", 'height' => "'400px'", 'editor' => $getConfig,);
169 169
         foreach ($configs as $c => $d) {
170
-            $ret .= $this->xc->getXcEqualsOperator("\$editorConfigs['{$c}']", $d,  null, false, "\t\t");
170
+            $ret .= $this->xc->getXcEqualsOperator("\$editorConfigs['{$c}']", $d, null, false, "\t\t");
171 171
         }
172 172
         $formEditor = $this->cc->getClassXoopsFormEditor('', $language, $fieldName, 'editorConfigs', true);
173 173
         $ret .= $this->cc->getClassAddElement('form', $formEditor.$required);
Please login to merge, or discard this patch.