Completed
Push — master ( a9decc...a21b67 )
by Michael
02:51
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.
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,27 +39,27 @@  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
             ) {
58 58
                 sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_0, _MD_EXTCAL_MSG_0);
59 59
                 $rediredtMessage = _MD_EXTCAL_MAX_MEMBER_REACHED;
60 60
             } else {
61 61
                 $eventMemberHandler->createEventmember(array(
62
-                                                           'event_id' => (int)$_POST['event'],
62
+                                                           'event_id' => (int) $_POST['event'],
63 63
                                                            'uid'      => $xoopsUser->getVar('uid'),
64 64
                                                        ));
65 65
                 sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_1, _MD_EXTCAL_MSG_1);
@@ -68,12 +68,12 @@  discard block
 block discarded – undo
68 68
             // If the user have to be remove
69 69
         } else {
70 70
             if ($_POST['mode'] === 'remove') {
71
-                $eventMemberHandler->deleteEventmember(array((int)$_POST['event'], $xoopsUser->getVar('uid')));
71
+                $eventMemberHandler->deleteEventmember(array((int) $_POST['event'], $xoopsUser->getVar('uid')));
72 72
                 sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_2, _MD_EXTCAL_MSG_2);
73 73
                 $rediredtMessage = _MD_EXTCAL_WHOS_GOING_REMOVED_TO_EVENT;
74 74
             }
75 75
         }
76
-        redirect_header('event.php?event=' . $_POST['event'], 3, $rediredtMessage, false);
76
+        redirect_header('event.php?event='.$_POST['event'], 3, $rediredtMessage, false);
77 77
     } else {
78 78
         redirect_header('index.php', 3, _NOPERM, false);
79 79
     }
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 3 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.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2398,10 +2398,10 @@
 block discarded – undo
2398 2398
         $tCat   = $xoopsDB->prefix('extcal_cat') . ' AS tc';
2399 2399
 
2400 2400
         $sql = 'SELECT te.*, tc.cat_name , tc.cat_color, '
2401
-               . 'year(FROM_UNIXTIME(event_start)) AS year,'
2402
-               . 'month(FROM_UNIXTIME(event_start)) AS month,'
2403
-               . 'day(FROM_UNIXTIME(event_start)) AS day'
2404
-               . " FROM {$tEvent}, {$tCat}";
2401
+                . 'year(FROM_UNIXTIME(event_start)) AS year,'
2402
+                . 'month(FROM_UNIXTIME(event_start)) AS month,'
2403
+                . 'day(FROM_UNIXTIME(event_start)) AS day'
2404
+                . " FROM {$tEvent}, {$tCat}";
2405 2405
         //---------------------------------------------------
2406 2406
         $tw   = array();
2407 2407
         $tw[] = 'te.cat_id = tc.cat_id';
Please login to merge, or discard this patch.
Spacing   +47 added lines, -47 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;
@@ -2394,8 +2394,8 @@  discard block
 block discarded – undo
2394 2394
         global $xoopsDB;
2395 2395
 
2396 2396
         //echo "<hr>{$andor}-{$limit}-{$offset}-{$userId}-{$user}<br>{$criteresPlus}";
2397
-        $tEvent = $xoopsDB->prefix('extcal_event') . ' AS te';
2398
-        $tCat   = $xoopsDB->prefix('extcal_cat') . ' AS tc';
2397
+        $tEvent = $xoopsDB->prefix('extcal_event').' AS te';
2398
+        $tCat   = $xoopsDB->prefix('extcal_cat').' AS tc';
2399 2399
 
2400 2400
         $sql = 'SELECT te.*, tc.cat_name , tc.cat_color, '
2401 2401
                . 'year(FROM_UNIXTIME(event_start)) AS year,'
@@ -2410,7 +2410,7 @@  discard block
 block discarded – undo
2410 2410
         $authorizedAccessCats = $this->_extcalPerm->getAuthorizedCat($user, 'extcal_cat_view');
2411 2411
         $inCat                = 'te.cat_id IN (0)';
2412 2412
         if (count($authorizedAccessCats) > 0) {
2413
-            $inCat = 'te.cat_id IN (' . implode(',', $authorizedAccessCats) . ')';
2413
+            $inCat = 'te.cat_id IN ('.implode(',', $authorizedAccessCats).')';
2414 2414
         }
2415 2415
         //echo $tw[count($tw)-1];
2416 2416
 
@@ -2446,12 +2446,12 @@  discard block
 block discarded – undo
2446 2446
                 'te.event_address',
2447 2447
                 'tc.cat_name',
2448 2448
             );
2449
-            $t       = array();
2449
+            $t = array();
2450 2450
             for ($i = 0, $count = count($queryarray); $i < $count; ++$i) {
2451 2451
                 $t1[] = " %1\$s LIKE '#{$queryarray[$i]}#' ";
2452 2452
             }
2453 2453
 
2454
-            $flt = '(' . implode(" {$andor} ", $t1) . ')';
2454
+            $flt = '('.implode(" {$andor} ", $t1).')';
2455 2455
 
2456 2456
             $t = array();
2457 2457
             for ($h = 0, $count = count($tFields); $h < $count; ++$h) {
@@ -2460,10 +2460,10 @@  discard block
 block discarded – undo
2460 2460
 
2461 2461
             $filtre = implode(' OR ', $t);
2462 2462
             $filtre = str_replace('#', '%', $filtre);
2463
-            $tw[]   = '(' . $filtre . ')';
2463
+            $tw[]   = '('.$filtre.')';
2464 2464
         }
