Completed
Push — master ( a21b67...ec1681 )
by Michael
02:43
created
class/tableForm.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      *
41 41
      * @internal param bool $encode To sanitizer the text?
42 42
      *
43
-     * @return array array of name/value pairs assigned to form elements
43
+     * @return boolean|string array of name/value pairs assigned to form elements
44 44
      */
45 45
     public function getAddBaliseTable()
46 46
     {
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -55,13 +55,13 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function insertBreak($extra = '', $class = '')
57 57
     {
58
-        $class = ($class != '') ? " class='" . preg_replace('/[^A-Za-z0-9\s\s_-]/i', '', $class) . "'" : '';
58
+        $class = ($class != '') ? " class='".preg_replace('/[^A-Za-z0-9\s\s_-]/i', '', $class)."'" : '';
59 59
         // Fix for $extra tag not showing
60 60
         if ($extra) {
61
-            $extra = '<tr><td colspan="2" ' . $class . '>' . $extra . '</td></tr>';
61
+            $extra = '<tr><td colspan="2" '.$class.'>'.$extra.'</td></tr>';
62 62
             $this->addElement($extra);
63 63
         } else {
64
-            $extra = '<tr><td colspan="2" ' . $class . '>&nbsp;</td></tr>';
64
+            $extra = '<tr><td colspan="2" '.$class.'>&nbsp;</td></tr>';
65 65
             $this->addElement($extra);
66 66
         }
67 67
     }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         }
91 91
 
92 92
         if ($title != '') {
93
-            $ret .= '<tr><th colspan="2">' . $title . '</th></tr>';
93
+            $ret .= '<tr><th colspan="2">'.$title.'</th></tr>';
94 94
         }
95 95
 
96 96
         $hidden = '';
@@ -102,24 +102,24 @@  discard block
 block discarded – undo
102 102
                 if (!$ele->getNocolspan()) {
103 103
                     $ret .= '<tr valign="top" align="left"><td class="head">';
104 104
                     if (($caption = $ele->getCaption()) != '') {
105
-                        $ret .= '<div class="xoops-form-element-caption' . ($ele->isRequired() ? '-required' : '') . '">';
106
-                        $ret .= '<span class="caption-text">' . $caption . '</span>';
105
+                        $ret .= '<div class="xoops-form-element-caption'.($ele->isRequired() ? '-required' : '').'">';
106
+                        $ret .= '<span class="caption-text">'.$caption.'</span>';
107 107
                         $ret .= '<span class="caption-marker">*</span>';
108 108
                         $ret .= '</div>';
109 109
                     }
110 110
                     if (($desc = $ele->getDescription()) != '') {
111
-                        $ret .= '<div class="xoops-form-element-help">' . $desc . '</div>';
111
+                        $ret .= '<div class="xoops-form-element-help">'.$desc.'</div>';
112 112
                     }
113
-                    $ret .= '</td><td class="' . $class . '">' . $ele->render() . '</td></tr>' . NWLINE;
113
+                    $ret .= '</td><td class="'.$class.'">'.$ele->render().'</td></tr>'.NWLINE;
114 114
                 } else {
115 115
                     $ret .= '<tr valign="top" align="left"><td class="head" colspan="2">';
116 116
                     if (($caption = $ele->getCaption()) != '') {
117
-                        $ret .= '<div class="xoops-form-element-caption' . ($ele->isRequired() ? '-required' : '') . '">';
118
-                        $ret .= '<span class="caption-text">' . $caption . '</span>';
117
+                        $ret .= '<div class="xoops-form-element-caption'.($ele->isRequired() ? '-required' : '').'">';
118
+                        $ret .= '<span class="caption-text">'.$caption.'</span>';
119 119
                         $ret .= '<span class="caption-marker">*</span>';
120 120
                         $ret .= '</div>';
121 121
                     }
122
-                    $ret .= '</td></tr><tr valign="top" align="left"><td class="' . $class . '" colspan="2">' . $ele->render() . '</td></tr>';
122
+                    $ret .= '</td></tr><tr valign="top" align="left"><td class="'.$class.'" colspan="2">'.$ele->render().'</td></tr>';
123 123
                 }
124 124
             } else {
125 125
                 $hidden .= $ele->render();
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
             $ret .= '</table>';
131 131
         }
132 132
 
133
-        $ret .= NWLINE . ' ' . $hidden . NWLINE;
133
+        $ret .= NWLINE.' '.$hidden.NWLINE;
134 134
 
135 135
         return $ret;
136 136
     }
Please login to merge, or discard this patch.
blocks/minical.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
144 144
     // Flag current day
145 145
     $selectedDays = array(
146 146
         new Calendar_Day(date('Y', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))), date('n', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))),
