Completed
Push — master ( 77281f...d1e393 )
by Michael
04:26
created
class/colorTools.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -159,9 +159,9 @@
 block discarded – undo
159 159
         $tHex = array('', '', '', '');
160 160
 
161 161
         $tHex[0] = $aColors[0];
162
-        $tHex[1] = substr('00' . dechex($aColors[1]), -2);
163
-        $tHex[2] = substr('00' . dechex($aColors[2]), -2);
164
-        $tHex[3] = substr('00' . dechex($aColors[3]), -2);
162
+        $tHex[1] = substr('00'.dechex($aColors[1]), -2);
163
+        $tHex[2] = substr('00'.dechex($aColors[2]), -2);
164
+        $tHex[3] = substr('00'.dechex($aColors[3]), -2);
165 165
 
166 166
         $colorHexa = implode('', $tHex);
167 167
 
Please login to merge, or discard this patch.
class/form/spin/formspin.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      */
204 204
     public function setMin($min)
205 205
     {
206
-        $this->_min = (int)$min;
206
+        $this->_min = (int) $min;
207 207
     }
208 208
     /*-----------------------------------------------------------------*/
209 209
     /**
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
      */
222 222
     public function setMax($max)
223 223
     {
224
-        $this->_max = (int)$max;
224
+        $this->_max = (int) $max;
225 225
     }
226 226
 
227 227
     /*-----------------------------------------------------------------*/
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
      */
243 243
     public function setSmallIncrement($smallIncrement)
