Completed
Push — master ( a21b67...ec1681 )
by Michael
02:43
created
include/onupdate.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
 if ((!defined('XOOPS_ROOT_PATH')) || !($GLOBALS['xoopsUser'] instanceof XoopsUser)
22 22
     || !$GLOBALS['xoopsUser']->IsAdmin()) {
23
-    exit('Restricted access' . PHP_EOL);
23
+    exit('Restricted access'.PHP_EOL);
24 24
 }
25 25
 
26 26
 /**
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 function xoops_module_pre_update_extcal(XoopsModule $xoopsModule)
46 46
 {
47 47
     $moduleDirName = basename(dirname(__DIR__));
48
-    $classUtility  = ucfirst($moduleDirName) . 'Utility';
48
+    $classUtility  = ucfirst($moduleDirName).'Utility';
49 49
     if (!class_exists($classUtility)) {
50 50
         xoops_load('utility', $moduleDirName);
51 51
     }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         return true;
82 82
     }
83 83
 
84
-    $fld = XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/versions/';
84
+    $fld = XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname').'/versions/';
85 85
     $cls = 'extcal_%1$s';
86 86
 
87 87
     $version = array(
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     foreach ($version as $key => $val) {
101 101
         if ($previousVersion < $val) {
102 102
             $name = sprintf($cls, $key);
103
-            $f    = $fld . $name . '.php';
103
+            $f    = $fld.$name.'.php';
104 104
             //ext_echo ("<hr>{$f}<hr>");
105 105
             if (is_readable($f)) {
106 106
                 echo "mise à jour version : {$key} = {$val}<br>";
@@ -111,8 +111,8 @@  discard block
 block discarded – undo
111 111
     }
112 112
 
113 113
     if ($previousVersion < 240) {
114
-        $configurator = include __DIR__ . '/config.php';
115
-        $classUtility = ucfirst($moduleDirName) . 'Utility';
114
+        $configurator = include __DIR__.'/config.php';
115
+        $classUtility = ucfirst($moduleDirName).'Utility';
116 116
         if (!class_exists($classUtility)) {
117 117
             xoops_load('utility', $moduleDirName);
118 118
         }
@@ -120,14 +120,14 @@  discard block
 block discarded – undo
120 120
         //delete old HTML templates
121 121
         if (count($configurator['templateFolders']) > 0) {
122 122
             foreach ($configurator['templateFolders'] as $folder) {
123
-                $templateFolder = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $folder);
123
+                $templateFolder = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$folder);
124 124
                 if (is_dir($templateFolder)) {
125 125
                     $templateList = array_diff(scandir($templateFolder, SCANDIR_SORT_NONE), array('..', '.'));
126 126
                     foreach ($templateList as $k => $v) {
127
-                        $fileInfo = new SplFileInfo($templateFolder . $v);
127
+                        $fileInfo = new SplFileInfo($templateFolder.$v);
128 128
                         if ($fileInfo->getExtension() === 'html' && $fileInfo->getFilename() !== 'index.html') {
129
-                            if (file_exists($templateFolder . $v)) {
130
-                                unlink($templateFolder . $v);
129
+                            if (file_exists($templateFolder.$v)) {
130
+                                unlink($templateFolder.$v);
131 131
                             }
132 132
                         }
133 133
                     }
@@ -137,9 +137,9 @@  discard block
 block discarded – undo
137 137
 
138 138
         //  ---  COPY blank.png FILES ---------------
139 139
         if (count($configurator['copyFiles']) > 0) {
140
-            $file = __DIR__ . '/../assets/images/blank.png';
140
+            $file = __DIR__.'/../assets/images/blank.png';
141 141
             foreach (array_keys($configurator['copyFiles']) as $i) {
142
-                $dest = $configurator['copyFiles'][$i] . '/blank.png';
142
+                $dest = $configurator['copyFiles'][$i].'/blank.png';
143 143
                 $classUtility::copyFile($file, $dest);
144 144
             }
145 145
         }
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
         if (count($configurator['oldFiles']) > 0) {
149 149
             //    foreach (array_keys($GLOBALS['uploadFolders']) as $i) {
150 150
             foreach (array_keys($configurator['oldFiles']) as $i) {
151
-                $tempFile = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $configurator['oldFiles'][$i]);
151
+                $tempFile = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$configurator['oldFiles'][$i]);
152 152
                 if (is_file($tempFile)) {
153 153
                     unlink($tempFile);
154 154
                 }
@@ -158,14 +158,14 @@  discard block
 block discarded – undo
158 158
         //---------------------
159 159
 
160 160
         //delete .html entries from the tpl table
161
-        $sql = 'DELETE FROM ' . $xoopsDB->prefix('tplfile') . " WHERE `tpl_module` = '" . $xoopsModule->getVar('dirname', 'n') . "' AND `tpl_file` LIKE '%.html%'";
161
+        $sql = 'DELETE FROM '.$xoopsDB->prefix('tplfile')." WHERE `tpl_module` = '".$xoopsModule->getVar('dirname', 'n')."' AND `tpl_file` LIKE '%.html%'";
162 162
         $xoopsDB->queryF($sql);
163 163
 
164 164
         // Load class XoopsFile ====================
165 165
         xoops_load('XoopsFile');
166 166
 
167 167
         //delete /images directory ============
168
-        $imagesDirectory = $GLOBALS['xoops']->path('modules/' . $xoopsModule->getVar('dirname', 'n') . '/images/');
168
+        $imagesDirectory = $GLOBALS['xoops']->path('modules/'.$xoopsModule->getVar('dirname', 'n').'/images/');
169 169
         $folderHandler   = XoopsFile::getHandler('folder', $imagesDirectory);
170 170
         $folderHandler->delete($imagesDirectory);
171 171
     }
Please login to merge, or discard this patch.
view_calendar-week.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-require_once __DIR__ . '/include/constantes.php';
3
+include __DIR__.'/../../mainfile.php';
4
+require_once __DIR__.'/include/constantes.php';
5 5
 $params                                  = array('view' => _EXTCAL_NAV_CALWEEK, 'file' => _EXTCAL_FILE_CALWEEK);
6 6
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
7
-require_once __DIR__ . '/header.php';
7
+require_once __DIR__.'/header.php';
8 8
 
9 9
 /* ========================================================================== */