147
-                         date('j', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser'])))),
147
+                            date('j', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser'])))),
148 148
     );
149 149
 
150 150
     // Build calendar object
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -450,11 +450,11 @@
 block discarded – undo
450 450
  * @param array      $event
451 451
  * @param array      $eventsArray
452 452
  * @param ExtcalTime $extcalTimeHandler
453
- * @param            $startMonth
454
- * @param            $endMonth
453
+ * @param            integer $startMonth
454
+ * @param            integer $endMonth
455 455
  * @param            $cats
456 456
  *
457
- * @return bool
457
+ * @return false|null
458 458
  */
459 459
 function bExtcalMinicalAddEventToArray($event, &$eventsArray, $extcalTimeHandler, $startMonth, $endMonth, $cats)
460 460
 {
Please login to merge, or discard this patch.
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@  discard block
 block discarded – undo
18 18
  */
19 19
 
20 20
 global $extcalConfig, $xoopsUser;
21
-require_once __DIR__ . '/../include/constantes.php';
22
-require_once __DIR__ . '/../class/utility.php';
23
-require_once __DIR__ . '/../class/tableForm.php';
21
+require_once __DIR__.'/../include/constantes.php';
22
+require_once __DIR__.'/../class/utility.php';
23
+require_once __DIR__.'/../class/tableForm.php';
24 24
 //---------------------------------------------------------------------------
25 25
 /**
26 26
  * @param $options
@@ -33,11 +33,11 @@  discard block
 block discarded – undo
33 33
 
34 34
     extcal_getDefautminicalOption($options);
35 35
 
36
-    require_once __DIR__ . '/../class/config.php';
36
+    require_once __DIR__.'/../class/config.php';
37 37
 
38
-    require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Util/Textual.php';
39
-    require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Month/Weeks.php';
40
-    require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Day.php';
38
+    require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Util/Textual.php';
39
+    require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Month/Weeks.php';
40
+    require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Day.php';
41 41
     //     require_once CALENDAR_ROOT . 'Month/Weeks.php';
42 42
     //     require_once CALENDAR_ROOT . 'Day.php';
43 43
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
             'cat'          => $tCatSelected,
125 125
             'externalKeys' => 'cat_id',
126 126
         );
127
-        $events   = $eventHandler->getEventsOnPeriode($criteres);
127
+        $events = $eventHandler->getEventsOnPeriode($criteres);
128 128
     } else {
129 129
         $events = array();
130 130
     }
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
                 'number'     => $dayCalObj->thisDay(),
188 188
                 'isSelected' => $dayCalObj->isSelected(),
189 189
             );
190
-            $day                                = $dayCalObj->thisDay();
190
+            $day = $dayCalObj->thisDay();
191 191
             if (isset($eventsArray[$day]) && !$dayCalObj->isEmpty()) {
192 192
                 $tableRows[$rowId]['week'][$cellId]['haveEvents'] = true;
193 193
                 $tableRows[$rowId]['week'][$cellId]['color']      = $eventsArray[$day]['color'];
@@ -217,15 +217,15 @@  discard block
 block discarded – undo
217 217
     // Making navig data
218 218
     $navig = array(
219 219
         'page' => $extcalConfig['start_page'],
220
-        'uri'  => 'year=' . $monthCalObj->thisYear() . '&amp;month=' . $monthCalObj->thisMonth(),
220
+        'uri'  => 'year='.$monthCalObj->thisYear().'&amp;month='.$monthCalObj->thisMonth(),
221 221
         'name' => $extcalTimeHandler->getFormatedDate($extcalConfig['nav_date_month'], $monthCalObj->getTimestamp()),
222 222
     );
223 223
 
224 224
     $horloge             = array();
225 225
     $horloge['display']  = (trim($options[11]) != '');
226
-    $horloge['fullName'] = XOOPS_URL . _EXTCAL_PATH_HORLOGES . $options[11];
227
-    $horloge['width']    = $options[12] . 'px';
228
-    $horloge['height']   = $options[13] . 'px';
226
+    $horloge['fullName'] = XOOPS_URL._EXTCAL_PATH_HORLOGES.$options[11];
227
+    $horloge['width']    = $options[12].'px';
228
+    $horloge['height']   = $options[13].'px';
229 229
 
230 230
     $ret = array(
231 231
         'imageParam'   => $imageParam,
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
  */
252 252
 function bExtcalMinicalEdit($options)
253 253
 {
254
-    require_once __DIR__ . '/../class/form/spin/formspin.php';
254
+    require_once __DIR__.'/../class/form/spin/formspin.php';
255 255
     global $xoopsUser;
256 256
 
257 257
     //  $t = print_r(get_defined_vars(),true);
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
     $imageCatHandler = xoops_getHandler('imagecategory');
273 273
 
274 274
     //=====================================================================
275
-    $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_OPT_SLIDE_SHOW . '</div>', 'head');
275
+    $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_OPT_SLIDE_SHOW.'</div>', 'head');
276 276
 
277 277
     $k           = 0;
278 278
     $xfValue[$k] = new XoopsFormRadio(_MB_EXTCAL_DISPLAY_IMG, "options[{$k}]", $options[$k]);
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
     $xfValue[$k] = new ExtcalFormSpin(_MB_EXTCAL_SS_NB_PHOTOS, "options[{$k}]", $options[$k], 0, 50, 1, 0, 8, _MB_EXTCAL_PX, $imgFolder = '');
314 314
     $form->addElement($xfValue[$k], false);
315 315
     //=====================================================================
316
-    $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_OPT_SHOW . '</div>', 'head');
316
+    $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_OPT_SHOW.'</div>', 'head');
317 317
 
318 318
     $t = array(
319 319
         -1 => _MB_EXTCAL_PREVIEW,
@@ -352,9 +352,9 @@  discard block
 block discarded – undo
352 352
     $form->addElement($xfValue[$k], false);
353 353
 
354 354
     //=====================================================================
355
-    $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_HORLOGE_OPT . '</div>', 'head');
355
+    $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_HORLOGE_OPT.'</div>', 'head');
356 356
     //---------------------------------------------------------------------
357
-    $t = XoopsLists::getFileListAsArray(XOOPS_ROOT_PATH . _EXTCAL_PATH_HORLOGES);
357
+    $t = XoopsLists::getFileListAsArray(XOOPS_ROOT_PATH._EXTCAL_PATH_HORLOGES);
358 358
     $t = array_merge(array(' ' => _NONE), $t);
359 359
 
360 360
     $k           = 11;
@@ -437,12 +437,12 @@  discard block
 block discarded – undo
437 437
         // $src   = $doc->createElement('src');
438 438
         $src   = clone $tempSrc;
439 439
         $src   = $photo->appendChild($src);
440
-        $value = $doc->createTextNode(XOOPS_URL . '/uploads/' . $images->getVar('image_name'));
440
+        $value = $doc->createTextNode(XOOPS_URL.'/uploads/'.$images->getVar('image_name'));
441 441
         $src->appendChild($value);
442 442
     }
443 443
 
444 444
     // get completed xml document
445
-    $xml_string = $doc->save(XOOPS_ROOT_PATH . '/cache/extcalSlideShowParam.xml');
445
+    $xml_string = $doc->save(XOOPS_ROOT_PATH.'/cache/extcalSlideShowParam.xml');
446 446
 }
447 447
 
448 448
 /**************************************************************************/
Please login to merge, or discard this patch.
event_member.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,9 +59,9 @@
 block discarded – undo
59 59
                 $rediredtMessage = _MD_EXTCAL_MAX_MEMBER_REACHED;
60 60
             } else {
61 61
                 $eventMemberHandler->createEventmember(array(
62
-                                                           'event_id' => (int)$_POST['event'],
63
-                                                           'uid'      => $xoopsUser->getVar('uid'),
64
-                                                       ));
62
+                                                            'event_id' => (int)$_POST['event'],
63
+                                                            'uid'      => $xoopsUser->getVar('uid'),
64
+                                                        ));
65 65
                 sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_1, _MD_EXTCAL_MSG_1);
66 66
                 $rediredtMessage = _MD_EXTCAL_WHOS_GOING_ADDED_TO_EVENT;
67 67
             }
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
3
+include __DIR__.'/../../mainfile.php';
4 4
 
5
-require_once __DIR__ . '/include/constantes.php';
6
-require_once __DIR__ . '/include/mail_fnc.php';
7
-require_once __DIR__ . '/class/utility.php';
5
+require_once __DIR__.'/include/constantes.php';
6
+require_once __DIR__.'/include/mail_fnc.php';
7
+require_once __DIR__.'/class/utility.php';
8 8
 
