Completed
Push — master ( ec1681...68c045 )
by Michael
02:41
created
class/pear/Calendar/Decorator/Weekday.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
 /**
51 51
  * Load Calendar decorator base class.
52 52
  */
53
-require_once CALENDAR_ROOT . 'Decorator.php';
53
+require_once CALENDAR_ROOT.'Decorator.php';
54 54
 
55 55
 /**
56 56
  * Load a Calendar_Day.
57 57
  */
58
-require_once CALENDAR_ROOT . 'Day.php';
58
+require_once CALENDAR_ROOT.'Day.php';
59 59
 
60 60
 /**
61 61
  * Decorator for fetching the day of the week
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      */
102 102
     public function setFirstDay($firstDay)
103 103
     {
104
-        $this->firstDay = (int)$firstDay;
104
+        $this->firstDay = (int) $firstDay;
105 105
     }
106 106
 
107 107
     /**
Please login to merge, or discard this patch.
class/pear/Calendar/Decorator/Textual.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,12 +50,12 @@
 block discarded – undo
50 50
 /**
51 51
  * Load Calendar decorator base class.
52 52
  */
53
-require_once CALENDAR_ROOT . 'Decorator.php';
53
+require_once CALENDAR_ROOT.'Decorator.php';
54 54
 
55 55
 /**
56 56
  * Load the Uri utility.
57 57
  */
58
-require_once CALENDAR_ROOT . 'Util/Textual.php';
58
+require_once CALENDAR_ROOT.'Util/Textual.php';
59 59
 
60 60
 /**
61 61
  * Decorator to help with fetching textual representations of months and
Please login to merge, or discard this patch.
class/pear/Calendar/Decorator/Wrapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 /**
51 51
  * Load Calendar decorator base class.
52 52
  */
53
-require_once CALENDAR_ROOT . 'Decorator.php';
53
+require_once CALENDAR_ROOT.'Decorator.php';
54 54
 
55 55
 /**
56 56
  * Decorator to help with wrapping built children in another decorator.
Please login to merge, or discard this patch.
class/pear/Calendar/Decorator/Uri.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,12 +50,12 @@
 block discarded – undo
50 50
 /**
51 51
  * Load Calendar decorator base class.
52 52
  */
53
-require_once CALENDAR_ROOT . 'Decorator.php';
53
+require_once CALENDAR_ROOT.'Decorator.php';
54 54
 
55 55
 /**
56 56
  * Load the Uri utility.
57 57
  */
58
-require_once CALENDAR_ROOT . 'Util/Uri.php';
58
+require_once CALENDAR_ROOT.'Util/Uri.php';
59 59
 
60 60
 /**
61 61
  * Decorator to help with building HTML links for navigating the calendar<br>
Please login to merge, or discard this patch.
class/pear/Calendar/Util/Textual.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 /**
54 54
  * Load Calendar decorator base class.
55 55
  */
56
-require_once CALENDAR_ROOT . 'Decorator.php';
56
+require_once CALENDAR_ROOT.'Decorator.php';
57 57
 
