Completed
Push — master ( a041ab...7e66c0 )
by Gino
04:49 queued 01:03
created
class/logo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
 
135 135
         // Write text
136 136
         $textColor = imagecolorallocate($imageModule, 0, 0, 0);
137
-        $spaceToBorder = (92 - strlen($moduleDirname) * 7.5) / 2;
137
+        $spaceToBorder = (92-strlen($moduleDirname) * 7.5) / 2;
138 138
         imagefttext($imageModule, 8.5, 0, $spaceToBorder, 45, $textColor, $font, ucfirst($moduleDirname), array());
139 139
 
140 140
         imagecopy($imageModule, $imageIcon, 29, 2, 0, 0, 32, 32);
Please login to merge, or discard this patch.
class/files/templates/user/TemplatesUserSearch.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     /**
83 83
      * @param $moduleDirname
84 84
      * @param $table
85
-     * @param $language
85
+     * @param string $language
86 86
      *
87 87
      * @return string
88 88
      */
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     /**
122 122
      * @param $moduleDirname
123 123
      * @param $table
124
-     * @param $language
124
+     * @param string $language
125 125
      *
126 126
      * @return string
127 127
      */
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     /**
183 183
      * @param $moduleDirname
184 184
      * @param $table
185
-     * @param $language
185
+     * @param string $language
186 186
      *
187 187
      * @return string
188 188
      */
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
     /**
254 254
      * @param null
255 255
      *
256
-     * @return bool|string
256
+     * @return null|string
257 257
      */
258 258
     public function render()
