Completed
Push — master ( d44352...76d45c )
by Michael
08:21
created
class/pclerror.lib.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
         global $g_pcl_error_string;
139 139
         global $g_pcl_error_code;
140 140
 
141
-        return ($g_pcl_error_string . " [code $g_pcl_error_code]");
141
+        return ($g_pcl_error_string." [code $g_pcl_error_code]");
142 142
     }
143 143
 
144 144
     // --------------------------------------------------------------------------------
Please login to merge, or discard this patch.
class/form/formrecurrules.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -66,45 +66,45 @@  discard block
 block discarded – undo
66 66
         $formObject = new XoopsFormRadio('', 'rrule_freq', $this->_rrule_freq);
67 67
         $formObject->addOption('none', _MD_EXTCAL_NO_RECCUR_EVENT);
68 68
         $ret .= $formObject->render();
69
-        $ret .= '<br /><br /><fieldset><legend>' . _MD_EXTCAL_RECCUR_POLICY . '</legend><fieldset><legend>';
69
+        $ret .= '<br /><br /><fieldset><legend>'._MD_EXTCAL_RECCUR_POLICY.'</legend><fieldset><legend>';
70 70
 
71 71
         $formObject = new XoopsFormRadio('', 'rrule_freq', $this->_rrule_freq);
72 72
         $formObject->addOption('daily', _MD_EXTCAL_DAILY);
73 73
         $ret .= $formObject->render();
74
-        $ret .= '</legend>' . _MD_EXTCAL_DURING . ' ';
74
+        $ret .= '</legend>'._MD_EXTCAL_DURING.' ';
75 75
 
76 76
         $formObject = new XoopsFormText('', 'rrule_daily_interval', 3, 2, $this->_rrule_daily_interval);
77 77
         $ret .= $formObject->render();
78
-        $ret .= ' ' . _MD_EXTCAL_DAYS . '</fieldset><br /><fieldset><legend>';
78
+        $ret .= ' '._MD_EXTCAL_DAYS.'</fieldset><br /><fieldset><legend>';
79 79
 
80 80
         $formObject = new XoopsFormRadio('', 'rrule_freq', $this->_rrule_freq);
81 81
         $formObject->addOption('weekly', _MD_EXTCAL_WEEKLY);
82 82
         $ret .= $formObject->render();
83
-        $ret .= '</legend>' . _MD_EXTCAL_DURING . ' ';
83
+        $ret .= '</legend>'._MD_EXTCAL_DURING.' ';
84 84
 
85 85
         $formObject = new XoopsFormText('', 'rrule_weekly_interval', 3, 2, $this->_rrule_weekly_interval);
86 86
         $ret .= $formObject->render();
87
-        $ret .= ' ' . _MD_EXTCAL_WEEKS . '<br />';
87
+        $ret .= ' '._MD_EXTCAL_WEEKS.'<br />';
88 88
 
89 89
         $formObject = new XoopsFormCheckBox('', 'rrule_weekly_bydays', $this->_rrule_weekly_bydays);
90
-        $formObject->addOption('MO', _MD_EXTCAL_MO2 . '&nbsp;');
91
-        $formObject->addOption('TU', _MD_EXTCAL_TU2 . '&nbsp;');
92
-        $formObject->addOption('WE', _MD_EXTCAL_WE2 . '&nbsp;');
93
-        $formObject->addOption('TH', _MD_EXTCAL_TH2 . '&nbsp;');
94
-        $formObject->addOption('FR', _MD_EXTCAL_FR2 . '&nbsp;');
95
-        $formObject->addOption('SA', _MD_EXTCAL_SA2 . '&nbsp;');
96
-        $formObject->addOption('SU', _MD_EXTCAL_SU2 . '&nbsp;');
90
+        $formObject->addOption('MO', _MD_EXTCAL_MO2.'&nbsp;');
91
+        $formObject->addOption('TU', _MD_EXTCAL_TU2.'&nbsp;');
92
+        $formObject->addOption('WE', _MD_EXTCAL_WE2.'&nbsp;');
93
+        $formObject->addOption('TH', _MD_EXTCAL_TH2.'&nbsp;');
94
+        $formObject->addOption('FR', _MD_EXTCAL_FR2.'&nbsp;');
95
+        $formObject->addOption('SA', _MD_EXTCAL_SA2.'&nbsp;');
96
+        $formObject->addOption('SU', _MD_EXTCAL_SU2.'&nbsp;');
97 97
         $ret .= $formObject->render();
98 98
         $ret .= '</fieldset><br /><fieldset><legend>';
99 99
 
100 100
         $formObject = new XoopsFormRadio('', 'rrule_freq', $this->_rrule_freq);
101 101
         $formObject->addOption('monthly', _MD_EXTCAL_MONTHLY);
