Completed
Push — master ( 729f15...6f759c )
by Gino
04:13
created
class/fields.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -335,7 +335,7 @@
 block discarded – undo
335 335
         $id = 1;
336 336
         foreach ($fields as $field) {
337 337
             $class = ($class == 'even') ? 'odd' : 'even';
338
-            $fieldId = (int)$field->getVar('field_id');
338
+            $fieldId = (int) $field->getVar('field_id');
339 339
             if ($id > $fieldNumb) {   // delete additional fields, if number of fields is reduced - goffy
340 340
                 $fieldsObj = &$this->tdmcreate->getHandler('fields')->get($fieldId);
341 341
                 $this->tdmcreate->getHandler('fields')->delete($fieldsObj, true);
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/settings.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/modules.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@
 block discarded – undo
175 175
 class TDMCreateMoreFilesHandler extends XoopsPersistableObjectHandler
176 176
 {
177 177
     /**
178
-    *  @public function constructor class
178
+     *  @public function constructor class
179 179
      * @param null|object $db
180 180
      */
181 181
     public function __construct(&$db)
Please login to merge, or discard this patch.