Completed
Push — master ( 5f5d60...a9decc )
by Michael
03:36
created
class/pear/Calendar/docs/examples/1.php 1 patch
Switch Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -35,32 +35,32 @@
 block discarded – undo
35 35
 }
36 36
 
37 37
 switch (@$_GET['view']) {
38
-    default:
39
-        $_GET['view'] = 'calendar_year';
40
-    case 'calendar_year':
41
-        require_once CALENDAR_ROOT.'Year.php';
42
-        $c = new Calendar_Year($_GET['y']);
43
-        break;
44
-    case 'calendar_month':
45
-        require_once CALENDAR_ROOT.'Month.php';
46
-        $c = new Calendar_Month($_GET['y'], $_GET['m']);
47
-        break;
48
-    case 'calendar_day':
49
-        require_once CALENDAR_ROOT.'Day.php';
50
-        $c = new Calendar_Day($_GET['y'], $_GET['m'], $_GET['d']);
51
-        break;
52
-    case 'calendar_hour':
53
-        require_once CALENDAR_ROOT.'Hour.php';
54
-        $c = new Calendar_Hour($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h']);
55
-        break;
56
-    case 'calendar_minute':
57
-        require_once CALENDAR_ROOT.'Minute.php';
58
-        $c = new Calendar_Minute($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i']);
59
-        break;
60
-    case 'calendar_second':
61
-        require_once CALENDAR_ROOT.'Second.php';
62
-        $c = new Calendar_Second($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i'], $_GET['s']);
63
-        break;
38
+        default:
39
+            $_GET['view'] = 'calendar_year';
40
+        case 'calendar_year':
41
+            require_once CALENDAR_ROOT.'Year.php';
42
+            $c = new Calendar_Year($_GET['y']);
43
+            break;
44
+        case 'calendar_month':
45
+            require_once CALENDAR_ROOT.'Month.php';
46
+            $c = new Calendar_Month($_GET['y'], $_GET['m']);
47
+            break;
48
+        case 'calendar_day':
49
+            require_once CALENDAR_ROOT.'Day.php';
50
+            $c = new Calendar_Day($_GET['y'], $_GET['m'], $_GET['d']);
51
+            break;
52
+        case 'calendar_hour':
53
+            require_once CALENDAR_ROOT.'Hour.php';
54
+            $c = new Calendar_Hour($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h']);
55
+            break;
56
+        case 'calendar_minute':
57
+            require_once CALENDAR_ROOT.'Minute.php';
58
+            $c = new Calendar_Minute($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i']);
59
+            break;
60
+        case 'calendar_second':
61
+            require_once CALENDAR_ROOT.'Second.php';
62
+            $c = new Calendar_Second($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i'], $_GET['s']);
63
+            break;
64 64
 }
65 65
 
66 66
 echo 'Viewing: '.@$_GET['view'].'<br>';
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/tests/day_test.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,13 +27,13 @@
 block discarded – undo
27 27
     public function testPrevDay_Array()
28 28
     {
29 29
         $this->assertEqual(array(
30
-                               'year' => 2003,
31
-                               'month' => 10,
32
-                               'day' => 24,
33
-                               'hour' => 0,
34
-                               'minute' => 0,
35
-                               'second' => 0,
36
-                           ), $this->cal->prevDay('array'));
30
+                                'year' => 2003,
31
+                                'month' => 10,
32
+                                'day' => 24,
33
+                                'hour' => 0,
34
+                                'minute' => 0,
35
+                                'second' => 0,
36
+                            ), $this->cal->prevDay('array'));
37 37
     }
38 38
 
39 39
     public function testPrevHour()
Please login to merge, or discard this patch.
class/pear/Calendar/tests/minute_test.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,13 +27,13 @@
 block discarded – undo
27 27
     public function testPrevDay_Array()
28 28
     {
29 29
         $this->assertEqual(array(
30
-                               'year' => 2003,
31
-                               'month' => 10,
32
-                               'day' => 24,
33
-                               'hour' => 0,
34
-                               'minute' => 0,
35
-                               'second' => 0,
36
-                           ), $this->cal->prevDay('array'));
30
+                                'year' => 2003,
31
+                                'month' => 10,
32
+                                'day' => 24,
33
+                                'hour' => 0,
34
+                                'minute' => 0,
35
+                                'second' => 0,
36
+                            ), $this->cal->prevDay('array'));
37 37
     }
38 38
 
39 39
     public function testPrevSecond()
Please login to merge, or discard this patch.
class/pear/Calendar/tests/hour_test.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,13 +27,13 @@
 block discarded – undo
27 27
     public function testPrevDay_Array()
28 28
     {
29 29
         $this->assertEqual(array(
30
-                               'year' => 2003,
31
-                               'month' => 10,
32
-                               'day' => 24,
33
-                               'hour' => 0,
34
-                               'minute' => 0,
35
-                               'second' => 0,
36
-                           ), $this->cal->prevDay('array'));
30
+                                'year' => 2003,
31
+                                'month' => 10,
32
+                                'day' => 24,
33
+                                'hour' => 0,
34
+                                'minute' => 0,
35
+                                'second' => 0,
36
+                            ), $this->cal->prevDay('array'));
37 37
     }
38 38
 
39 39
     public function testPrevMinute()
Please login to merge, or discard this patch.
class/pear/Calendar/tests/year_test.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -42,13 +42,13 @@  discard block
 block discarded – undo
42 42
     public function testPrevMonth_Array()