102 102
         $ret .= $formObject->render();
103
-        $ret .= '</legend>' . _MD_EXTCAL_DURING . ' ';
103
+        $ret .= '</legend>'._MD_EXTCAL_DURING.' ';
104 104
 
105 105
         $formObject = new XoopsFormText('', 'rrule_monthly_interval', 3, 2, $this->_rrule_monthly_interval);
106 106
         $ret .= $formObject->render();
107
-        $ret .= ' ' . _MD_EXTCAL_MONTH . ', ' . _MD_EXTCAL_ON . ' ';
107
+        $ret .= ' '._MD_EXTCAL_MONTH.', '._MD_EXTCAL_ON.' ';
108 108
 
109 109
         $formObject = new XoopsFormSelect('', 'rrule_monthly_byday', $this->_rrule_monthly_byday);
110 110
         $formObject->addOption('', '&nbsp;');
@@ -144,20 +144,20 @@  discard block
 block discarded – undo
144 144
         $formObject->addOption('-1SA', _MD_EXTCAL_LAST_SA);
145 145
         $formObject->addOption('-1SU', _MD_EXTCAL_LAST_SU);
146 146
         $ret .= $formObject->render();
147
-        $ret .= ' ' . _MD_EXTCAL_OR_THE . ' ';
147
+        $ret .= ' '._MD_EXTCAL_OR_THE.' ';
148 148
 
149 149
         $formObject = new XoopsFormText('', 'rrule_bymonthday', 3, 2, $this->_rrule_bymonthday);
150 150
         $ret .= $formObject->render();
151
-        $ret .= ' ' . _MD_EXTCAL_DAY_NUM_MONTH . '</fieldset><br /><fieldset><legend>';
151
+        $ret .= ' '._MD_EXTCAL_DAY_NUM_MONTH.'</fieldset><br /><fieldset><legend>';
152 152
 
153 153
         $formObject = new XoopsFormRadio('', 'rrule_freq', $this->_rrule_freq);
154 154
         $formObject->addOption('yearly', _MD_EXTCAL_YEARLY);
155 155
         $ret .= $formObject->render();
156
-        $ret .= '</legend>' . _MD_EXTCAL_DURING . ' ';
156
+        $ret .= '</legend>'._MD_EXTCAL_DURING.' ';
157 157
 
158 158
         $formObject = new XoopsFormText('', 'rrule_yearly_interval', 3, 2, $this->_rrule_yearly_interval);
159 159
         $ret .= $formObject->render();
160
-        $ret .= ' ' . _MD_EXTCAL_YEARS . '<br />';
160
+        $ret .= ' '._MD_EXTCAL_YEARS.'<br />';
161 161
 
162 162
         $formObject = new ExtcalFormRRuleCheckBox('', 'rrule_yearly_bymonths', $this->_rrule_yearly_bymonths);
163 163
         $formObject->addOption('1', _MD_EXTCAL_JAN);
Please login to merge, or discard this patch.
class/form/extcalform.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-include XOOPS_ROOT_PATH . '/modules/extcal/class/form/formdatetime.php';
4
-include XOOPS_ROOT_PATH . '/modules/extcal/class/form/formrecurrules.php';
5
-include XOOPS_ROOT_PATH . '/modules/extcal/class/form/formfilecheckbox.php';
6
-include XOOPS_ROOT_PATH . '/modules/extcal/class/form/formrrulecheckbox.php';
3
+include XOOPS_ROOT_PATH.'/modules/extcal/class/form/formdatetime.php';
4
+include XOOPS_ROOT_PATH.'/modules/extcal/class/form/formrecurrules.php';
5
+include XOOPS_ROOT_PATH.'/modules/extcal/class/form/formfilecheckbox.php';
6
+include XOOPS_ROOT_PATH.'/modules/extcal/class/form/formrrulecheckbox.php';
7 7
 