10
-$year  = isset($_GET['year']) ? (int)$_GET['year'] : date('Y');
11
-$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n');
12
-$day   = isset($_GET['day']) ? (int)$_GET['day'] : date('j');
13
-$cat   = isset($_GET['cat']) ? (int)$_GET['cat'] : 0;
10
+$year  = isset($_GET['year']) ? (int) $_GET['year'] : date('Y');
11
+$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n');
12
+$day   = isset($_GET['day']) ? (int) $_GET['day'] : date('j');
13
+$cat   = isset($_GET['cat']) ? (int) $_GET['cat'] : 0;
14 14
 /* ========================================================================== */
15 15
 
16 16
 // Validate the date (day, month and year)
17 17
 $dayTS = mktime(0, 0, 0, $month, $day, $year);
18 18
 //$offset = date('w', $dayTS) - $xoopsModuleConfig['week_start_day'];
19 19
 $offset = date('w', $dayTS) + 7 - $xoopsModuleConfig['week_start_day'] < 7 ? date('w', $dayTS) + 7 - $xoopsModuleConfig['week_start_day'] : 0;
20
-$dayTS  -= ($offset * _EXTCAL_TS_DAY);
20
+$dayTS -= ($offset * _EXTCAL_TS_DAY);
21 21
 $year   = date('Y', $dayTS);
22 22
 $month  = date('n', $dayTS);
23 23
 $day    = date('j', $dayTS);
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     'cat'          => $cat,
48 48
     'externalKeys' => 'cat_id',
49 49
 );
50
-$events   = $eventHandler->getEventsOnPeriode($criteres);
50
+$events = $eventHandler->getEventsOnPeriode($criteres);
51 51
 /**********************************************************************/
52 52
 //$eventsArray = $events;
53 53
 
@@ -135,21 +135,21 @@  discard block
 block discarded – undo
135 135
 // Making navig data
136 136
 $navig = array(
137 137
     'prev' => array(
138
-        'uri'  => 'year=' . $pWeekCalObj->thisYear() . '&amp;month=' . $pWeekCalObj->thisMonth() . '&amp;day=' . $pWeekCalObj->thisDay(),
138
+        'uri'  => 'year='.$pWeekCalObj->thisYear().'&amp;month='.$pWeekCalObj->thisMonth().'&amp;day='.$pWeekCalObj->thisDay(),
139 139
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $pWeekCalObj->getTimestamp()),
140 140
     ),
141 141
     'this' => array(
142
-        'uri'  => 'year=' . $weekCalObj->thisYear() . '&amp;month=' . $weekCalObj->thisMonth() . '&amp;day=' . $weekCalObj->thisDay(),
142
+        'uri'  => 'year='.$weekCalObj->thisYear().'&amp;month='.$weekCalObj->thisMonth().'&amp;day='.$weekCalObj->thisDay(),
143 143
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $weekCalObj->getTimestamp()),
144 144
     ),