43 43
     {
44 44
         $this->assertEqual(array(
45
-                               'year' => 2002,
46
-                               'month' => 12,
47
-                               'day' => 1,
48
-                               'hour' => 0,
49
-                               'minute' => 0,
50
-                               'second' => 0,
51
-                           ), $this->cal->prevMonth('array'));
45
+                                'year' => 2002,
46
+                                'month' => 12,
47
+                                'day' => 1,
48
+                                'hour' => 0,
49
+                                'minute' => 0,
50
+                                'second' => 0,
51
+                            ), $this->cal->prevMonth('array'));
52 52
     }
53 53
 
54 54
     public function testThisMonth()
@@ -69,13 +69,13 @@  discard block
 block discarded – undo
69 69
     public function testPrevDay_Array()
70 70
     {
71 71
         $this->assertEqual(array(
72
-                               'year' => 2002,
73
-                               'month' => 12,
74
-                               'day' => 31,
75
-                               'hour' => 0,
76
-                               'minute' => 0,
77
-                               'second' => 0,
78
-                           ), $this->cal->prevDay('array'));
72
+                                'year' => 2002,
73
+                                'month' => 12,
74
+                                'day' => 31,
75
+                                'hour' => 0,
76
+                                'minute' => 0,
77
+                                'second' => 0,
78
+                            ), $this->cal->prevDay('array'));
79 79
     }
80 80
 
81 81
     public function testThisDay()
Please login to merge, or discard this patch.
class/pear/Calendar/tests/week_firstday_0_test.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -34,13 +34,13 @@
 block discarded – undo
34 34
     public function testPrevDay_Array()
35 35
     {
36 36
         $this->assertEqual(array(
37
-                               'year' => 2003,
38
-                               'month' => 10,
39
-                               'day' => 8,
40
-                               'hour' => 0,
41
-                               'minute' => 0,
42
-                               'second' => 0,
43
-                           ), $this->cal->prevDay('array'));
37
+                                'year' => 2003,
38
+                                'month' => 10,
39
+                                'day' => 8,
40
+                                'hour' => 0,
41
+                                'minute' => 0,
42
+                                'second' => 0,
43
+                            ), $this->cal->prevDay('array'));
44 44
     }
45 45
 
46 46
     public function testThisDay()
Please login to merge, or discard this patch.
class/pear/Calendar/tests/month_weeks_test.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -32,13 +32,13 @@
 block discarded – undo
32 32
     public function testPrevDay_Array()
33 33
     {
34 34
         $this->assertEqual(array(
35
-                               'year' => 2003,
36
-                               'month' => 9,
37
-                               'day' => 30,
38
-                               'hour' => 0,
39
-                               'minute' => 0,
40
-                               'second' => 0,
41
-                           ), $this->cal->prevDay('array'));
35
+                                'year' => 2003,
36
+                                'month' => 9,
37
+                                'day' => 30,
38
+                                'hour' => 0,
39
+                                'minute' => 0,
40
+                                'second' => 0,
41
+                            ), $this->cal->prevDay('array'));
42 42
     }
43 43
 
44 44
     public function testThisDay()
Please login to merge, or discard this patch.
class/pear/Calendar/tests/calendar_test.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -37,13 +37,13 @@  discard block
 block discarded – undo
37 37
     public function testPrevYear_Array()
38 38
     {
39 39
         $this->assertEqual(array(
40
-                               'year' => 2002,
41
-                               'month' => 1,
42
-                               'day' => 1,
43
-                               'hour' => 0,
44
-                               'minute' => 0,
45
-                               'second' => 0,
46
-                           ), $this->cal->prevYear('array'));
40
+                                'year' => 2002,
41
+                                'month' => 1,
42
+                                'day' => 1,
43
+                                'hour' => 0,
44
+                                'minute' => 0,
45
+                                'second' => 0,
46
+                            ), $this->cal->prevYear('array'));
47 47
     }
48 48
 
49 49
     public function testThisYear()
@@ -64,13 +64,13 @@  discard block
 block discarded – undo
64 64
     public function testPrevMonth_Array()
65 65
     {
66 66
         $this->assertEqual(array(
67
-                               'year' => 2003,
68
-                               'month' => 9,
69
-                               'day' => 1,
70
-                               'hour' => 0,
71
-                               'minute' => 0,
72
-                               'second' => 0,
73
-                           ), $this->cal->prevMonth('array'));
67
+                                'year' => 2003,
68
+                                'month' => 9,
69
+                                'day' => 1,
70
+                                'hour' => 0,
71
+                                'minute' => 0,
72
+                                'second' => 0,
73
+                            ), $this->cal->prevMonth('array'));
74 74
     }
75 75
 
76 76
     public function testThisMonth()
@@ -91,13 +91,13 @@  discard block
 block discarded – undo
91 91
     public function testPrevDay_Array()
92 92
     {
93 93
         $this->assertEqual(array(
94
-                               'year' => 2003,
95
-                               'month' => 10,
96
-                               'day' => 24,
97
-                               'hour' => 0,
98
-                               'minute' => 0,
99
-                               'second' => 0,
100
-                           ), $this->cal->prevDay('array'));
94
+                                'year' => 2003,
95
+                                'month' => 10,
96
+                                'day' => 24,
97
+                                'hour' => 0,
98
+                                'minute' => 0,
99
+                                'second' => 0,
100
+                            ), $this->cal->prevDay('array'));
101 101
     }
102 102
 
103 103
     public function testThisDay()
Please login to merge, or discard this patch.