8 8
 /**
9 9
  * Class ExtcalThemeForm
Please login to merge, or discard this patch.
class/file.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@  discard block
 block discarded – undo
2 2
 
3 3
 // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
4 4
 
5
-include_once XOOPS_ROOT_PATH . '/modules/extcal/class/ExtcalPersistableObjectHandler.php';
6
-include_once XOOPS_ROOT_PATH . '/class/uploader.php';
5
+include_once XOOPS_ROOT_PATH.'/modules/extcal/class/ExtcalPersistableObjectHandler.php';
6
+include_once XOOPS_ROOT_PATH.'/class/uploader.php';
7 7
 
8 8
 /**
9 9
  * Class ExtcalFile
@@ -53,13 +53,13 @@  discard block
 block discarded – undo
53 53
         $userId = $GLOBALS['xoopsUser'] ? $GLOBALS['xoopsUser']->getVar('uid') : 0;
54 54
 
55 55
         $allowedMimeType = array();
56
-        $mimeType        = include(XOOPS_ROOT_PATH . '/include/mimetypes.inc.php');
56
+        $mimeType        = include(XOOPS_ROOT_PATH.'/include/mimetypes.inc.php');
57 57
         foreach ($GLOBALS['xoopsModuleConfig']['allowed_file_extention'] as $fileExt) {
58 58
             $allowedMimeType[] = $mimeType[$fileExt];
59 59
         }
60 60
 
61
-        $uploader = new XoopsMediaUploader(XOOPS_ROOT_PATH . '/uploads/extcal', $allowedMimeType, 3145728);
62
-        $uploader->setPrefix($userId . '-' . $eventId . '_');
61
+        $uploader = new XoopsMediaUploader(XOOPS_ROOT_PATH.'/uploads/extcal', $allowedMimeType, 3145728);
62
+        $uploader->setPrefix($userId.'-'.$eventId.'_');
63 63
         if ($uploader->fetchMedia('event_file')) {
64 64
             if (!$uploader->upload()) {
65 65
                 return false;
@@ -119,19 +119,19 @@  discard block
 block discarded – undo
119 119
         if (isset($_POST['filetokeep'])) {
120 120
             if (is_array($_POST['filetokeep'])) {
121 121
                 $count = count($_POST['filetokeep']);
122
-                $in    = '(' . $_POST['filetokeep'][0];
122
+                $in    = '('.$_POST['filetokeep'][0];
123 123
                 array_shift($_POST['filetokeep']);
124 124
                 foreach ($_POST['filetokeep'] as $elmt) {
125
-                    $in .= ',' . $elmt;
125
+                    $in .= ','.$elmt;
126 126
                 }
127 127
                 $in .= ')';
128 128
             } else {
129
-                $in = '(' . $_POST['filetokeep'] . ')';
129
+                $in = '('.$_POST['filetokeep'].')';
130 130
             }
131 131
             $criteria->add(new Criteria('file_id', $in, 'NOT IN'));
132 132
         }
133 133
 
134
-        $files =& $this->getObjects($criteria);
134
+        $files = & $this->getObjects($criteria);
135 135
         foreach ($files as $file) {
136 136
             $this->deleteFile($file);
137 137
         }
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
     public function formatFileSize(&$file)
164 164
     {
165 165
         if ($file['file_size'] > 1000) {
166
-            $file['formated_file_size'] = round($file['file_size'] / 1000) . 'kb';
166
+            $file['formated_file_size'] = round($file['file_size'] / 1000).'kb';
167 167
         } else {
168 168
             $file['formated_file_size'] = '1kb';
169 169
         }
@@ -174,8 +174,8 @@  discard block
 block discarded – undo
174 174
      */
175 175
     public function _deleteFile(&$file)
176 176
     {
177
-        if (file_exists(XOOPS_ROOT_PATH . '/uploads/extcal/' . $file->getVar('file_name'))) {
178
-            unlink(XOOPS_ROOT_PATH . '/uploads/extcal/' . $file->getVar('file_name'));
177
+        if (file_exists(XOOPS_ROOT_PATH.'/uploads/extcal/'.$file->getVar('file_name'))) {
178
+            unlink(XOOPS_ROOT_PATH.'/uploads/extcal/'.$file->getVar('file_name'));
179 179
         }
180 180
     }
181 181
 }
Please login to merge, or discard this patch.
class/eventmember.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
4 4
 
5
-include_once XOOPS_ROOT_PATH . '/modules/extcal/class/ExtcalPersistableObjectHandler.php';
5
+include_once XOOPS_ROOT_PATH.'/modules/extcal/class/ExtcalPersistableObjectHandler.php';
6 6
 