58 58
 /**
59 59
  * Static utlities to help with fetching textual representations of months and
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
         $days  = self::weekdayNames($format);
208 208
         $stamp = $Calendar->prevDay('timestamp');
209 209
         $cE    = $Calendar->getEngine();
210
-        require_once __DIR__ . '/Date/Calc.php';
210
+        require_once __DIR__.'/Date/Calc.php';
211 211
         $day = Date_Calc::dayOfWeek($cE->stampToDay($stamp), $cE->stampToMonth($stamp), $cE->stampToYear($stamp));
212 212
 
213 213
         return $days[$day];
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
     public static function thisDayName($Calendar, $format = 'long')
227 227
     {
228 228
         $days = self::weekdayNames($format);
229
-        require_once __DIR__ . '/Date/Calc.php';
229
+        require_once __DIR__.'/Date/Calc.php';
230 230
         $day = Date_Calc::dayOfWeek($Calendar->thisDay(), $Calendar->thisMonth(), $Calendar->thisYear());
231 231
 
232 232
         return $days[$day];
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
         $days  = self::weekdayNames($format);
247 247
         $stamp = $Calendar->nextDay('timestamp');
248 248
         $cE    = $Calendar->getEngine();
249
-        require_once __DIR__ . '/Date/Calc.php';
249
+        require_once __DIR__.'/Date/Calc.php';
250 250
         $day = Date_Calc::dayOfWeek($cE->stampToDay($stamp), $cE->stampToMonth($stamp), $cE->stampToYear($stamp));
251 251
 
252 252
         return $days[$day];
Please login to merge, or discard this patch.
etablissement.php 2 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -55,22 +55,22 @@
 block discarded – undo
55 55
 $edit_delete = '';
56 56
 if (is_object($xoopsUser) && $isAdmin) {
57 57
     $edit_delete = '<a href="'
58
-                   . XOOPS_URL
59
-                   . '/modules/extcal/admin/etablissement.php?op=edit_etablissement&etablissement_id='
60
-                   . $etablissement_id
61
-                   . '"><img src="'
62
-                   . $pathIcon16
63
-                   . '/edit.png" width="16px" height="16px" border="0" title="'
64
-                   . _MD_EXTCAL_ETABLISSEMENT_EDIT
65
-                   . '"></a><a href="'
66
-                   . XOOPS_URL
67
-                   . '/modules/extcal/admin/etablissement.php?op=delete_etablissement&etablissement_id='
68
-                   . $etablissement_id
69
-                   . '"><img src="'
70
-                   . $pathIcon16
71
-                   . '/delete.png" width="16px" height="16px" border="0" title="'
72
-                   . _MD_EXTCAL_ETABLISSEMENT_DELETE
73
-                   . '"></a>';
58
+                    . XOOPS_URL
59
+                    . '/modules/extcal/admin/etablissement.php?op=edit_etablissement&etablissement_id='
60
+                    . $etablissement_id
61
+                    . '"><img src="'
62
+                    . $pathIcon16
63
+                    . '/edit.png" width="16px" height="16px" border="0" title="'
64
+                    . _MD_EXTCAL_ETABLISSEMENT_EDIT
65
+                    . '"></a><a href="'
66
+                    . XOOPS_URL
67
+                    . '/modules/extcal/admin/etablissement.php?op=delete_etablissement&etablissement_id='
68
+                    . $etablissement_id
69
+                    . '"><img src="'
70
+                    . $pathIcon16
71
+                    . '/delete.png" width="16px" height="16px" border="0" title="'
72
+                    . _MD_EXTCAL_ETABLISSEMENT_DELETE
73
+                    . '"></a>';
74 74
 }
75 75
 $xoopsTpl->assign('edit_delete', $edit_delete);
76 76
 
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -17,10 +17,10 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once __DIR__ . '/../../mainfile.php';
21
-require_once __DIR__ . '/include/constantes.php';
20
+require_once __DIR__.'/../../mainfile.php';
21
+require_once __DIR__.'/include/constantes.php';
22 22
 $GLOBALS['xoopsOption']['template_main'] = 'extcal_etablissement.tpl';
23
-require_once __DIR__ . '/header.php';
23
+require_once __DIR__.'/header.php';
24 24
 
25 25
 //require_once XOOPS_ROOT_PATH."/modules/extcal/class/etablissement.php";
26 26
 $etablissementHandler = xoops_getModuleHandler(_EXTCAL_CLS_ETABLISSEMENT, _EXTCAL_MODULE);
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 $etablissement_exist = $etablissementHandler->getCount($criteria);
37 37
 
38 38
 if ($etablissement_exist == 0) {
39
-    redirect_header(XOOPS_URL . '/modules/extcal/index.php', 3, _NOPERM);
39
+    redirect_header(XOOPS_URL.'/modules/extcal/index.php', 3, _NOPERM);
40 40
 }
41 41
 
42 42
 $view_etablissement = $etablissementHandler->getEtablissement($etablissement_id, true);
@@ -78,12 +78,12 @@  discard block
 block discarded – undo
78 78
 
79 79
 $date = mktime(0, 0, 0, date('m'), date('d'), date('y'));
80 80
 
81
-$requete = $xoopsDB->query('SELECT event_id, event_title, event_desc, event_picture1, event_start FROM ' . $xoopsDB->prefix('extcal_event') . " WHERE event_etablissement='" . $etablissement_id . "' AND event_start >='" . $date . "'");
81
+$requete = $xoopsDB->query('SELECT event_id, event_title, event_desc, event_picture1, event_start FROM '.$xoopsDB->prefix('extcal_event')." WHERE event_etablissement='".$etablissement_id."' AND event_start >='".$date."'");
82 82
 while ($donnees = $xoopsDB->fetchArray($requete)) {
83 83
     if ($donnees['event_desc'] > 210) {
84 84
         $event_desc = $donnees['event_desc'];
85 85
     } else {
86
-        $event_desc = substr($donnees['event_desc'], 0, 210) . '...';
86
+        $event_desc = substr($donnees['event_desc'], 0, 210).'...';
87 87
     }
88 88
     $xoopsTpl->append('events', [
89 89
         'event_picture1' => $donnees['event_picture1'],
@@ -96,4 +96,4 @@  discard block
 block discarded – undo
96 96
 /** @var xos_opal_Theme $xoTheme */