9 9
 // $member_uid = 1;
10 10
 // $event_id = 393;
@@ -39,26 +39,26 @@  discard block
 block discarded – undo
39 39
 //echo "<hr>";
40 40
 
41 41
 if (!$GLOBALS['xoopsSecurity']->check()) {
42
-    redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
42
+    redirect_header('index.php', 3, _NOPERM.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
43 43
 }
44 44
 
45 45
 if ($xoopsUser && $xoopsModuleConfig['whos_going']) {
46 46
     // If param are right
47
-    if ((int)$_POST['event'] > 0 && ($_POST['mode'] === 'add' || $_POST['mode'] === 'remove')) {
47
+    if ((int) $_POST['event'] > 0 && ($_POST['mode'] === 'add' || $_POST['mode'] === 'remove')) {
48 48
         $eventHandler       = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
49 49
         $eventMemberHandler = xoops_getModuleHandler(_EXTCAL_CLS_MEMBER, _EXTCAL_MODULE);
50 50
 
51 51
         // If the user have to be added
52 52
         if ($_POST['mode'] === 'add') {
53
-            $event = $eventHandler->getEvent((int)$_POST['event'], $xoopsUser);
53
+            $event = $eventHandler->getEvent((int) $_POST['event'], $xoopsUser);
54 54
 
55 55
             if ($event->getVar('event_nbmember') > 0
56
-                && $eventMemberHandler->getNbMember((int)$_POST['event']) >= $event->getVar('event_nbmember')) {
56
+                && $eventMemberHandler->getNbMember((int) $_POST['event']) >= $event->getVar('event_nbmember')) {
57 57
                 sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_0, _MD_EXTCAL_MSG_0);
58 58
                 $rediredtMessage = _MD_EXTCAL_MAX_MEMBER_REACHED;
59 59
             } else {
60 60
                 $eventMemberHandler->createEventmember(array(
61
-                                                           'event_id' => (int)$_POST['event'],
61
+                                                           'event_id' => (int) $_POST['event'],
62 62
                                                            'uid'      => $xoopsUser->getVar('uid'),
63 63
                                                        ));
64 64
                 sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_1, _MD_EXTCAL_MSG_1);
@@ -67,12 +67,12 @@  discard block
 block discarded – undo
67 67
             // If the user have to be remove
68 68
         } else {
69 69
             if ($_POST['mode'] === 'remove') {
70
-                $eventMemberHandler->deleteEventmember(array((int)$_POST['event'], $xoopsUser->getVar('uid')));
70
+                $eventMemberHandler->deleteEventmember(array((int) $_POST['event'], $xoopsUser->getVar('uid')));
71 71
                 sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_2, _MD_EXTCAL_MSG_2);
72 72
                 $rediredtMessage = _MD_EXTCAL_WHOS_GOING_REMOVED_TO_EVENT;
73 73
             }
74 74
         }
75
-        redirect_header('event.php?event=' . $_POST['event'], 3, $rediredtMessage, false);
75
+        redirect_header('event.php?event='.$_POST['event'], 3, $rediredtMessage, false);
76 76
     } else {
77 77
         redirect_header('index.php', 3, _NOPERM, false);
78 78
     }
Please login to merge, or discard this patch.
notification_update.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-include XOOPS_ROOT_PATH . '/include/notification_update.php';
3
+include __DIR__.'/../../mainfile.php';
4
+include XOOPS_ROOT_PATH.'/include/notification_update.php';
Please login to merge, or discard this patch.
event_notmember.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,9 +34,9 @@
 block discarded – undo
34 34
         if ($_POST['mode'] === 'add') {
35 35
             $event = $eventHandler->getEvent((int)$_POST['event'], $xoopsUser);
36 36
             $eventNotMemberHandler->createEventNotMember(array(
37
-                                                             'event_id' => (int)$_POST['event'],
38
-                                                             'uid'      => $xoopsUser->getVar('uid'),
39
-                                                         ));
37
+                                                                'event_id' => (int)$_POST['event'],
38
+                                                                'uid'      => $xoopsUser->getVar('uid'),
39
+                                                            ));
40 40
             sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_3, _MD_EXTCAL_MSG_3);
41 41
             $rediredtMessage = _MD_EXTCAL_WHOSNOT_GOING_ADDED_TO_EVENT;
42 42
 
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
3
+include __DIR__.'/../../mainfile.php';
4 4
 
5
-require_once __DIR__ . '/include/constantes.php';
6
-require_once __DIR__ . '/include/mail_fnc.php';
7
-require_once __DIR__ . '/class/utility.php';
5
+require_once __DIR__.'/include/constantes.php';
6
+require_once __DIR__.'/include/mail_fnc.php';
7
+require_once __DIR__.'/class/utility.php';
8 8
 
9 9
 /*
10 10
 ext_echoArray($_POST);
@@ -21,20 +21,20 @@  discard block
 block discarded – undo
21 21
 $member_uid = $xoopsUser->getVar('uid');
22 22
 
23 23
 if (!$GLOBALS['xoopsSecurity']->check()) {
24
-    redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
24
+    redirect_header('index.php', 3, _NOPERM.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
25 25
 }
26 26
 
27 27
 if ($xoopsUser && $xoopsModuleConfig['whosnot_going']) {
28 28
     // If param are right
29
-    if ((int)$_POST['event'] > 0 && ($_POST['mode'] === 'add' || $_POST['mode'] === 'remove')) {
29
+    if ((int) $_POST['event'] > 0 && ($_POST['mode'] === 'add' || $_POST['mode'] === 'remove')) {
30 30
         $eventHandler          = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
31 31
         $eventNotMemberHandler = xoops_getModuleHandler(_EXTCAL_CLS_NOT_MEMBER, _EXTCAL_MODULE);
32 32
 
33 33
         // If the user have to be added
34 34
         if ($_POST['mode'] === 'add') {
35
-            $event = $eventHandler->getEvent((int)$_POST['event'], $xoopsUser);
35
+            $event = $eventHandler->getEvent((int) $_POST['event'], $xoopsUser);
36 36
             $eventNotMemberHandler->createEventNotMember(array(
37
-                                                             'event_id' => (int)$_POST['event'],
37
+                                                             'event_id' => (int) $_POST['event'],
38 38
                                                              'uid'      => $xoopsUser->getVar('uid'),
39 39
                                                          ));
40 40
             sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_3, _MD_EXTCAL_MSG_3);
@@ -43,12 +43,12 @@  discard block
 block discarded – undo
43 43
             // If the user have to be remove
44 44
         } else {
45 45
             if ($_POST['mode'] === 'remove') {
46
-                $eventNotMemberHandler->deleteEventNotMember(array((int)$_POST['event'], $xoopsUser->getVar('uid')));
46
+                $eventNotMemberHandler->deleteEventNotMember(array((int) $_POST['event'], $xoopsUser->getVar('uid')));
47 47
                 sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_4, _MD_EXTCAL_MSG_4);
48 48
                 $rediredtMessage = _MD_EXTCAL_WHOSNOT_GOING_REMOVED_TO_EVENT;
49 49
             }
50 50
         }
51
-        redirect_header('event.php?event=' . $_POST['event'], 3, $rediredtMessage, false);
51
+        redirect_header('event.php?event='.$_POST['event'], 3, $rediredtMessage, false);
52 52
     } else {
53 53
         redirect_header('index.php', 3, _NOPERM, false);
54 54
     }
Please login to merge, or discard this patch.
class/event.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -616,7 +616,7 @@  discard block
 block discarded – undo
616 616
      * @param     $cat
617 617
      * @param int $nbDays
618 618
      *
619
-     * @return CriteriaCompo
619
+     * @return null|CriteriaElement
620 620
      */