145 145
     'next' => array(
146
-        'uri'  => 'year=' . $nWeekCalObj->thisYear() . '&amp;month=' . $nWeekCalObj->thisMonth() . '&amp;day=' . $nWeekCalObj->thisDay(),
146
+        'uri'  => 'year='.$nWeekCalObj->thisYear().'&amp;month='.$nWeekCalObj->thisMonth().'&amp;day='.$nWeekCalObj->thisDay(),
147 147
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $nWeekCalObj->getTimestamp()),
148 148
     ),
149 149
 );
150 150
 
151 151
 // Title of the page
152
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
152
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
153 153
 
154 154
 // Assigning navig data to the template
155 155
 $xoopsTpl->assign('navig', $navig);
@@ -189,4 +189,4 @@  discard block
 block discarded – undo
189 189
 $xoopsTpl->assign('lang', $lang);
190 190
 $xoopsTpl->assign('view', 'calweek');
191 191
 
192
-include XOOPS_ROOT_PATH . '/footer.php';
192
+include XOOPS_ROOT_PATH.'/footer.php';
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 __DIR__ . '/formdatetime.php';
4
-include __DIR__ . '/formrecurrules.php';
5
-include __DIR__ . '/formfilecheckbox.php';
6
-include __DIR__ . '/formrrulecheckbox.php';
3
+include __DIR__.'/formdatetime.php';
4
+include __DIR__.'/formrecurrules.php';
5
+include __DIR__.'/formfilecheckbox.php';
6
+include __DIR__.'/formrrulecheckbox.php';
7 7
 
8 8
 /**
9 9
  * Class ExtcalThemeForm.
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/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/pear/Calendar/Month/Weekdays.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,12 +49,12 @@  discard block
 block discarded – undo
49 49
 /**
50 50
  * Load Calendar base class.
51 51
  */
52
-require_once CALENDAR_ROOT . 'Calendar.php';
52
+require_once CALENDAR_ROOT.'Calendar.php';
53 53
 
54 54
 /**
55 55
  * Load base month.
56 56
  */
57
-require_once CALENDAR_ROOT . 'Month.php';
57
+require_once CALENDAR_ROOT.'Month.php';
58 58
 
59 59
 /**
60 60
  * Represents a Month and builds Days in tabular form<br>
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      */
130 130
     public function build($sDates = array())