97 97
 $xoTheme->addScript('browse.php?modules/extcal/assets/js/highslide.js');
98 98
 $xoTheme->addStylesheet('browse.php?modules/extcal/assets/js/highslide.css');
99
-require_once XOOPS_ROOT_PATH . '/footer.php';
99
+require_once XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
language/english/modinfo.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once __DIR__ . '/../../include/constantes.php';
3
+require_once __DIR__.'/../../include/constantes.php';
4 4
 define('_MI_EXTCAL_NAME', 'eXtCal');
5 5
 define('_MI_EXTCAL_ABOUT', 'About');
6 6
 define('_MI_EXTCAL_AFTER', 'After');
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 define('_MI_EXTCAL_START_PAGE', 'Module home page');
136 136
 define('_MI_EXTCAL_SUBMIT_EVENT', 'Submit Event');
137 137
 define('_MI_EXTCAL_TABS_WEIGHT', 'Order of the Tabs');
138
-define('_MI_EXTCAL_TABS_WEIGHT_DESC', 'Set the tab order <br>Be careful to respect tab names:<br>' . "<span style='color:#0000FF;'>" . _EXTCAL_NAV_LIST . '</span>' . ' <br>Separator: new line');
138
+define('_MI_EXTCAL_TABS_WEIGHT_DESC', 'Set the tab order <br>Be careful to respect tab names:<br>'."<span style='color:#0000FF;'>"._EXTCAL_NAV_LIST.'</span>'.' <br>Separator: new line');
139 139
 define('_MI_EXTCAL_VISIBLE_TAB_DESC', 'Define the visible view.');
140 140
 define('_MI_EXTCAL_VISIBLE_TABS', 'Visible tab');
141 141
 define('_MI_EXTCAL_WEEK_START_DAY', 'Week start Day');
@@ -162,6 +162,6 @@  discard block
 block discarded – undo
162 162
 
163 163
 //Help
164 164
 define('_MI_EXTCAL_DIRNAME', basename(dirname(dirname(__DIR__))));
165
-define('_MI_EXTCAL_HELP_HEADER', __DIR__ . '/help/helpheader.tpl');
165
+define('_MI_EXTCAL_HELP_HEADER', __DIR__.'/help/helpheader.tpl');
166 166
 define('_MI_EXTCAL_BACK_2_ADMIN', 'Back to Administration of ');
167 167
 define('_MI_EXTCAL_OVERVIEW', 'Overview');
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/20.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     public $entries = [];
26 26
 
27 27
     /**
28
-     * @param $calendar
28
+     * @param Calendar_Day $calendar
29 29
      */
30 30
     public function __construct($calendar)
31 31
     {
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@  discard block
 block discarded – undo
11 11
     define('CALENDAR_ROOT', '../../');
12 12
 }
13 13
 
14
-require_once CALENDAR_ROOT . 'Month/Weekdays.php';
15
-require_once CALENDAR_ROOT . 'Day.php';
16
-require_once CALENDAR_ROOT . 'Decorator.php';
14
+require_once CALENDAR_ROOT.'Month/Weekdays.php';
15
+require_once CALENDAR_ROOT.'Day.php';
16
+require_once CALENDAR_ROOT.'Decorator.php';
17 17
 
18 18
 // accepts multiple entries
19 19
 
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
      */
77 77
     public function build($events = [])