244 244
     {
245
-        $this->_smallIncrement = (int)$smallIncrement;
245
+        $this->_smallIncrement = (int) $smallIncrement;
246 246
         if ($this->_smallIncrement == 0) {
247 247
             $this->_smallIncrement = 1;
248 248
         }
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
      */
265 265
     public function setLargeIncrement($largeIncrement)
266 266
     {
267
-        $this->_largeIncrement = (int)$largeIncrement;
267
+        $this->_largeIncrement = (int) $largeIncrement;
268 268
         if ($this->_largeIncrement == 0) {
269 269
             $this->_largeIncrement = 10;
270 270
         }
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
         $sFolderImg  = "{$sSpinFolder}/images/{$this->getImgFolder()}/";
406 406
 
407 407
         $prefixe  = $this->getName();
408
-        $prefixe2 = 'spin' . $prefixe;
408
+        $prefixe2 = 'spin'.$prefixe;
409 409
 
410 410
         $smallIncrement = $this->getSmallIncrement();
411 411
         $largeIncrement = $this->getLargeIncrement();
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
         $t = array();
425 425
 
426 426
         if ($this->_loadJS) {
427
-            $js  = $sSpinFolder . '/js/spin.js';
427
+            $js  = $sSpinFolder.'/js/spin.js';
428 428
             $t[] = "<script src='{$js}' type='text/javascript'></script>";
429 429
         }
430 430
 
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
         //-------------------------------------------------------
470 470
 
471 471
         $t[] = '  </tr>';
472
-        $t[] = '</table>' . "\n";
472
+        $t[] = '</table>'."\n";
473 473
         $t[] = '</div>';
474 474
         //-------------------------------------------
475 475
         $html = implode("\n", $t);
Please login to merge, or discard this patch.
include/constantes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 define('_EXTCAL_CLN_EVENT', 'ExtcalEvent');
38 38
 
39 39
 //-------------------------------------------------------------------
40
-define('_EXTCAL_PEAR_ROOT_DEFAULT', dirname(__DIR__) .'/class/pear');
40
+define('_EXTCAL_PEAR_ROOT_DEFAULT', dirname(__DIR__).'/class/pear');
41 41
 //define('_EXTCAL_PEAR_ROOT', 'F:/wamp/www/xfr254b/xoops_lib/Frameworks/pear' );
42 42
 
43 43
 $pear_path = _EXTCAL_PEAR_ROOT_DEFAULT;
Please login to merge, or discard this patch.
xoops_version.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 // defined('XOOPS_ROOT_PATH') || die('XOOPS Root Path not defined');
4
-include_once __DIR__ . '/include/constantes.php';
5
-include_once __DIR__ . '/include/agenda_fnc.php';
6
-include_once __DIR__ . '/class/config.php';
4
+include_once __DIR__.'/include/constantes.php';
5
+include_once __DIR__.'/include/agenda_fnc.php';
6
+include_once __DIR__.'/class/config.php';
7 7
 //$loc_de = setlocale (LC_ALL, 'french');
8 8
 
9 9
 //echo "local :" .  setlocale(LC_TIME, $xoopsConfig['language'])."</ br>";
@@ -489,7 +489,7 @@  discard block
 block discarded – undo
489 489
 $modversion['config'][$i]['default']     = 5;
490 490
 
491 491
 ++$i;
492
-$modversion['config'][$i]['name']        = 'break' . $i;
492
+$modversion['config'][$i]['name']        = 'break'.$i;
493 493
 $modversion['config'][$i]['title']       = '_MI_EXTCAL_SHOW_OTHEROPTIONS';
494 494
 $modversion['config'][$i]['description'] = '';
495 495
 $modversion['config'][$i]['formtype']    = 'line_break';
Please login to merge, or discard this patch.
admin/menu.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -5,14 +5,14 @@  discard block
 block discarded – undo
5 5
 $moduleDirName = basename(dirname(__DIR__));
6 6
 $moduleHandler = xoops_getHandler('module');
7 7
 $module        = $moduleHandler->getByDirname($moduleDirName);
8
-$pathIcon32    = '../../' . $module->getInfo('sysicons32');
9
-$pathModIcon32 = './' . $module->getInfo('modicons32');
8
+$pathIcon32    = '../../'.$module->getInfo('sysicons32');
9
+$pathModIcon32 = './'.$module->getInfo('modicons32');
10 10
 xoops_loadLanguage('modinfo', $moduleDirName);
11 11
 
12
-$xoopsModuleAdminPath = XOOPS_ROOT_PATH . '/' . $module->getInfo('dirmoduleadmin');
12
+$xoopsModuleAdminPath = XOOPS_ROOT_PATH.'/'.$module->getInfo('dirmoduleadmin');
13 13
 
14
-if (!file_exists($fileinc = $xoopsModuleAdminPath . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/' . 'main.php')) {
15
-    $fileinc = $xoopsModuleAdminPath . '/language/english/main.php';
14
+if (!file_exists($fileinc = $xoopsModuleAdminPath.'/language/'.$GLOBALS['xoopsConfig']['language'].'/'.'main.php')) {
15
+    $fileinc = $xoopsModuleAdminPath.'/language/english/main.php';
16 16
 }
17 17
 
18 18
 include_once $fileinc;
@@ -20,33 +20,33 @@  discard block
 block discarded – undo
20 20
 $adminmenu[] = array(
21 21
     'title' => _AM_MODULEADMIN_HOME,
22 22
     'link'  => 'admin/index.php',
23
-    'icon'  => $pathIcon32 . '/home.png'
23
+    'icon'  => $pathIcon32.'/home.png'
24 24
 );
25 25
 
26 26
 $adminmenu[] = array(
27 27
     'title' => _MI_EXTCAL_CATEGORY,
28 28
     'link'  => 'admin/cat.php',
29
-    'icon'  => $pathIcon32 . '/category.png'
29
+    'icon'  => $pathIcon32.'/category.png'
30 30
 );
31 31
 
32 32
 $adminmenu[] = array(
33 33
     'title' => _MI_EXTCAL_EVENT,
34 34
     'link'  => 'admin/event.php',
35
-    'icon'  => $pathIcon32 . '/event.png'
35
+    'icon'  => $pathIcon32.'/event.png'
36 36
 );
37 37
 $adminmenu[] = array(
38 38
     'title' => _MI_EXTCAL_ETABLISSEMENTS,
39 39
     'link'  => 'admin/etablissement.php',
40
-    'icon'  => $pathModIcon32 . '/etablissement.png'
40
+    'icon'  => $pathModIcon32.'/etablissement.png'
41 41
 );
42 42
 $adminmenu[] = array(
43 43
     'title' => _MI_EXTCAL_PERMISSIONS,
44 44
     'link'  => 'admin/permissions.php',
45
-    'icon'  => $pathIcon32 . '/permissions.png'
45
+    'icon'  => $pathIcon32.'/permissions.png'
46 46
 );
47 47
 
48 48
 $adminmenu[] = array(
49 49
     'title' => _AM_MODULEADMIN_ABOUT,
50 50
     'link'  => 'admin/about.php',
51
-    'icon'  => $pathIcon32 . '/about.png'
51
+    'icon'  => $pathIcon32.'/about.png'
52 52
 );
Please login to merge, or discard this patch.
admin/admin_header.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 xoops_loadLanguage('modinfo', $moduleDirName);
40 40
 xoops_loadLanguage('main', $moduleDirName);
41 41
 
42
-$pathIcon16      = $GLOBALS['xoops']->url('www/' . $GLOBALS['xoopsModule']->getInfo('sysicons16'));
43
-$pathIcon32      = $GLOBALS['xoops']->url('www/' . $GLOBALS['xoopsModule']->getInfo('sysicons32'));
44
-$xoopsModuleAdminPath = $GLOBALS['xoops']->path('www/' . $GLOBALS['xoopsModule']->getInfo('dirmoduleadmin'));
42
+$pathIcon16      = $GLOBALS['xoops']->url('www/'.$GLOBALS['xoopsModule']->getInfo('sysicons16'));
43
+$pathIcon32      = $GLOBALS['xoops']->url('www/'.$GLOBALS['xoopsModule']->getInfo('sysicons32'));
44
+$xoopsModuleAdminPath = $GLOBALS['xoops']->path('www/'.$GLOBALS['xoopsModule']->getInfo('dirmoduleadmin'));
45 45
 require_once $xoopsModuleAdminPath.'/moduleadmin.php';
Please login to merge, or discard this patch.
admin/index.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
                 adminMenu(1);
48 48
 
49 49
                 $myts = MyTextSanitizer::getInstance();
50
-                $xoopsMailer =& getMailer();
50
+                $xoopsMailer = & getMailer();
51 51
                 $catHandler = xoops_getModuleHandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE);
52 52
                 $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
53 53
                 $eventMemberHandler = xoops_getModuleHandler(_EXTCAL_CLS_MEMBER, _EXTCAL_MODULE);
Please login to merge, or discard this patch.
Switch Indentation   +70 added lines, -70 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@  discard block
 block discarded – undo
33 33
 }
34 34
 
35 35
 switch ($op) {
36
-    case 'notification':
37
-        switch ($fct) {
36
+        case 'notification':
37
+            switch ($fct) {
38 38
             case 'send':
39 39
                 if (!$GLOBALS['xoopsSecurity']->check()) {
40 40
                     redirect_header('index.php', 3, _NOPERM.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
@@ -113,78 +113,78 @@  discard block
 block discarded – undo
113 113
                 xoops_cp_footer();
114 114
 
115 115
                 break;
116
-        }
116
+            }
117 117
         break;
118 118
 
119
-    default:
120
-    case 'default':
121
-        // @author      Gregory Mage (Aka Mage)
122
-        //***************************************************************************************
123
-        xoops_cp_header();
124
-        //        include_once XOOPS_ROOT_PATH . "/modules/extcal/class/admin.php";
125
-//        $catHandler = xoops_getModuleHandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE);
126
-//        $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
127
-        $indexAdmin = new ModuleAdmin();
128
-        $indexAdmin->addInfoBox(_MI_EXTCAL_DASHBOARD);
129
-        $indexAdmin->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>'._AM_EXTCAL_INDEX_CATEGORIES.'</infolabel>', $catHandler->getCount(), 'Green');
130
-        $indexAdmin->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>'._AM_EXTCAL_INDEX_EVENT.'</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 1)), 'Green');
131
-        $indexAdmin->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>'._AM_EXTCAL_INDEX_PENDING.'</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 0)), 'Red');
132
-        $criteriaCompo = new CriteriaCompo();
133
-        $criteriaCompo->add(new Criteria('event_approved', 1));
134
-        $criteriaCompo->add(new Criteria('event_start', time(), '>='));
135
-        $indexAdmin->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>'._AM_EXTCAL_INDEX_APPROVED.'</infolabel><infotext>', $eventHandler->getCount($criteriaCompo).'</infotext>', 'Green');
136
-
137
-        $indexAdmin->addConfigBoxLine();
138
-        $indexAdmin->addConfigBoxLine(_AM_EXTCAL_PEAR_PATH);
139
-        $indexAdmin->addConfigBoxLine(_EXTCAL_PEAR_ROOT, 'folder');
140
-
141
-        //JJD
142
-        //         $indexAdmin->addConfigBoxLine(XOOPS_ROOT_PATH,'folder');
143
-
144
-        //        $indexAdmin->addLineConfigLabel(_AM_EXTCAL_CONFIG_PHP, $xoopsModule->getInfo("min_php"), 'php');
145
-        //        $indexAdmin->addLineConfigLabel(_AM_EXTCAL_CONFIG_XOOPS, $xoopsModule->getInfo("min_xoops"), 'xoops');
146
-        echo $indexAdmin->addNavigation(basename(__FILE__));
147
-        echo $indexAdmin->renderIndex();
148
-        //***************************************************************************************
149
-        $pendingEvent = $eventHandler->objectToArray($eventHandler->getPendingEvent(), array('cat_id'));
150
-        $eventHandler->formatEventsDate($pendingEvent, 'd/m/Y');
151
-
152
-        echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._AM_EXTCAL_PENDING_EVENT.'</legend>';
153
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
154
-        //        echo '<img src="../assets/images/icons/on.png"  />&nbsp;&nbsp;'._AM_EXTCAL_INFO_APPROVE_PENDING_EVENT.'<br>';
155
-        echo '<img src='.$pathIcon16.'/edit.png />&nbsp;&nbsp;'._AM_EXTCAL_INFO_EDIT_PENDING_EVENT.'<br>';
156
-        echo '<img src='.$pathIcon16.'/delete.png />&nbsp;&nbsp;'._AM_EXTCAL_INFO_DELETE_PENDING_EVENT.'<br>';
157
-        echo '</fieldset><br>';
158
-
159
-        echo '<table class="outer" style="width:100%;">';
160
-        echo '<tr style="text-align:center;">';
161
-        echo '<th>'._AM_EXTCAL_CATEGORY.'</th>';
162
-        echo '<th>'._AM_EXTCAL_TITLE.'</th>';
163
-        echo '<th>'._AM_EXTCAL_START_DATE.'</th>';
164
-        echo '<th>'._AM_EXTCAL_ACTION.'</th>';
165
-        echo '</tr>';
166
-
167
-        if (count($pendingEvent) > 0) {
168
-            $i = 0;
169
-            foreach ($pendingEvent as $event) {
170
-                $class = (++$i % 2 == 0) ? 'even' : 'odd';
171
-                echo '<tr style="text-align:center;" class="'.$class.'">';
172
-                echo '<td>'.$event['cat']['cat_name'].'</td>';
173
-                echo '<td>'.$event['event_title'].'</td>';
174
-                echo '<td>'.$event['formated_event_start'].'</td>';
175
-                echo '<td style="width:10%; text-align:center;">';
176
-                echo '<a href="event.php?op=modify&amp;event_id='.$event['event_id'].'"><img src='.$pathIcon16.'/edit.png /></a>&nbsp;&nbsp;';
177
-                echo '<a href="event.php?op=delete&amp;event_id='.$event['event_id'].'"><img src='.$pathIcon16.'/delete.png /></a>';
178
-                echo '</td>';
179
-                echo '</tr>';
119
+        default:
120
+        case 'default':
121
+            // @author      Gregory Mage (Aka Mage)
122
+            //***************************************************************************************
123
+            xoops_cp_header();
124
+            //        include_once XOOPS_ROOT_PATH . "/modules/extcal/class/admin.php";
125
+    //        $catHandler = xoops_getModuleHandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE);
126
+    //        $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
127
+            $indexAdmin = new ModuleAdmin();
128
+            $indexAdmin->addInfoBox(_MI_EXTCAL_DASHBOARD);
129
+            $indexAdmin->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>'._AM_EXTCAL_INDEX_CATEGORIES.'</infolabel>', $catHandler->getCount(), 'Green');
130
+            $indexAdmin->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>'._AM_EXTCAL_INDEX_EVENT.'</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 1)), 'Green');
131
+            $indexAdmin->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>'._AM_EXTCAL_INDEX_PENDING.'</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 0)), 'Red');
132
+            $criteriaCompo = new CriteriaCompo();
133
+            $criteriaCompo->add(new Criteria('event_approved', 1));
134
+            $criteriaCompo->add(new Criteria('event_start', time(), '>='));
135
+            $indexAdmin->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>'._AM_EXTCAL_INDEX_APPROVED.'</infolabel><infotext>', $eventHandler->getCount($criteriaCompo).'</infotext>', 'Green');
136
+
137
+            $indexAdmin->addConfigBoxLine();
138
+            $indexAdmin->addConfigBoxLine(_AM_EXTCAL_PEAR_PATH);
139
+            $indexAdmin->addConfigBoxLine(_EXTCAL_PEAR_ROOT, 'folder');
140
+
141
+            //JJD
142
+            //         $indexAdmin->addConfigBoxLine(XOOPS_ROOT_PATH,'folder');
143
+
144
+            //        $indexAdmin->addLineConfigLabel(_AM_EXTCAL_CONFIG_PHP, $xoopsModule->getInfo("min_php"), 'php');
145
+            //        $indexAdmin->addLineConfigLabel(_AM_EXTCAL_CONFIG_XOOPS, $xoopsModule->getInfo("min_xoops"), 'xoops');
146
+            echo $indexAdmin->addNavigation(basename(__FILE__));
147
+            echo $indexAdmin->renderIndex();
148
+            //***************************************************************************************
149
+            $pendingEvent = $eventHandler->objectToArray($eventHandler->getPendingEvent(), array('cat_id'));
150
+            $eventHandler->formatEventsDate($pendingEvent, 'd/m/Y');
151
+
152
+            echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._AM_EXTCAL_PENDING_EVENT.'</legend>';
153
+            echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
154
+            //        echo '<img src="../assets/images/icons/on.png"  />&nbsp;&nbsp;'._AM_EXTCAL_INFO_APPROVE_PENDING_EVENT.'<br>';
155
+            echo '<img src='.$pathIcon16.'/edit.png />&nbsp;&nbsp;'._AM_EXTCAL_INFO_EDIT_PENDING_EVENT.'<br>';
156
+            echo '<img src='.$pathIcon16.'/delete.png />&nbsp;&nbsp;'._AM_EXTCAL_INFO_DELETE_PENDING_EVENT.'<br>';
157
+            echo '</fieldset><br>';
158
+
159
+            echo '<table class="outer" style="width:100%;">';
160
+            echo '<tr style="text-align:center;">';
161
+            echo '<th>'._AM_EXTCAL_CATEGORY.'</th>';
162
+            echo '<th>'._AM_EXTCAL_TITLE.'</th>';
163
+            echo '<th>'._AM_EXTCAL_START_DATE.'</th>';
164
+            echo '<th>'._AM_EXTCAL_ACTION.'</th>';
165
+            echo '</tr>';
166
+
167
+            if (count($pendingEvent) > 0) {
168
+                $i = 0;
169
+                foreach ($pendingEvent as $event) {
170
+                    $class = (++$i % 2 == 0) ? 'even' : 'odd';
171
+                    echo '<tr style="text-align:center;" class="'.$class.'">';
172
+                    echo '<td>'.$event['cat']['cat_name'].'</td>';
173
+                    echo '<td>'.$event['event_title'].'</td>';
174
+                    echo '<td>'.$event['formated_event_start'].'</td>';
175
+                    echo '<td style="width:10%; text-align:center;">';
176
+                    echo '<a href="event.php?op=modify&amp;event_id='.$event['event_id'].'"><img src='.$pathIcon16.'/edit.png /></a>&nbsp;&nbsp;';
177
+                    echo '<a href="event.php?op=delete&amp;event_id='.$event['event_id'].'"><img src='.$pathIcon16.'/delete.png /></a>';
178
+                    echo '</td>';
179
+                    echo '</tr>';
180
+                }
181
+            } else {
182
+                echo '<tr><td colspan="4">'._AM_EXTCAL_NO_PENDING_EVENT.'</td></tr>';
180 183
             }