131 131
     {
132
-        require_once CALENDAR_ROOT . 'Table/Helper.php';
132
+        require_once CALENDAR_ROOT.'Table/Helper.php';
133 133
         $this->tableHelper = new Calendar_Table_Helper($this, $this->firstDay);
134 134
         Calendar_Month::build($sDates);
135 135
         $this->buildEmptyDaysBefore();
Please login to merge, or discard this patch.
class/pear/Calendar/Day.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 /**
50 50
  * Load Calendar base class.
51 51
  */
52
-require_once CALENDAR_ROOT . 'Calendar.php';
52
+require_once CALENDAR_ROOT.'Calendar.php';
53 53
 
54 54
 /**
55 55
  * Represents a Day and builds Hours.
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     public function build($sDates = array())
115 115
     {
116
-        require_once CALENDAR_ROOT . 'Hour.php';
116
+        require_once CALENDAR_ROOT.'Hour.php';
117 117
 
118 118
         $hID = $this->cE->getHoursInDay($this->year, $this->month, $this->day);
119 119
         for ($i = 0; $i < $hID; ++$i) {
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         foreach ($sDates as $sDate) {
138 138
             if ($this->year == $sDate->thisYear() && $this->month == $sDate->thisMonth()
139 139
                 && $this->day == $sDate->thisDay()) {
140
-                $key = (int)$sDate->thisHour();
140
+                $key = (int) $sDate->thisHour();
141 141
                 if (isset($this->children[$key])) {
142 142
                     $sDate->setSelected();
143 143
                     $this->children[$key] = $sDate;
Please login to merge, or discard this patch.
class/pear/Calendar/Factory.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 /**
51 51
  * Load Calendar base class.
52 52
  */
53
-require_once CALENDAR_ROOT . 'Calendar.php';
53
+require_once CALENDAR_ROOT.'Calendar.php';
54 54
 
55 55
 /**
56 56
  * Contains a factory method to return a Singleton instance of a class
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $firstDay = defined('CALENDAR_FIRST_DAY_OF_WEEK') ? CALENDAR_FIRST_DAY_OF_WEEK : 1;
98 98
         switch ($type) {
99 99
             case 'Day':
100
-                require_once CALENDAR_ROOT . 'Day.php';
100
+                require_once CALENDAR_ROOT.'Day.php';
101 101
 
102 102
                 return new Calendar_Day($y, $m, $d);
103 103
             case 'Month':
@@ -107,44 +107,44 @@  discard block
 block discarded – undo
107 107
                 }
108 108
                 switch (CALENDAR_MONTH_STATE) {
109 109
                     case CALENDAR_USE_MONTH_WEEKDAYS:
110
-                        require_once CALENDAR_ROOT . 'Month/Weekdays.php';
110
+                        require_once CALENDAR_ROOT.'Month/Weekdays.php';
111 111
                         $class = 'Calendar_Month_Weekdays';
112 112
                         break;
113 113
                     case CALENDAR_USE_MONTH_WEEKS:
114
-                        require_once CALENDAR_ROOT . 'Month/Weeks.php';
114
+                        require_once CALENDAR_ROOT.'Month/Weeks.php';
115 115
                         $class = 'Calendar_Month_Weeks';
116 116
                         break;
117 117
                     case CALENDAR_USE_MONTH:
118 118
                     default:
119
-                        require_once CALENDAR_ROOT . 'Month.php';
119
+                        require_once CALENDAR_ROOT.'Month.php';
120 120
                         $class = 'Calendar_Month';
121 121
                         break;
122 122
                 }
123 123
 
124 124
                 return new $class($y, $m, $firstDay);
125 125
             case 'Week':
126
-                require_once CALENDAR_ROOT . 'Week.php';
126
+                require_once CALENDAR_ROOT.'Week.php';
127 127
 
128 128
                 return new Calendar_Week($y, $m, $d, $firstDay);
129 129
             case 'Hour':
130
-                require_once CALENDAR_ROOT . 'Hour.php';
130
+                require_once CALENDAR_ROOT.'Hour.php';
131 131
 
132 132
                 return new Calendar_Hour($y, $m, $d, $h);
133 133
             case 'Minute':
134
-                require_once CALENDAR_ROOT . 'Minute.php';
134
+                require_once CALENDAR_ROOT.'Minute.php';
135 135
 
136 136
                 return new Calendar_Minute($y, $m, $d, $h, $i);
137 137
             case 'Second':
138
-                require_once CALENDAR_ROOT . 'Second.php';
138
+                require_once CALENDAR_ROOT.'Second.php';
139 139
 
140 140
                 return new Calendar_Second($y, $m, $d, $h, $i, $s);
141 141
             case 'Year':
142
-                require_once CALENDAR_ROOT . 'Year.php';
142
+                require_once CALENDAR_ROOT.'Year.php';
143 143
 
144 144
                 return new Calendar_Year($y);
145 145
             default:
146
-                require_once __DIR__ . '/PEAR.php';
147
-                PEAR::raiseError('Calendar_Factory::create() unrecognised type: ' . $type, null, PEAR_ERROR_TRIGGER, E_USER_NOTICE, 'Calendar_Factory::create()');
146
+                require_once __DIR__.'/PEAR.php';
147
+                PEAR::raiseError('Calendar_Factory::create() unrecognised type: '.$type, null, PEAR_ERROR_TRIGGER, E_USER_NOTICE, 'Calendar_Factory::create()');
148 148
 
149 149
                 return false;
150 150
         }
Please login to merge, or discard this patch.
class/pear/Calendar/Engine/UnixTS.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     {
96 96
         $date = self::stampCollection($stamp);
97 97
 
98
-        return (int)$date[0];
98
+        return (int) $date[0];
99 99
     }
100 100
 
101 101
     /**
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     {
110 110
         $date = self::stampCollection($stamp);
111 111
 
112
-        return (int)$date[1];
112
+        return (int) $date[1];
113 113
     }
114 114
 
115 115
     /**
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     {
124 124
         $date = self::stampCollection($stamp);
125 125
 
126
-        return (int)$date[2];
126
+        return (int) $date[2];
127 127
     }
128 128
 
129 129
     /**
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     {
138 138
         $date = self::stampCollection($stamp);
139 139
 
140
-        return (int)$date[3];
140
+        return (int) $date[3];
141 141
     }
142 142
 
143 143
     /**
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     {
152 152
         $date = self::stampCollection($stamp);
153 153
 
154
-        return (int)$date[4];
154
+        return (int) $date[4];
155 155
     }
156 156
 
157 157
     /**
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
     {
166 166
         $date = self::stampCollection($stamp);
167 167
 
168
-        return (int)$date[5];
168
+        return (int) $date[5];
169 169
     }
170 170
 
171 171
     /**
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
         }
337 337
         $daysInTheFirstWeek %= $this->getDaysInWeek();
338 338
 
339
-        return (int)(ceil(($this->getDaysInMonth($y, $m) - $daysInTheFirstWeek) / $this->getDaysInWeek()) + $weeks);
339
+        return (int) (ceil(($this->getDaysInMonth($y, $m) - $daysInTheFirstWeek) / $this->getDaysInWeek()) + $weeks);
340 340
     }
341 341
 
342 342
     /**
Please login to merge, or discard this patch.