259 259
     {
Please login to merge, or discard this patch.
include/functions.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -119,26 +119,26 @@
 block discarded – undo
119 119
 var hasSelected = false; var selectBox = myform.item[A][amount];for (i = 0; i < selectBox.options.length; i++ ) { if (selectBox.options[i].selected == true && selectBox.options[i].value != \'\') { hasSelected = true; break; } }if (!hasSelected) { window.alert("Please enter Donation Amount"); selectBox.focus(); return false; }return true;
120 120
 }
121 121
 //--></script>
122
-<!-- End Form Validation JavaScript //-->', );
122
+<!-- End Form Validation JavaScript //-->',);
123 123
     $paypalform = array(0 => '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">',
124 124
                                 1 => '<input name="cmd" value="_s-xclick" type="hidden">',
125 125
                                 2 => '<input name="hosted_button_id" value="%s" type="hidden">',
126 126
                                 3 => '<img alt="" src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" height="1" border="0" width="1">',
127 127
                                 4 => '<input src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" border="0" type="image">',
128
-                                5 => '</form>', );
129
-    for ($key = 0;$key <= 4;++$key) {
128
+                                5 => '</form>',);
129
+    for ($key = 0; $key <= 4; ++$key) {
130 130
         switch ($key) {
131 131
             case 2:
132
-                $donationform[$key] = sprintf($donationform[$key], $GLOBALS['xoopsConfig']['sitename'].' - '.(strlen($GLOBALS['xoopsUser']->getVar('name')) > 0 ? $GLOBALS['xoopsUser']->getVar('name').' ['.$GLOBALS['xoopsUser']->getVar('uname').']' : $GLOBALS['xoopsUser']->getVar('uname')), $GLOBALS['xoopsUser']->getVar('email'), XOOPS_LICENSE_KEY, strtoupper($GLOBALS['xoopsModule']->getVar('dirname')),  strtoupper($GLOBALS['xoopsModule']->getVar('dirname')).' '.$GLOBALS['xoopsModule']->getVar('name'));
132
+                $donationform[$key] = sprintf($donationform[$key], $GLOBALS['xoopsConfig']['sitename'].' - '.(strlen($GLOBALS['xoopsUser']->getVar('name')) > 0 ? $GLOBALS['xoopsUser']->getVar('name').' ['.$GLOBALS['xoopsUser']->getVar('uname').']' : $GLOBALS['xoopsUser']->getVar('uname')), $GLOBALS['xoopsUser']->getVar('email'), XOOPS_LICENSE_KEY, strtoupper($GLOBALS['xoopsModule']->getVar('dirname')), strtoupper($GLOBALS['xoopsModule']->getVar('dirname')).' '.$GLOBALS['xoopsModule']->getVar('name'));
133 133
                 break;
134 134
         }
135 135
     }
136 136
     $aboutRes = '';
137 137
     $istart = strpos($about, $paypalform[0], 1);
138
-    $iend = strpos($about, $paypalform[5], $istart + 1) + strlen($paypalform[5]) - 1;
139
-    $aboutRes .= substr($about, 0, $istart - 1);
138
+    $iend = strpos($about, $paypalform[5], $istart+1)+strlen($paypalform[5])-1;
139
+    $aboutRes .= substr($about, 0, $istart-1);
140 140
     $aboutRes .= implode("\n", $donationform);
141
-    $aboutRes .= substr($about, $iend + 1, strlen($about) - $iend - 1);
141
+    $aboutRes .= substr($about, $iend+1, strlen($about)-$iend-1);
142 142
 
143 143
     return $aboutRes;
144 144
 }
Please login to merge, or discard this patch.
class/morefiles.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -289,10 +289,10 @@
 block discarded – undo
289 289
     /**
290 290
      * Get MoreFiles Criteria.
291 291
      * @param $criteriaMoreFiles
292
-     * @param $start
293
-     * @param $limit
294
-     * @param $sort
295
-     * @param $order
292
+     * @param integer $start
293
+     * @param integer $limit
294
+     * @param string $sort
295
+     * @param string $order
296 296
      * @return
297 297
      */
298 298
     private function getMoreFilesCriteria($criteriaMoreFiles, $start, $limit, $sort, $order)
Please login to merge, or discard this patch.
class/tables.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
 
302 302
     /**
303 303
      * Get Defined Language.
304
-     * @param $lang
304
+     * @param string $lang
305 305
      *
306 306
      * @return string
307 307
      */
@@ -437,10 +437,10 @@  discard block
 block discarded – undo
437 437
     /**
438 438
      * Get Tables Criteria.
439 439
      * @param $criteriaTables
440
-     * @param $start
441
-     * @param $limit
442
-     * @param $sort
443
-     * @param $order
440
+     * @param integer $start
441
+     * @param integer $limit
442
+     * @param string $sort
443
+     * @param string $order
444 444
      * @return
445 445
      */
446 446
     private function getTablesCriteria($criteriaTables, $start, $limit, $sort, $order)
Please login to merge, or discard this patch.
class/settings.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
 
302 302
     /**
303 303
      * Get Defined Language.
304
-     * @param $lang
304
+     * @param string $lang
305 305
      *
306 306
      * @return string
307 307
      */
@@ -437,10 +437,10 @@  discard block
 block discarded – undo
437 437
     /**
438 438
      * Get Tables Criteria.
439 439
      * @param $criteriaTables
440
-     * @param $start
441
-     * @param $limit
442
-     * @param $sort
443
-     * @param $order
440
+     * @param integer $start
441
+     * @param integer $limit
442
+     * @param string $sort
443
+     * @param string $order
444 444
      * @return
445 445
      */
446 446
     private function getTablesCriteria($criteriaTables, $start, $limit, $sort, $order)
Please login to merge, or discard this patch.
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,6 @@
 block discarded – undo
157 157
      * @param $desc
158 158
      * @param $index
159 159
      * @param $right
160
-     
161 160
      * @return string
162 161
      */
163 162
     private function getModVersionArray($array = 1, $left, $desc = '', $index = null, $right = null, $arrayOptions)
Please login to merge, or discard this patch.
class/files/admin/AdminPermissions.php 2 patches
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      * @private function getPermissionsHeader    
75 75
      *
76 76
      * @param $module
77
-     * @param $language
77
+     * @param string $language
78 78
      *
79 79
      * @return string
80 80
      */
@@ -114,6 +114,10 @@  discard block
 block discarded – undo
114 114
      *
115 115
      *  @return string
116 116
      */
117
+
118
+    /**
119
+     * @param string $language
120
+     */
117 121
     private function getPermissionsSwitch($moduleDirname, $language)
118 122
     {
119 123
         $pc = TDMCreatePhpCode::getInstance();
@@ -198,7 +202,7 @@  discard block
 block discarded – undo
198 202
      *
199 203
      *  @param null
200 204
      *
201
-     *  @return bool|string
205
+     *  @return null|string
202 206
      */
203 207
     public function render()
204 208
     {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         $ret .= $xc->getXcXoopsRequest('op', 'op', 'global');
101 101
         $ret .= $xc->getXcLoad('XoopsFormLoader');
102 102
         $optionsSelect = array('global' => "{$language}PERMISSIONS_GLOBAL", 'approve' => "{$language}PERMISSIONS_APPROVE",
103
-                                'submit' => "{$language}PERMISSIONS_SUBMIT", 'view' => "{$language}PERMISSIONS_VIEW", );
103
+                                'submit' => "{$language}PERMISSIONS_SUBMIT", 'view' => "{$language}PERMISSIONS_VIEW",);
104 104
         $formSelect = $xc->getXoopsFormSelectExtraOptions('formSelect', '\'\'', 'op', $optionsSelect, 'onchange="document.fselperm.submit()"');
105 105
         $ret .= $cc->getXoopsSimpleForm('permTableForm', 'formSelect', $formSelect, '\'\'', 'fselperm', 'permissions');
106 106
 
@@ -120,16 +120,16 @@  discard block
 block discarded – undo
120 120
         $cases = array('global' => array("\$formTitle = {$language}PERMISSIONS_GLOBAL;",
121 121
                                         "\$permName = '{$moduleDirname}_ac';",
122 122
                                         "\$permDesc = {$language}PERMISSIONS_GLOBAL_DESC;",
123
-                                        "\$globalPerms = array( '4' => {$language}PERMISSIONS_GLOBAL_4, '8' => {$language}PERMISSIONS_GLOBAL_8, '16' => {$language}PERMISSIONS_GLOBAL_16 );", ),
123
+                                        "\$globalPerms = array( '4' => {$language}PERMISSIONS_GLOBAL_4, '8' => {$language}PERMISSIONS_GLOBAL_8, '16' => {$language}PERMISSIONS_GLOBAL_16 );",),
124 124
                         'approve' => array("\$formTitle = {$language}PERMISSIONS_APPROVE;",
125 125
                                         "\$permName = '{$moduleDirname}_approve';",
126
-                                        "\$permDesc = {$language}PERMISSIONS_APPROVE_DESC;", ),
126
+                                        "\$permDesc = {$language}PERMISSIONS_APPROVE_DESC;",),
127 127
                         'submit' => array("\$formTitle = {$language}PERMISSIONS_SUBMIT;",
128 128
                                         "\$permName = '{$moduleDirname}_submit';",
129
-                                        "\$permDesc = {$language}PERMISSIONS_SUBMIT_DESC;", ),
129
+                                        "\$permDesc = {$language}PERMISSIONS_SUBMIT_DESC;",),
130 130
                         'view' => array("\$formTitle = {$language}PERMISSIONS_VIEW;",
131 131
                                         "\$permName = '{$moduleDirname}_view';",
132
-                                        "\$permDesc = {$language}PERMISSIONS_VIEW_DESC;", ), );
132
+                                        "\$permDesc = {$language}PERMISSIONS_VIEW_DESC;",),);
133 133
 