2465 2465
 
2466
-        $sql .= ' WHERE ' . implode(' AND ', $tw);
2466
+        $sql .= ' WHERE '.implode(' AND ', $tw);
2467 2467
         //------------------------------------------------------------
2468 2468
         if (count($orderBy) > 0) {
2469 2469
             $t = array();
@@ -2473,7 +2473,7 @@  discard block
 block discarded – undo
2473 2473
                 }
2474 2474
             }
2475 2475
             if (count($t) > 0) {
2476
-                $sql .= ' ORDER BY ' . implode(',', $t);
2476
+                $sql .= ' ORDER BY '.implode(',', $t);
2477 2477
             }
2478 2478
         }
2479 2479
 
@@ -2506,7 +2506,7 @@  discard block
 block discarded – undo
2506 2506
         $i = 0;
2507 2507
         while ($myrow = $xoopsDB->fetchArray($result)) {
2508 2508
             $ret[$i]['image'] = 'assets/images/icons/extcal.gif';
2509
-            $ret[$i]['link']  = 'event.php?event=' . $myrow['event_id'];
2509
+            $ret[$i]['link']  = 'event.php?event='.$myrow['event_id'];
2510 2510
             $ret[$i]['title'] = $myrow['event_title'];
2511 2511
             $ret[$i]['time']  = $myrow['event_submitdate'];
2512 2512
             $ret[$i]['uid']   = $myrow['event_submitter'];
@@ -2546,23 +2546,23 @@  discard block
 block discarded – undo
2546 2546
         //        }
2547 2547
         $tEvent = $xoopsDB->prefix('extcal_event');
2548 2548
         $tCat   = $xoopsDB->prefix('extcal_cat');
2549
-        $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'";
2549
+        $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'";
2550 2550
 
2551 2551
         $authorizedAccessCats = $this->_extcalPerm->getAuthorizedCat($user, 'extcal_cat_view');
2552 2552
         $count                = count($authorizedAccessCats);
2553 2553
         if ($count > 0) {
2554
-            $in = '(' . $authorizedAccessCats[0];
2554
+            $in = '('.$authorizedAccessCats[0];
2555 2555
             array_shift($authorizedAccessCats);
2556 2556
             foreach ($authorizedAccessCats as $authorizedAccessCat) {
2557
-                $in .= ',' . $authorizedAccessCat;
2557
+                $in .= ','.$authorizedAccessCat;
2558 2558
             }
2559 2559
             $in .= ')';
2560 2560
         } else {
2561 2561
             $in = '(0)';
2562 2562
         }
2563
-        $sql .= " AND {$tEvent}.cat_id IN " . $in . '';
2563
+        $sql .= " AND {$tEvent}.cat_id IN ".$in.'';
2564 2564
         if ($userId != 0) {
2565
-            $sql .= " AND event_submitter = '" . $userId . "'";
2565
+            $sql .= " AND event_submitter = '".$userId."'";
2566 2566
         }
2567 2567
 
2568 2568
         //echoArray($queryarray,false);
@@ -2582,7 +2582,7 @@  discard block
 block discarded – undo
2582 2582
                 $t1[] = " %1\$s LIKE '#{$queryarray[$i]}#' ";
2583 2583
             }
2584 2584
 
2585
-            $flt = '(' . implode(" {$andor} ", $t1) . ')';
2585
+            $flt = '('.implode(" {$andor} ", $t1).')';
2586 2586
 
2587 2587
             $t = array();
2588 2588
             for ($h = 0, $count = count($tFields); $h < $count; ++$h) {
@@ -2591,11 +2591,11 @@  discard block
 block discarded – undo
2591 2591
 
2592 2592
             $filtre = implode(' OR ', $t);
2593 2593
             $filtre = str_replace('#', '%', $filtre);
2594
-            $sql    .= " AND ($filtre)";
2594
+            $sql .= " AND ($filtre)";
2595 2595
         }
2596 2596
 
2597 2597
         if ($criteresPlus != '') {
2598
-            $sql .= ' AND ' . $criteresPlus;
2598
+            $sql .= ' AND '.$criteresPlus;
2599 2599
         }
2600 2600
         $sql .= ' ORDER BY event_id DESC';
2601 2601
 
@@ -2605,7 +2605,7 @@  discard block
 block discarded – undo
2605 2605
         if ($xoopsSearch) {
2606 2606
             while ($myrow = $xoopsDB->fetchArray($result)) {
2607 2607
                 $ret[$i]['image'] = 'assets/images/icons/extcal.gif';
2608
-                $ret[$i]['link']  = 'event.php?event=' . $myrow['event_id'];
2608
+                $ret[$i]['link']  = 'event.php?event='.$myrow['event_id'];
2609 2609
                 $ret[$i]['title'] = $myrow['event_title'];
2610 2610
                 $ret[$i]['time']  = $myrow['event_submitdate'];
2611 2611
                 $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.
class/pear/Calendar/docs/examples/20.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     public $entries = array();
25 25
 
26 26
     /**
27
-     * @param $calendar
27
+     * @param Calendar_Day $calendar
28 28
      */
29 29
     public function __construct($calendar)
30 30
     {
Please login to merge, or discard this patch.