78 78
     {
79
-        require_once CALENDAR_ROOT . 'Day.php';
80
-        require_once CALENDAR_ROOT . 'Table/Helper.php';
79
+        require_once CALENDAR_ROOT.'Day.php';
80
+        require_once CALENDAR_ROOT.'Table/Helper.php';
81 81
 
82 82
         $this->tableHelper = new Calendar_Table_Helper($this, $this->firstDay);
83 83
         $this->cE          = $this->getEngine();
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 <h2>Sample Calendar Payload Decorator (using <?php echo CALENDAR_ENGINE; ?> engine)</h2>
231 231
 <table class="calendar" width="98%" cellspacing="0" cellpadding="0">
232 232
     <caption>
233
-        <?php echo $MonthDecorator->thisMonth() . ' / ' . $MonthDecorator->thisYear(); ?>
233
+        <?php echo $MonthDecorator->thisMonth().' / '.$MonthDecorator->thisYear(); ?>
234 234
     </caption>
235 235
     <tr>
236 236
         <th>Monday</th>
@@ -254,14 +254,14 @@  discard block
 block discarded – undo
254 254
             echo ' calCellEmpty';
255 255
         }
256 256
         echo '">';
257
-        echo '<div class="dayNumber">' . $Day->thisDay() . '</div>';
257
+        echo '<div class="dayNumber">'.$Day->thisDay().'</div>';
258 258
 
259 259
         if ($Day->isEmpty()) {
260 260
             echo '&nbsp;';
261 261
         } else {
262 262
             echo '<div class="dayContents"><ul>';
263 263
             while ($entry = $Day->getEntry()) {
264
-                echo '<li>' . $entry['desc'] . '</li>';
264
+                echo '<li>'.$entry['desc'].'</li>';
265 265
                 //you can print the time range as well
266 266
             }
267 267
             echo '</ul></div>';
Please login to merge, or discard this patch.
view_calendar-month.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@  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                                  = ['view' => _EXTCAL_NAV_CALMONTH, 'file' => _EXTCAL_FILE_CALMONTH];
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
-$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
+$cat   = isset($_GET['cat']) ? (int) $_GET['cat'] : 0;
13 13
 /* ========================================================================== */
14 14
 
15 15
 $form = new XoopsSimpleForm('', 'navigSelectBox', $params['file'], 'get');
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     'cat'          => $cat,
32 32
     'externalKeys' => 'cat_id',
33 33
 ];
34
-$events   = $eventHandler->getEventsOnPeriode($criteres);
34
+$events = $eventHandler->getEventsOnPeriode($criteres);
35 35
 /**********************************************************************/
36 36
 
37 37
 // Calculating timestamp for the begin and the end of the month
@@ -126,21 +126,21 @@  discard block
 block discarded – undo
126 126
 // Making navig data
127 127
 $navig = [
128 128
     'prev' => [
129
-        'uri'  => 'year=' . $pMonthCalObj->thisYear() . '&amp;month=' . $pMonthCalObj->thisMonth(),
129
+        'uri'  => 'year='.$pMonthCalObj->thisYear().'&amp;month='.$pMonthCalObj->thisMonth(),
130 130
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $pMonthCalObj->getTimestamp()),
131 131
     ],
132 132
     'this' => [
133
-        'uri'  => 'year=' . $monthCalObj->thisYear() . '&amp;month=' . $monthCalObj->thisMonth(),
133
+        'uri'  => 'year='.$monthCalObj->thisYear().'&amp;month='.$monthCalObj->thisMonth(),
134 134
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $monthCalObj->getTimestamp()),
135 135
     ],
136 136
     'next' => [
137
-        'uri'  => 'year=' . $nMonthCalObj->thisYear() . '&amp;month=' . $nMonthCalObj->thisMonth(),
137
+        'uri'  => 'year='.$nMonthCalObj->thisYear().'&amp;month='.$nMonthCalObj->thisMonth(),
138 138
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $nMonthCalObj->getTimestamp()),
139 139
     ],
140 140
 ];
141 141
 
142 142
 // Title of the page
143
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
143
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
144 144
 
145 145
 // Assigning navig data to the template
146 146
 $xoopsTpl->assign('navig', $navig);
@@ -180,4 +180,4 @@  discard block
 block discarded – undo
180 180
 $xoopsTpl->assign('lang', $lang);
181 181
 $xoopsTpl->assign('view', 'calmonth');
182 182
 
183
-include XOOPS_ROOT_PATH . '/footer.php';
183
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.