134 134
         $contentSwitch = $pc->getPhpCodeCaseSwitch($cases, true, false, "\t");
135 135
 
Please login to merge, or discard this patch.
class/files/admin/AdminXoopsCode.php 1 patch
Doc Comments   +20 added lines, -4 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
     {
@@ -65,6 +65,10 @@  discard block
 block discarded – undo
65 65
      *
66 66
      *  @return string
67 67
      */
68
+
69
+    /**
70
+     * @param string $stuTableSoleName
71
+     */
68 72
     public function getAdminItemButton($language, $tableName, $stuTableSoleName, $op = '?op=new', $type = 'add', $t = '')
69 73
     {
70 74
         $stuType = strtoupper($type);
@@ -96,6 +100,10 @@  discard block
 block discarded – undo
96 100
     *  
97 101
     *  @return string
98 102
     */
103
+
104
+    /**
105
+     * @param string $language
106
+     */
99 107
     public function getAxcAddInfoBox($language, $t = '')
100 108
     {
101 109
         return "{$t}\$adminMenu->addInfoBox({$language});\n";
@@ -109,6 +117,10 @@  discard block
 block discarded – undo
109 117
     *  
110 118
     *  @return string
111 119
     */
120
+
121
+    /**
122
+     * @param string $language
123
+     */
112 124
     public function getAxcAddInfoBoxLine($language, $label = '', $var = '', $t = '')
113 125
     {
114 126
         $aMenu = $t.'$adminMenu->addInfoBoxLine(';
@@ -129,6 +141,10 @@  discard block
 block discarded – undo
129 141
     *  
130 142
     *  @return string
131 143
     */
144
+
145
+    /**
146
+     * @param string $language
147
+     */
132 148
     public function getAxcAddConfigBoxLine($language, $label = '', $var = '', $t = '')
133 149
     {
134 150
         $aMenu = $t.'$adminMenu->addConfigBoxLine(';
@@ -316,8 +332,8 @@  discard block
 block discarded – undo
316 332
     /**
317 333
      *  @public function getAxcFetchMedia
318 334
      *
319
-     *  @param $anchor
320
-     *  @param $var
335
+     *  @param string $anchor
336
+     *  @param string $var
321 337
      *
322 338
      *  @return string
323 339
      */
@@ -329,7 +345,7 @@  discard block
 block discarded – undo
329 345
     /**
330 346
      *  @public function getAxcSetPrefix
331 347
      *
332
-     *  @param $anchor
348
+     *  @param string $anchor
333 349
      *  @param $var
334 350
      *
335 351
      *  @return string
Please login to merge, or discard this patch.
class/files/classes/ClassFiles.php 1 patch
Doc Comments   +11 added lines, -8 removed lines patch added patch discarded remove patch
@@ -60,6 +60,7 @@  discard block
 block discarded – undo
60 60
      *  @param string $module
61 61
      *  @param string $table
62 62
      *  @param mixed $tables
63
+     * @param string $filename
63 64
      */
64 65
     public function write($module, $table, $tables, $filename)
65 66
     {
@@ -502,7 +503,7 @@  discard block
 block discarded – undo
502 503
      *  @public function getClassHandler
503 504
      *
504 505
      *  @param string $moduleDirname
505
-     *  @param string $tableName
506
+     *  @param string $table
506 507
      *  @param string $fieldId
507 508
      *  @param string $fieldMain
508 509
      *
@@ -594,8 +595,8 @@  discard block
 block discarded – undo
594 595
      *  @public function getClassCounter
595 596
      *
596 597
      *  @param $tableName
597
-     *  @param $fieldId
598
-     *  @param $fieldMain
598
+     *  @param string $fieldId
599
+     *  @param string $fieldMain
599 600
      *
600 601
      *  @return string
601 602
      */
@@ -622,8 +623,8 @@  discard block
 block discarded – undo
622 623
      *  @public function getClassAll
623 624
      *
624 625
      *  @param $tableName
625
-     *  @param $fieldId
626
-     *  @param $fieldMain
626
+     *  @param string $fieldId
627
+     *  @param string $fieldMain
627 628
      *
628 629
      *  @return string
629 630
      */
@@ -650,9 +651,10 @@  discard block
 block discarded – undo
650 651
      *  @public function getClassByCategory
651 652
      *
652 653
      *  @param $tableName
653
-     *  @param $fieldId
654
-     *  @param $fieldMain
654
+     *  @param string $fieldId
655
+     *  @param string $fieldMain
655 656
      *  @param $fieldParent
657
+     * @param string $moduleDirname
656 658
      *
657 659
      *  @return string
658 660
      */
@@ -727,8 +729,9 @@  discard block
 block discarded – undo
727 729
     /**
728 730
      *  @public function getClassGetTableSolenameById
729 731
      *
730
-     *  @param $moduleDirname
732
+     *  @param string $moduleDirname
731 733
      *  @param $table
734
+     * @param string $fieldMain
732 735
      *
733 736
      *  @return string
734 737
      */
Please login to merge, or discard this patch.