621 621
     public function _getEventWeekCriteria($day, $month, $year, $cat, $nbDays = 7)
622 622
     {
@@ -637,7 +637,7 @@  discard block
 block discarded – undo
637 637
      * @param $year
638 638
      * @param $cat
639 639
      *
640
-     * @return CriteriaCompo
640
+     * @return null|CriteriaElement
641 641
      */
642 642
     public function _getEventMonthCriteria($month, $year, $cat)
643 643
     {
@@ -657,7 +657,7 @@  discard block
 block discarded – undo
657 657
      * @param     $year
658 658
      * @param int $cat
659 659
      *
660
-     * @return CriteriaCompo
660
+     * @return null|CriteriaElement
661 661
      */
662 662
     public function _getEventYearCriteria($year, $cat = 0)
663 663
     {
@@ -740,7 +740,7 @@  discard block
 block discarded – undo
740 740
     /**
741 741
      * @param $start
742 742
      * @param $end
743
-     * @param $cat
743
+     * @param integer $cat
744 744
      * @param $user
745 745
      *
746 746
      * @return CriteriaCompo
@@ -1730,7 +1730,7 @@  discard block
 block discarded – undo
1730 1730
 
1731 1731
     /**
1732 1732
      * @param $month
1733
-     * @param $year
1733
+     * @param string $year
1734 1734
      * @param $dayCode
1735 1735
      *
1736 1736
      * @return int
Please login to merge, or discard this patch.
Spacing   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -19,13 +19,13 @@  discard block
 block discarded – undo
19 19
 
20 20
 // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
21 21
 
22
-require_once __DIR__ . '/ExtcalPersistableObjectHandler.php';
23
-require_once __DIR__ . '/perm.php';
24
-require_once __DIR__ . '/time.php';
25
-require_once __DIR__ . '/config.php';
26
-require_once __DIR__ . '/extDateTime.php';
27
-require_once __DIR__ . '/utility.php';
28
-require_once __DIR__ . '/../include/constantes.php';
22
+require_once __DIR__.'/ExtcalPersistableObjectHandler.php';
23
+require_once __DIR__.'/perm.php';
24
+require_once __DIR__.'/time.php';
25
+require_once __DIR__.'/config.php';
26
+require_once __DIR__.'/extDateTime.php';
27
+require_once __DIR__.'/utility.php';
28
+require_once __DIR__.'/../include/constantes.php';
29 29
 
30 30
 /**
31 31
  * Class ExtcalEvent.
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         $this->initVar('event_etablissement', XOBJ_DTYPE_INT, 5, false);
67 67
         $this->initVar('event_icone', XOBJ_DTYPE_TXTBOX, '', false);
68 68
 
69
-        $this->externalKey['cat_id']          = array(
69
+        $this->externalKey['cat_id'] = array(
70 70
             'className'      => 'cat',
71 71
             'getMethodeName' => 'getCat',
72 72
             'keyName'        => 'cat',
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
 
403 403
         //        while (list($k, $v) = each($events)) {
404 404
         foreach ($events as $k => $t) {
405
-            $ordre[] = (int)$v['event_start'];
405
+            $ordre[] = (int) $v['event_start'];
406 406
             $this->formatEventDate($v, $extcalConfig['event_date_week']);
407 407
             //$v['cat']['cat_light_color'] = $v['cat']['cat_color'];
408 408
             $v['cat']['cat_light_color'] = ExtcalUtility::getLighterColor($v['cat']['cat_color'], _EXTCAL_INFOBULLE_RGB_MIN, _EXTCAL_INFOBULLE_RGB_MAX);
@@ -606,7 +606,7 @@  discard block
 block discarded – undo
606 606
 
607 607
         reset($period);
608 608
         foreach ($period as $dt) {
609
-            echo $dt->format("l d-m-Y H:i:s\n") . '<br>';
609
+            echo $dt->format("l d-m-Y H:i:s\n").'<br>';
610 610
         }
611 611
     }
612 612
 
@@ -939,10 +939,10 @@  discard block
 block discarded – undo
939 939
         $authorizedAccessCats = $this->_extcalPerm->getAuthorizedCat($user, 'extcal_cat_view');
940 940
         $count                = count($authorizedAccessCats);
941 941
         if ($count > 0) {
942
-            $in = '(' . $authorizedAccessCats[0];
942
+            $in = '('.$authorizedAccessCats[0];
943 943
             array_shift($authorizedAccessCats);
944 944
             foreach ($authorizedAccessCats as $authorizedAccessCat) {
945
-                $in .= ',' . $authorizedAccessCat;
945
+                $in .= ','.$authorizedAccessCat;
946 946
             }
947 947
             $in .= ')';
948 948
             $criteria->add(new Criteria('cat_id', $in, 'IN'));
@@ -962,10 +962,10 @@  discard block
 block discarded – undo
962 962
         }
963 963
         if (is_array($cats)) {
964 964
             if (array_search(0, $cats) === false) {
965
-                $in = '(' . current($cats);
965
+                $in = '('.current($cats);
966 966
                 array_shift($cats);
967 967
                 foreach ($cats as $cat) {
968
-                    $in .= ',' . $cat;
968
+                    $in .= ','.$cat;
969 969
                 }
970 970
                 $in .= ')';
971 971
                 $criteria->add(new Criteria('cat_id', $in, 'IN'));
@@ -988,7 +988,7 @@  discard block
 block discarded – undo
988 988
         $fileHandler = xoops_getModuleHandler(_EXTCAL_CLS_FILE, _EXTCAL_MODULE);
989 989
 
990 990
         /***************************************************/
991
-        require_once __DIR__ . '/etablissement.php';
991
+        require_once __DIR__.'/etablissement.php';
992 992
         if ($siteSide === 'admin') {
993 993
             $action = 'event.php?op=enreg';
994 994
             $cats   = $catHandler->getAllCat($GLOBALS['xoopsUser'], 'all');
@@ -1006,7 +1006,7 @@  discard block
 block discarded – undo
1006 1006
             if ($mode === 'clone') {
1007 1007
                 $data['event_id'] = 0;
1008 1008
                 $event->setVar('event_id', 0);
1009
-                $newTitle = $event->getVar('event_title') . ' (' . _MD_EXTCAL_CLONE_OF . $data['event_id'] . ')';
1009
+                $newTitle = $event->getVar('event_title').' ('._MD_EXTCAL_CLONE_OF.$data['event_id'].')';
1010 1010
                 $event->setVar('event_title', $newTitle);
1011 1011
             }
1012 1012
 
@@ -1190,7 +1190,7 @@  discard block
 block discarded – undo
1190 1190
         $form->addElement($catSelect, true);
1191 1191
         //-----------------------------------------------------------
1192 1192
 
1193
-        $file_path = __DIR__ . '/../assets/css/images';
1193
+        $file_path = __DIR__.'/../assets/css/images';
1194 1194
         $tf        = XoopsLists::getImgListAsArray($file_path);
1195 1195
         array_unshift($tf, _MD_EXTCAL_NONE);
1196 1196
         $xfIcones = new XoopsFormSelect(_MD_EXTCAL_ICONE, 'event_icone', $event_icone, '');
@@ -1295,7 +1295,7 @@  discard block
 block discarded – undo
1295 1295
         if (count($files) > 0) {
1296 1296
             $eventFiles = new ExtcalFormFileCheckBox('', 'filetokeep');
1297 1297
             foreach ($files as $file) {
1298
-                $name = $file['file_nicename'] . ' (<i>' . $file['file_mimetype'] . '</i>) ' . $file['formated_file_size'];
1298
+                $name = $file['file_nicename'].' (<i>'.$file['file_mimetype'].'</i>) '.$file['formated_file_size'];
1299 1299
                 $eventFiles->addOption($file['file_id'], $name);
1300 1300
             }
1301 1301
             $fileElmtTray->addElement($eventFiles);
@@ -1311,7 +1311,7 @@  discard block
 block discarded – undo
1311 1311
         //Picture1
1312 1312
         $file_tray = new XoopsFormElementTray(sprintf(_MD_EXTCAL_FORM_IMG, 1), '');
1313 1313
         if (!empty($event_picture1)) {
1314
-            $file_tray->addElement(new XoopsFormLabel('', "<img src='" . XOOPS_URL . '/uploads/extcal/' . $event_picture1 . "' name='image' id='image' alt=''><br><br>"));
1314
+            $file_tray->addElement(new XoopsFormLabel('', "<img src='".XOOPS_URL.'/uploads/extcal/'.$event_picture1."' name='image' id='image' alt=''><br><br>"));
1315 1315
             $check_del_img = new XoopsFormCheckBox('', 'delimg_1');
1316 1316
             $check_del_img->addOption(1, _MD_EXTCAL_DEL_IMG);
1317 1317
             $file_tray->addElement($check_del_img);
@@ -1322,8 +1322,8 @@  discard block
 block discarded – undo
1322 1322
         }
1323 1323
         $file_img->setExtra("size ='40'");
1324 1324
         $file_tray->addElement($file_img);
1325
-        $msg        = sprintf(_MD_EXTCAL_IMG_CONFIG, (int)(400728 / 1000), 500, 500);
1326
-        $file_label = new XoopsFormLabel('', '<br>' . $msg);
1325
+        $msg        = sprintf(_MD_EXTCAL_IMG_CONFIG, (int) (400728 / 1000), 500, 500);
1326
+        $file_label = new XoopsFormLabel('', '<br>'.$msg);
1327 1327
         $file_tray->addElement($file_label);
1328 1328
         $form->addElement($file_tray);
1329 1329
         $form->addElement(new XoopsFormHidden('file1', $event_picture1));
@@ -1331,7 +1331,7 @@  discard block
 block discarded – undo
1331 1331
         //Picture2
1332 1332
         $file_tray = new XoopsFormElementTray(sprintf(_MD_EXTCAL_FORM_IMG, 2), '');
1333 1333
         if (!empty($event_picture2)) {
1334
-            $file_tray->addElement(new XoopsFormLabel('', "<img src='" . XOOPS_URL . '/uploads/extcal/' . $event_picture2 . "' name='image' id='image' alt=''><br><br>"));
1334
+            $file_tray->addElement(new XoopsFormLabel('', "<img src='".XOOPS_URL.'/uploads/extcal/'.$event_picture2."' name='image' id='image' alt=''><br><br>"));
1335 1335
             $check_del_img = new XoopsFormCheckBox('', 'delimg_2');
1336 1336
             $check_del_img->addOption(1, _MD_EXTCAL_DEL_IMG);
1337 1337
             $file_tray->addElement($check_del_img);
@@ -1342,8 +1342,8 @@  discard block
 block discarded – undo
1342 1342
         }
1343 1343
         $file_img->setExtra("size ='40'");
1344 1344
         $file_tray->addElement($file_img);
1345
-        $msg        = sprintf(_MD_EXTCAL_IMG_CONFIG, (int)(400728 / 1000), 500, 500);
1346
-        $file_label = new XoopsFormLabel('', '<br>' . $msg);
1345
+        $msg        = sprintf(_MD_EXTCAL_IMG_CONFIG, (int) (400728 / 1000), 500, 500);
1346
+        $file_label = new XoopsFormLabel('', '<br>'.$msg);
1347 1347
         $file_tray->addElement($file_label);
1348 1348
         $form->addElement($file_tray);
1349 1349
         $form->addElement(new XoopsFormHidden('file2', $event_picture2));
@@ -1410,7 +1410,7 @@  discard block
 block discarded – undo
1410 1410
                 $recurRules = 'weekly|';
1411 1411
                 $recurRules .= $parm['rrule_weekly_interval'];
1412 1412
                 foreach ($parm['rrule_weekly_bydays'] as $day) {
1413
-                    $recurRules .= '|' . $day;
1413
+                    $recurRules .= '|'.$day;
1414 1414
                 }
1415 1415
 
1416 1416
                 break;
@@ -1420,11 +1420,11 @@  discard block
 block discarded – undo
1420 1420
                     $parm['rrule_monthly_interval'] = 0;
1421 1421
                 }
1422 1422
                 $recurRules = 'monthly|';
1423
-                $recurRules .= $parm['rrule_monthly_interval'] . '|';
1423
+                $recurRules .= $parm['rrule_monthly_interval'].'|';
1424 1424
                 if ($parm['rrule_monthly_byday'] != '') {
1425 1425
                     $recurRules .= $parm['rrule_monthly_byday'];
1426 1426
                 } else {
1427
-                    $recurRules .= 'MD' . $parm['rrule_bymonthday'];
1427
+                    $recurRules .= 'MD'.$parm['rrule_bymonthday'];
1428 1428
                 }
1429 1429
 
1430 1430
                 break;
@@ -1458,9 +1458,9 @@  discard block
 block discarded – undo
1458 1458
 
1459 1459
                 $recurRules = 'yearly|';
1460 1460
                 $recurRules .= $parm['rrule_yearly_interval'];
1461
-                $recurRules .= '|' . $parm['rrule_yearly_byday'];
1461
+                $recurRules .= '|'.$parm['rrule_yearly_byday'];
1462 1462
                 foreach ($parm['rrule_yearly_bymonths'] as $month) {
1463
-                    $recurRules .= '|' . $month;
1463
+                    $recurRules .= '|'.$month;
1464 1464
                 }
1465 1465
 
1466 1466
                 break;
@@ -2390,10 +2390,10 @@  discard block
 block discarded – undo
2390 2390
         global $xoopsDB;
2391 2391
 
2392 2392
         //echo "<hr>{$andor}-{$limit}-{$offset}-{$userId}-{$user}<br>{$criteresPlus}";
2393
-        $tEvent = $xoopsDB->prefix('extcal_event') . ' AS te';
2394
-        $tCat   = $xoopsDB->prefix('extcal_cat') . ' AS tc';
2393
+        $tEvent = $xoopsDB->prefix('extcal_event').' AS te';
2394
+        $tCat   = $xoopsDB->prefix('extcal_cat').' AS tc';
2395 2395
 
2396
-        $sql = 'SELECT te.*, tc.cat_name , tc.cat_color, ' . 'year(FROM_UNIXTIME(event_start)) AS year,' . 'month(FROM_UNIXTIME(event_start)) AS month,' . 'day(FROM_UNIXTIME(event_start)) AS day' . " FROM {$tEvent}, {$tCat}";
2396
+        $sql = 'SELECT te.*, tc.cat_name , tc.cat_color, '.'year(FROM_UNIXTIME(event_start)) AS year,'.'month(FROM_UNIXTIME(event_start)) AS month,'.'day(FROM_UNIXTIME(event_start)) AS day'." FROM {$tEvent}, {$tCat}";
2397 2397
         //---------------------------------------------------
2398 2398
         $tw   = array();
2399 2399
         $tw[] = 'te.cat_id = tc.cat_id';
@@ -2402,7 +2402,7 @@  discard block
 block discarded – undo
2402 2402
         $authorizedAccessCats = $this->_extcalPerm->getAuthorizedCat($user, 'extcal_cat_view');
2403 2403
         $inCat                = 'te.cat_id IN (0)';
2404 2404
         if (count($authorizedAccessCats) > 0) {
2405
-            $inCat = 'te.cat_id IN (' . implode(',', $authorizedAccessCats) . ')';
2405
+            $inCat = 'te.cat_id IN ('.implode(',', $authorizedAccessCats).')';
2406 2406
         }
2407 2407
         //echo $tw[count($tw)-1];
2408 2408
 
@@ -2438,12 +2438,12 @@  discard block
 block discarded – undo
2438 2438
                 'te.event_address',
2439 2439
                 'tc.cat_name',
2440 2440
             );
2441
-            $t       = array();
2441
+            $t = array();
2442 2442
             for ($i = 0, $count = count($queryarray); $i < $count; ++$i) {
2443 2443
                 $t1[] = " %1\$s LIKE '#{$queryarray[$i]}#' ";
2444 2444
             }
2445 2445
 
2446
-            $flt = '(' . implode(" {$andor} ", $t1) . ')';
2446
+            $flt = '('.implode(" {$andor} ", $t1).')';
2447 2447
 
2448 2448
             $t = array();
2449 2449
             for ($h = 0, $count = count($tFields); $h < $count; ++$h) {
@@ -2452,10 +2452,10 @@  discard block
 block discarded – undo
2452 2452
 
2453 2453
             $filtre = implode(' OR ', $t);
2454 2454
             $filtre = str_replace('#', '%', $filtre);
2455
-            $tw[]   = '(' . $filtre . ')';
2455
+            $tw[]   = '('.$filtre.')';
2456 2456
         }
2457 2457
 
2458
-        $sql .= ' WHERE ' . implode(' AND ', $tw);
2458
+        $sql .= ' WHERE '.implode(' AND ', $tw);
2459 2459
         //------------------------------------------------------------
2460 2460
         if (count($orderBy) > 0) {
2461 2461
             $t = array();
@@ -2465,7 +2465,7 @@  discard block
 block discarded – undo
2465 2465
                 }
2466 2466
             }
2467 2467
             if (count($t) > 0) {
2468
-                $sql .= ' ORDER BY ' . implode(',', $t);
2468
+                $sql .= ' ORDER BY '.implode(',', $t);
2469 2469
             }
2470 2470
         }
2471 2471
 
@@ -2498,7 +2498,7 @@  discard block
 block discarded – undo
2498 2498
         $i = 0;
2499 2499
         while ($myrow = $xoopsDB->fetchArray($result)) {
2500 2500
             $ret[$i]['image'] = 'assets/images/icons/extcal.gif';
2501
-            $ret[$i]['link']  = 'event.php?event=' . $myrow['event_id'];
2501
+            $ret[$i]['link']  = 'event.php?event='.$myrow['event_id'];
2502 2502
             $ret[$i]['title'] = $myrow['event_title'];
2503 2503
             $ret[$i]['time']  = $myrow['event_submitdate'];
2504 2504
             $ret[$i]['uid']   = $myrow['event_submitter'];
@@ -2538,23 +2538,23 @@  discard block
 block discarded – undo
2538 2538
         //        }
2539 2539
         $tEvent = $xoopsDB->prefix('extcal_event');
2540 2540
         $tCat   = $xoopsDB->prefix('extcal_cat');
2541
-        $sql    = "SELECT {$tEvent}.*, {$tCat}.cat_name AS categorie, {$tCat}.cat_color " . " FROM {$tEvent}, {$tCat}" . " WHERE {$tEvent}.cat_id = {$tCat}.cat_id AND event_approved = '1'";
2541
+        $sql    = "SELECT {$tEvent}.*, {$tCat}.cat_name AS categorie, {$tCat}.cat_color "." FROM {$tEvent}, {$tCat}"." WHERE {$tEvent}.cat_id = {$tCat}.cat_id AND event_approved = '1'";
2542 2542
 
2543 2543
         $authorizedAccessCats = $this->_extcalPerm->getAuthorizedCat($user, 'extcal_cat_view');
2544 2544
         $count                = count($authorizedAccessCats);
2545 2545
         if ($count > 0) {
2546
-            $in = '(' . $authorizedAccessCats[0];
2546
+            $in = '('.$authorizedAccessCats[0];
2547 2547
             array_shift($authorizedAccessCats);
2548 2548
             foreach ($authorizedAccessCats as $authorizedAccessCat) {
2549
-                $in .= ',' . $authorizedAccessCat;
2549
+                $in .= ','.$authorizedAccessCat;
2550 2550
             }
2551 2551
             $in .= ')';
2552 2552
         } else {
2553 2553
             $in = '(0)';
2554 2554
         }
2555
-        $sql .= " AND {$tEvent}.cat_id IN " . $in . '';
2555
+        $sql .= " AND {$tEvent}.cat_id IN ".$in.'';
2556 2556
         if ($userId != 0) {
2557
-            $sql .= " AND event_submitter = '" . $userId . "'";
2557
+            $sql .= " AND event_submitter = '".$userId."'";
2558 2558
         }
2559 2559
 
2560 2560
         //echoArray($queryarray,false);
@@ -2574,7 +2574,7 @@  discard block
 block discarded – undo
2574 2574
                 $t1[] = " %1\$s LIKE '#{$queryarray[$i]}#' ";
2575 2575
             }
2576 2576
 
2577
-            $flt = '(' . implode(" {$andor} ", $t1) . ')';
2577
+            $flt = '('.implode(" {$andor} ", $t1).')';
2578 2578
 
2579 2579
             $t = array();
2580 2580
             for ($h = 0, $count = count($tFields); $h < $count; ++$h) {
@@ -2583,11 +2583,11 @@  discard block
 block discarded – undo
2583 2583
 
2584 2584
             $filtre = implode(' OR ', $t);
2585 2585
             $filtre = str_replace('#', '%', $filtre);
2586
-            $sql    .= " AND ($filtre)";
2586
+            $sql .= " AND ($filtre)";
2587 2587
         }
2588 2588
 
2589 2589
         if ($criteresPlus != '') {
2590
-            $sql .= ' AND ' . $criteresPlus;
2590
+            $sql .= ' AND '.$criteresPlus;
2591 2591
         }
2592 2592
         $sql .= ' ORDER BY event_id DESC';
2593 2593
 
@@ -2597,7 +2597,7 @@  discard block
 block discarded – undo
2597 2597
         if ($xoopsSearch) {
2598 2598
             while ($myrow = $xoopsDB->fetchArray($result)) {
2599 2599
                 $ret[$i]['image'] = 'assets/images/icons/extcal.gif';
2600
-                $ret[$i]['link']  = 'event.php?event=' . $myrow['event_id'];
2600
+                $ret[$i]['link']  = 'event.php?event='.$myrow['event_id'];
2601 2601
                 $ret[$i]['title'] = $myrow['event_title'];
2602 2602
                 $ret[$i]['time']  = $myrow['event_submitdate'];
2603 2603
                 $ret[$i]['uid']   = $myrow['event_submitter'];
Please login to merge, or discard this patch.
class/form/formfilecheckbox.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@
 block discarded – undo
6 6
 class ExtcalFormFileCheckBox extends XoopsFormCheckBox
7 7
 {
8 8
     /**
9
-     * @param      $caption
10
-     * @param      $name
9
+     * @param      string $caption
10
+     * @param      string $name
11 11
      * @param null $value
12 12
      *
13 13
      * @return ExtcalFormFileCheckBox
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,13 +43,13 @@
 block discarded – undo
43 43
     {
44 44
         $ret = '';
45 45
         if (count($this->getOptions()) > 1 && substr($this->getName(), -2, 2) !== '[]') {
46
-            $newname = $this->getName() . '[]';
46
+            $newname = $this->getName().'[]';
47 47
             $this->setName($newname);
48 48
         }
49 49
         foreach ($this->getOptions() as $value => $name) {
50
-            $ret .= "<input type='checkbox' name='" . $this->getName() . "' value='" . $value . "'";
50
+            $ret .= "<input type='checkbox' name='".$this->getName()."' value='".$value."'";
51 51
             $ret .= ' checked';
52
-            $ret .= $this->getExtra() . '>' . $name . "<br>\n";
52
+            $ret .= $this->getExtra().'>'.$name."<br>\n";
53 53
         }
54 54
 
55 55
         return $ret;
Please login to merge, or discard this patch.
class/form/formrrulecheckbox.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@
 block discarded – undo
6 6
 class ExtcalFormRRuleCheckBox extends XoopsFormCheckBox
7 7
 {
8 8
     /**
9
-     * @param      $caption
10
-     * @param      $name
11
-     * @param null $value
9
+     * @param      string $caption
10
+     * @param      string $name
11
+     * @param string $value
12 12
      */
13 13
     public function __construct($caption, $name, $value = null)
14 14
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,18 +42,18 @@
 block discarded – undo
42 42
         $ret = '<table><tr>';
43 43
         $i   = 0;
44 44
         if (count($this->getOptions()) > 1 && substr($this->getName(), -2, 2) !== '[]') {
45
-            $newname = $this->getName() . '[]';
45
+            $newname = $this->getName().'[]';
46 46
             $this->setName($newname);
47 47
         }
48 48
         foreach ($this->getOptions() as $value => $name) {
49 49
             if ((++$i) % 6 == 0) {
50 50
                 $ret .= '</tr><tr>';
51 51
             }
52
-            $ret .= "<td><input type='checkbox' name='" . $this->getName() . "' value='" . $value . "'";
52
+            $ret .= "<td><input type='checkbox' name='".$this->getName()."' value='".$value."'";
53 53
             if (count($this->getValue()) > 0 && in_array($value, $this->getValue())) {
54 54
                 $ret .= ' checked';
55 55
             }
56
-            $ret .= $this->getExtra() . '>' . $name . "</td>\n";
56
+            $ret .= $this->getExtra().'>'.$name."</td>\n";
57 57
         }
58 58
         $ret .= '</tr></table>';
59 59
 
Please login to merge, or discard this patch.
class/pcltrace.lib.php 2 patches
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -146,9 +146,9 @@  discard block
 block discarded – undo
146 146
     //   $p_level : Level of trace required.
147 147
     // --------------------------------------------------------------------------------
148 148
     /**
149
-     * @param        $p_file
150
-     * @param        $p_line
151
-     * @param        $p_name
149
+     * @param        string $p_file
150
+     * @param        integer $p_line
151
+     * @param        string $p_name
152 152
      * @param string $p_param
153 153
      * @param string $p_message
154 154
      */
@@ -213,8 +213,8 @@  discard block
 block discarded – undo
213 213
     //   $p_level : Level of trace required.
214 214
     // --------------------------------------------------------------------------------
215 215
     /**
216
-     * @param        $p_file
217
-     * @param        $p_line
216
+     * @param        string $p_file
217
+     * @param        integer $p_line
218 218
      * @param int    $p_return
219 219
      * @param string $p_message
220 220
      */
@@ -279,9 +279,9 @@  discard block
 block discarded – undo
279 279
     // Parameters :
280 280
     // --------------------------------------------------------------------------------
281 281
     /**
282
-     * @param        $p_file
283
-     * @param        $p_line
284
-     * @param        $p_level
282
+     * @param        string $p_file
283
+     * @param        integer $p_line
284
+     * @param        integer $p_level
285 285
      * @param string $p_message
286 286
      */
287 287
     function TrFctMessage($p_file, $p_line, $p_level, $p_message = '')
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
         if (!isset($g_pcl_trace_name)) {
171 171
             $g_pcl_trace_name = $p_name;
172 172
         } else {
173
-            $g_pcl_trace_name .= ',' . $p_name;
173
+            $g_pcl_trace_name .= ','.$p_name;
174 174
         }
175 175
 
176 176
         // ----- Update the function entry
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
             echo '<tr>';
399 399
             echo '<td><table width=100% border=0 cellspacing=0 cellpadding=0><tr>';
400 400
             $n = ($g_pcl_trace_entries[$i]['index'] + 1) * 10;
401
-            echo '<td width=' . $n . '><table width=100% border=0 cellspacing=0 cellpadding=0><tr>';
401
+            echo '<td width='.$n.'><table width=100% border=0 cellspacing=0 cellpadding=0><tr>';
402 402
 
403 403
             for ($j = 0; $j <= $g_pcl_trace_entries[$i]['index']; ++$j) {
404 404
                 if ($j == $g_pcl_trace_entries[$i]['index']) {
@@ -415,25 +415,25 @@  discard block
 block discarded – undo
415 415
             echo '<td width=2></td>';
416 416
             switch ($g_pcl_trace_entries[$i]['type']) {
417 417
                 case 1:
418
-                    echo "<td><span style='font-size: x-small; font-family: $v_font; '>" . $g_pcl_trace_entries[$i]['name'] . '(' . $g_pcl_trace_entries[$i]['param'] . ')</span></td>';
418
+                    echo "<td><span style='font-size: x-small; font-family: $v_font; '>".$g_pcl_trace_entries[$i]['name'].'('.$g_pcl_trace_entries[$i]['param'].')</span></td>';
419 419
                     break;
420 420
                 case 2:
421
-                    echo "<td><span style='font-size: x-small; font-family: $v_font; '>" . $g_pcl_trace_entries[$i]['name'] . '()=' . $g_pcl_trace_entries[$i]['param'] . '</span></td>';
421
+                    echo "<td><span style='font-size: x-small; font-family: $v_font; '>".$g_pcl_trace_entries[$i]['name'].'()='.$g_pcl_trace_entries[$i]['param'].'</span></td>';
422 422
                     break;
423 423
                 case 3:
424 424
                 case 4:
425 425
                     echo '<td><table width=100% border=0 cellspacing=0 cellpadding=0><td width=20></td><td>';
426
-                    echo "<span style='font-size: x-small; font-family: $v_font; '>" . $g_pcl_trace_entries[$i]['message'] . '</span>';
426
+                    echo "<span style='font-size: x-small; font-family: $v_font; '>".$g_pcl_trace_entries[$i]['message'].'</span>';
427 427
                     echo '</td></table></td>';
428 428
                     break;
429 429
                 default:
430
-                    echo "<td><span style='font-size: x-small; font-family: $v_font; '>" . $g_pcl_trace_entries[$i]['name'] . '(' . $g_pcl_trace_entries[$i]['param'] . ')</span></td>';
430
+                    echo "<td><span style='font-size: x-small; font-family: $v_font; '>".$g_pcl_trace_entries[$i]['name'].'('.$g_pcl_trace_entries[$i]['param'].')</span></td>';
431 431
             }
432 432
             echo '</tr></table></td>';
433 433
             echo '<td width=5></td>';
434
-            echo '<td><span style="font-size: xx-small; font-family: $v_font; ">' . basename($g_pcl_trace_entries[$i]['file']) . '</span></td>';
434
+            echo '<td><span style="font-size: xx-small; font-family: $v_font; ">'.basename($g_pcl_trace_entries[$i]['file']).'</span></td>';
435 435
             echo '<td width=5></td>';
436
-            echo '<td><span style="font-size: xx-small; font-family: $v_font; ">' . $g_pcl_trace_entries[$i]['line'] . '</span></td>';
436
+            echo '<td><span style="font-size: xx-small; font-family: $v_font; ">'.$g_pcl_trace_entries[$i]['line'].'</span></td>';
437 437
             echo '</tr>';
438 438
         }
439 439
 
@@ -477,12 +477,12 @@  discard block
 block discarded – undo
477 477
                 echo '---';
478 478
             }
479 479
             if ($p_entry['type'] == 1) {
480
-                echo '<b>' . $p_entry['name'] . '</b>(' . $p_entry['param'] . ') : ' . $p_entry['message'] . ' [' . $p_entry['file'] . ', ' . $p_entry['line'] . ']<br>';
480
+                echo '<b>'.$p_entry['name'].'</b>('.$p_entry['param'].') : '.$p_entry['message'].' ['.$p_entry['file'].', '.$p_entry['line'].']<br>';
481 481
             } else {
482 482
                 if ($p_entry['type'] == 2) {
483
-                    echo '<b>' . $p_entry['name'] . '</b>()=' . $p_entry['param'] . ' : ' . $p_entry['message'] . ' [' . $p_entry['file'] . ', ' . $p_entry['line'] . ']<br>';
483
+                    echo '<b>'.$p_entry['name'].'</b>()='.$p_entry['param'].' : '.$p_entry['message'].' ['.$p_entry['file'].', '.$p_entry['line'].']<br>';
484 484
                 } else {
485
-                    echo $p_entry['message'] . ' [' . $p_entry['file'] . ', ' . $p_entry['line'] . ']<br>';
485
+                    echo $p_entry['message'].' ['.$p_entry['file'].', '.$p_entry['line'].']<br>';
486 486
                 }
487 487
             }
488 488
         }
Please login to merge, or discard this patch.