7 7
 /**
8 8
  * Class ExtcalEventmember
@@ -66,13 +66,13 @@  discard block
 block discarded – undo
66 66
     public function getMembers($eventId)
67 67
     {
68 68
         $memberHandler = xoops_getHandler('member');
69
-        $eventMember   =& $this->getObjects(new Criteria('event_id', $eventId));
69
+        $eventMember   = & $this->getObjects(new Criteria('event_id', $eventId));
70 70
         $count         = count($eventMember);
71 71
         if ($count > 0) {
72
-            $in = '(' . $eventMember[0]->getVar('uid');
72
+            $in = '('.$eventMember[0]->getVar('uid');
73 73
             array_shift($eventMember);
74 74
             foreach ($eventMember as $member) {
75
-                $in .= ',' . $member->getVar('uid');
75
+                $in .= ','.$member->getVar('uid');
76 76
             }
77 77
             $in .= ')';
78 78
             $criteria = new Criteria('uid', $in, 'IN');
Please login to merge, or discard this patch.
class/eventnotmember.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
4 4
 
5
-include_once XOOPS_ROOT_PATH . '/modules/extcal/class/ExtcalPersistableObjectHandler.php';
5
+include_once XOOPS_ROOT_PATH.'/modules/extcal/class/ExtcalPersistableObjectHandler.php';
6 6
 
7 7
 /**
8 8
  * Class ExtcalEventNotMember
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
67 67
     public function getMembers($eventId)
68 68
     {
69 69
         $memberHandler  = xoops_getHandler('member');
70
-        $eventNotMember =& $this->getObjects(new Criteria('event_id', $eventId));
70
+        $eventNotMember = & $this->getObjects(new Criteria('event_id', $eventId));
71 71
         $count          = count($eventNotMember);
72 72
         if ($count > 0) {
73
-            $in = '(' . $eventNotMember[0]->getVar('uid');
73
+            $in = '('.$eventNotMember[0]->getVar('uid');
74 74
             array_shift($eventNotMember);
75 75
             foreach ($eventNotMember as $member) {
76
-                $in .= ',' . $member->getVar('uid');
76
+                $in .= ','.$member->getVar('uid');
77 77
             }
78 78
             $in .= ')';
79 79
             $criteria = new Criteria('uid', $in, 'IN');
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/7.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -56,13 +56,13 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function getMonth($year, $month)
58 58
     {
59
-        require_once(CALENDAR_ROOT . 'Month/Weekdays.php');
59
+        require_once(CALENDAR_ROOT.'Month/Weekdays.php');
60 60
         $Month = new Calendar_Month_Weekdays($year, $month);
61 61
         if (!$Month->isValid()) {
62 62
             $V        = $Month->getValidator();
63 63
             $errorMsg = '';
64 64
             while ($error = $V->fetch()) {
65
-                $errorMsg .= $error->toString() . "\n";
65
+                $errorMsg .= $error->toString()."\n";
66 66
             }
67 67
 
68 68
             return new SOAP_Fault($errorMsg, 'Client');
@@ -72,10 +72,10 @@  discard block
 block discarded – undo
72 72
             $Month->build();
73 73
             while ($Day = $Month->fetch()) {
74 74
                 $day    = array(
75
-                    'isFirst' => (int)$Day->isFirst(),
76
-                    'isLast'  => (int)$Day->isLast(),
77
-                    'isEmpty' => (int)$Day->isEmpty(),
78
-                    'day'     => (int)$Day->thisDay());
75
+                    'isFirst' => (int) $Day->isFirst(),
76
+                    'isLast'  => (int) $Day->isLast(),
77
+                    'isEmpty' => (int) $Day->isEmpty(),
78
+                    'day'     => (int) $Day->thisDay());
79 79
                 $days[] = $day;
80 80
             }
81 81
 
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/12.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 {
7 7
     list($usec, $sec) = explode(' ', microtime());
8 8
 
9
-    return ((float)$usec + (float)$sec);
9
+    return ((float) $usec + (float) $sec);
10 10
 }
11 11
 
12 12
 $start = getmicrotime();
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     define('CALENDAR_ROOT', '../../');
16 16
 }
17 17
 
18
-require_once CALENDAR_ROOT . 'Year.php';
18
+require_once CALENDAR_ROOT.'Year.php';
19 19
 
20 20
 define('CALENDAR_MONTH_STATE', CALENDAR_USE_MONTH_WEEKDAYS);
21 21
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         }
101 101
 
102 102
         echo("<td>\n<table class=\"month\">\n");
103
-        echo("<caption class=\"month\">" . date('F', $Month->thisMonth(true)) . '</caption>');
103
+        echo("<caption class=\"month\">".date('F', $Month->thisMonth(true)).'</caption>');
104 104
         echo("<tr>\n<th>M</th><th>T</th><th>W</th><th>T</th><th>F</th><th>S</th><th>S</th>\n</tr>");
105 105
         $Month->build();
106 106
         while ($Day = $Month->fetch()) {
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
             if ($Day->isEmpty()) {
111 111
                 echo("<td>&nbsp;</td>\n");
112 112
             } else {
113
-                echo('<td>' . $Day->thisDay() . "</td>\n");
113
+                echo('<td>'.$Day->thisDay()."</td>\n");
114 114
             }
115 115
             if ($Day->isLast()) {
116 116
                 echo("</tr>\n");
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/9.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 if (!@include 'Calendar/Calendar.php') {
6 6
     define('CALENDAR_ROOT', '../../');
7 7
 }
8
-require_once CALENDAR_ROOT . 'Day.php';
8
+require_once CALENDAR_ROOT.'Day.php';
9 9
 
10 10
 $Day = new Calendar_Day(2003, 10, 23);
11 11
 
Please login to merge, or discard this patch.