181
-        } else {
182
-            echo '<tr><td colspan="4">'._AM_EXTCAL_NO_PENDING_EVENT.'</td></tr>';
183
-        }
184 184
 
185
-        echo '</table></fieldset><br>';
185
+            echo '</table></fieldset><br>';
186 186
 
187
-        include_once __DIR__.'/admin_footer.php';
187
+            include_once __DIR__.'/admin_footer.php';
188 188
 
189
-        break;
189
+            break;
190 190
 }
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/13.php 1 patch
Switch Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -39,32 +39,32 @@
 block discarded – undo
39 39
 }
40 40
 
41 41
 switch (@$_GET['view']) {
42
-    default:
43
-        $_GET['view'] = 'calendar_year';
44
-    case 'calendar_year':
45
-        require_once CALENDAR_ROOT.'Year.php';
46
-        $c = new Calendar_Year($_GET['y']);
47
-        break;
48
-    case 'calendar_month':
49
-        require_once CALENDAR_ROOT.'Month.php';
50
-        $c = new Calendar_Month($_GET['y'], $_GET['m']);
51
-        break;
52
-    case 'calendar_day':
53
-        require_once CALENDAR_ROOT.'Day.php';
54
-        $c = new Calendar_Day($_GET['y'], $_GET['m'], $_GET['d']);
55
-        break;
56
-    case 'calendar_hour':
57
-        require_once CALENDAR_ROOT.'Hour.php';
58
-        $c = new Calendar_Hour($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h']);
59
-        break;
60
-    case 'calendar_minute':
61
-        require_once CALENDAR_ROOT.'Minute.php';
62
-        $c = new Calendar_Minute($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i']);
63
-        break;
64
-    case 'calendar_second':
65
-        require_once CALENDAR_ROOT.'Second.php';
66
-        $c = new Calendar_Second($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i'], $_GET['s']);
67
-        break;
42
+        default:
43
+            $_GET['view'] = 'calendar_year';
44
+        case 'calendar_year':
45
+            require_once CALENDAR_ROOT.'Year.php';
46
+            $c = new Calendar_Year($_GET['y']);
47
+            break;
48
+        case 'calendar_month':
49
+            require_once CALENDAR_ROOT.'Month.php';
50
+            $c = new Calendar_Month($_GET['y'], $_GET['m']);
51
+            break;
52
+        case 'calendar_day':
53
+            require_once CALENDAR_ROOT.'Day.php';
54
+            $c = new Calendar_Day($_GET['y'], $_GET['m'], $_GET['d']);
55
+            break;
56
+        case 'calendar_hour':
57
+            require_once CALENDAR_ROOT.'Hour.php';
58
+            $c = new Calendar_Hour($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h']);
59
+            break;
60
+        case 'calendar_minute':
61
+            require_once CALENDAR_ROOT.'Minute.php';
62
+            $c = new Calendar_Minute($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i']);
63
+            break;
64
+        case 'calendar_second':
65
+            require_once CALENDAR_ROOT.'Second.php';
66
+            $c = new Calendar_Second($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i'], $_GET['s']);
67
+            break;
68 68
 }
69 69
 
70 70
 // Convert timestamp to human readable date
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/1.php 1 patch
Switch Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -39,32 +39,32 @@
 block discarded – undo
39 39
 }
40 40
 
41 41
 switch (@$_GET['view']) {
42
-    default:
43
-        $_GET['view'] = 'calendar_year';
44
-    case 'calendar_year':
45
-        require_once CALENDAR_ROOT.'Year.php';
46
-        $c = new Calendar_Year($_GET['y']);
47
-        break;
48
-    case 'calendar_month':
49
-        require_once CALENDAR_ROOT.'Month.php';
50
-        $c = new Calendar_Month($_GET['y'], $_GET['m']);
51
-        break;
52
-    case 'calendar_day':
53
-        require_once CALENDAR_ROOT.'Day.php';
54
-        $c = new Calendar_Day($_GET['y'], $_GET['m'], $_GET['d']);
55
-        break;
56
-    case 'calendar_hour':
57
-        require_once CALENDAR_ROOT.'Hour.php';
58
-        $c = new Calendar_Hour($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h']);
59
-        break;
60
-    case 'calendar_minute':
61
-        require_once CALENDAR_ROOT.'Minute.php';
62
-        $c = new Calendar_Minute($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i']);
63
-        break;
64
-    case 'calendar_second':
65
-        require_once CALENDAR_ROOT.'Second.php';
66
-        $c = new Calendar_Second($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i'], $_GET['s']);
67
-        break;
42
+        default:
43
+            $_GET['view'] = 'calendar_year';
44
+        case 'calendar_year':
45
+            require_once CALENDAR_ROOT.'Year.php';
46
+            $c = new Calendar_Year($_GET['y']);
47
+            break;
48
+        case 'calendar_month':
49
+            require_once CALENDAR_ROOT.'Month.php';
50
+            $c = new Calendar_Month($_GET['y'], $_GET['m']);
51
+            break;
52
+        case 'calendar_day':
53
+            require_once CALENDAR_ROOT.'Day.php';
54
+            $c = new Calendar_Day($_GET['y'], $_GET['m'], $_GET['d']);
55
+            break;
56
+        case 'calendar_hour':
57
+            require_once CALENDAR_ROOT.'Hour.php';
58
+            $c = new Calendar_Hour($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h']);
59
+            break;
60
+        case 'calendar_minute':
61
+            require_once CALENDAR_ROOT.'Minute.php';
62
+            $c = new Calendar_Minute($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i']);
63
+            break;
64
+        case 'calendar_second':
65
+            require_once CALENDAR_ROOT.'Second.php';
66
+            $c = new Calendar_Second($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i'], $_GET['s']);
67
+            break;
68 68
 }
69 69
 
70 70
 // Convert timestamp to human readable date
Please login to merge, or discard this patch.