Completed
Push — master ( d44352...76d45c )
by Michael
08:21
created
class/pear/Calendar/docs/examples/22.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@  discard block
 block discarded – undo
5 5
 if (!@include 'Calendar/Calendar.php') {
6 6
     define('CALENDAR_ROOT', '../../');
7 7
 }
8
-require_once CALENDAR_ROOT . 'Month/Weekdays.php';
9
-require_once CALENDAR_ROOT . 'Util/Uri.php';
8
+require_once CALENDAR_ROOT.'Month/Weekdays.php';
9
+require_once CALENDAR_ROOT.'Util/Uri.php';
10 10
 
11 11
 if (!isset($_GET['jahr'])) {
12 12
     $_GET['jahr'] = date('Y');
@@ -18,15 +18,15 @@  discard block
 block discarded – undo
18 18
 // Build the month
19 19
 $Calendar = new Calendar_Month_Weekdays($_GET['jahr'], $_GET['monat']);
20 20
 
21
-echo('<p>The current month is ' . $Calendar->thisMonth() . ' of year ' . $Calendar->thisYear() . '</p>');
21
+echo('<p>The current month is '.$Calendar->thisMonth().' of year '.$Calendar->thisYear().'</p>');
22 22
 
23 23
 $Uri = new Calendar_Util_Uri('jahr', 'monat');
24 24
 $Uri->setFragments('jahr', 'monat');
25 25
 
26 26
 echo "\"Vector\" URIs<pre>";
27
-echo("Previous Uri:\t" . htmlentities($Uri->prev($Calendar, 'month')) . "\n");
28
-echo("This Uri:\t" . htmlentities($Uri->this($Calendar, 'month')) . "\n");
29
-echo("Next Uri:\t" . htmlentities($Uri->next($Calendar, 'month')) . "\n");
27
+echo("Previous Uri:\t".htmlentities($Uri->prev($Calendar, 'month'))."\n");
28
+echo("This Uri:\t".htmlentities($Uri->this($Calendar, 'month'))."\n");
29
+echo("Next Uri:\t".htmlentities($Uri->next($Calendar, 'month'))."\n");
30 30
 echo '</pre>';
31 31
 
32 32
 // Switch to scalar URIs
@@ -34,9 +34,9 @@  discard block
 block discarded – undo
34 34
 $Uri->scalar    = true; // Omit variable names
35 35
 
36 36
 echo "\"Scalar\" URIs<pre>";
37
-echo("Previous Uri:\t" . $Uri->prev($Calendar, 'month') . "\n");
38
-echo("This Uri:\t" . $Uri->this($Calendar, 'month') . "\n");
39
-echo("Next Uri:\t" . $Uri->next($Calendar, 'month') . "\n");
37
+echo("Previous Uri:\t".$Uri->prev($Calendar, 'month')."\n");
38
+echo("This Uri:\t".$Uri->this($Calendar, 'month')."\n");
39
+echo("Next Uri:\t".$Uri->next($Calendar, 'month')."\n");
40 40
 echo '</pre>';
41 41
 
42 42
 // Restore the vector URIs
@@ -44,6 +44,6 @@  discard block
 block discarded – undo
44 44
 $Uri->scalar    = false;
45 45
 ?>
46 46
 <p>
47
-    <a href="<?php echo($_SERVER['PHP_SELF'] . '?' . $Uri->prev($Calendar, 'month')); ?>">Prev</a> :
48
-    <a href="<?php echo($_SERVER['PHP_SELF'] . '?' . $Uri->next($Calendar, 'month')); ?>">Next</a>
47
+    <a href="<?php echo($_SERVER['PHP_SELF'].'?'.$Uri->prev($Calendar, 'month')); ?>">Prev</a> :
48
+    <a href="<?php echo($_SERVER['PHP_SELF'].'?'.$Uri->next($Calendar, 'month')); ?>">Next</a>
49 49
 </p>
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/6.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 {
9 9
     list($usec, $sec) = explode(' ', microtime());
10 10
 
11
-    return ((float)$usec + (float)$sec);
11
+    return ((float) $usec + (float) $sec);
12 12
 }
13 13
 
14 14
 $start = getmicrotime();
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
 if (!@include 'Calendar/Calendar.php') {
17 17
     define('CALENDAR_ROOT', '../../');
18 18
 }
19
-require_once CALENDAR_ROOT . 'Month/Weekdays.php';
20
-require_once CALENDAR_ROOT . 'Day.php';
19
+require_once CALENDAR_ROOT.'Month/Weekdays.php';
20
+require_once CALENDAR_ROOT.'Day.php';
21 21
 
22 22
 if (!isset($_GET['y'])) {
23 23
     $_GET['y'] = date('Y');
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
                 <anchor>
51 51
                     Back to Month View
52 52
                     <go href="<?php
53
-                    echo('?y=' . $Day->thisYear() . '&amp;m=' . $Day->thisMonth() . '&amp;d=' . $Day->thisDay() . '&amp;mime=wml');
53
+                    echo('?y='.$Day->thisYear().'&amp;m='.$Day->thisMonth().'&amp;d='.$Day->thisDay().'&amp;mime=wml');
54 54
                     ?>"/>
55 55
                 </anchor>
56 56
             </p>
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
                 $Day->build();
60 60
                 while ($Hour = $Day->fetch()) {
61 61
                     echo("<tr>\n");
62
-                    echo('<td>' . date('g a', $Hour->getTimestamp()) . "</td><td>Free time!</td>\n");
62
+                    echo('<td>'.date('g a', $Hour->getTimestamp())."</td><td>Free time!</td>\n");
63 63
                     echo("</tr>\n");
64 64
                 }
65 65
                 ?>
@@ -89,9 +89,9 @@  discard block
 block discarded – undo
89 89
                     if ($Day->isEmpty()) {
90 90
                         echo("<td></td>\n");
91 91
                     } elseif ($Day->isSelected()) {
92
-                        echo('<td><anchor><strong><u>' . $Day->thisDay() . "</u></strong>\n<go href=\"" . $_SERVER['PHP_SELF'] . '?viewday=true&amp;y=' . $Day->thisYear() . '&amp;m=' . $Day->thisMonth() . '&amp;d=' . $Day->thisDay() . "&amp;mime=wml\" />\n</anchor></td>\n");
92
+                        echo('<td><anchor><strong><u>'.$Day->thisDay()."</u></strong>\n<go href=\"".$_SERVER['PHP_SELF'].'?viewday=true&amp;y='.$Day->thisYear().'&amp;m='.$Day->thisMonth().'&amp;d='.$Day->thisDay()."&amp;mime=wml\" />\n</anchor></td>\n");
93 93
                     } else {
94
-                        echo('<td><anchor>' . $Day->thisDay() . "\n<go href=\"?viewday=true&amp;y=" . $Day->thisYear() . '&amp;m=' . $Day->thisMonth() . '&amp;d=' . $Day->thisDay() . "&amp;mime=wml\" /></anchor></td>\n");
94
+                        echo('<td><anchor>'.$Day->thisDay()."\n<go href=\"?viewday=true&amp;y=".$Day->thisYear().'&amp;m='.$Day->thisMonth().'&amp;d='.$Day->thisDay()."&amp;mime=wml\" /></anchor></td>\n");
95 95
                     }
96 96
                     if ($Day->isLast()) {
97 97
                         echo("</tr>\n");
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                         <anchor>
104 104
                             &lt;&lt;
105 105
                             <go href="<?php
106
-                            echo('?y=' . $Month->thisYear() . '&amp;m=' . $Month->prevMonth() . '&amp;d=' . $Month->thisDay() . '&amp;mime=wml');
106
+                            echo('?y='.$Month->thisYear().'&amp;m='.$Month->prevMonth().'&amp;d='.$Month->thisDay().'&amp;mime=wml');
107 107
                             ?>"/>
108 108
                         </anchor>
109 109
                     </td>
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
                         <anchor>
117 117
                             &gt;&gt;
118 118
                             <go href="<?php
119
-                            echo('?y=' . $Month->thisYear() . '&amp;m=' . $Month->nextMonth() . '&amp;d=' . $Month->thisDay() . '&amp;mime=wml');
119
+                            echo('?y='.$Month->thisYear().'&amp;m='.$Month->nextMonth().'&amp;d='.$Month->thisDay().'&amp;mime=wml');
120 120
                             ?>"/>
121 121
                         </anchor>
122 122
                     </td>
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
         ?>
130 130
         <p><a href="<?php echo($_SERVER['PHP_SELF']);
131 131
             ?>">Back to HTML</a></p>
132
-        <?php echo('<p>Took: ' . (getmicrotime() - $start) . ' seconds</p>');
132
+        <?php echo('<p>Took: '.(getmicrotime() - $start).' seconds</p>');
133 133
         ?>
134 134
     </wml>
135 135
     <?php
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         <p>
156 156
             <anchor>
157 157
                 <a href="<?php
158
-                echo('?y=' . $Day->thisYear() . '&amp;m=' . $Day->thisMonth() . '&amp;d=' . $Day->thisDay());
158
+                echo('?y='.$Day->thisYear().'&amp;m='.$Day->thisMonth().'&amp;d='.$Day->thisDay());
159 159
                 ?>">Back to Month View</a>
160 160
         </p>
161 161
         <table>
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
             $Day->build();
164 164
             while ($Hour = $Day->fetch()) {
165 165
                 echo("<tr>\n");
166
-                echo('<td>' . date('g a', $Hour->getTimestamp()) . "</td><td>Free time!</td>\n");
166
+                echo('<td>'.date('g a', $Hour->getTimestamp())."</td><td>Free time!</td>\n");
167 167
                 echo("</tr>\n");
168 168
             }
169 169
             ?>
@@ -193,9 +193,9 @@  discard block
 block discarded – undo
193 193
                 if ($Day->isEmpty()) {
194 194
                     echo("<td></td>\n");
195 195
                 } elseif ($Day->isSelected()) {
196
-                    echo("<td><a href=\"" . $_SERVER['PHP_SELF'] . '?viewday=true&amp;y=' . $Day->thisYear() . '&amp;m=' . $Day->thisMonth() . '&amp;d=' . $Day->thisDay() . "&amp;wml\"><strong><u>" . $Day->thisDay() . "</u></strong></a></td>\n");
196
+                    echo("<td><a href=\"".$_SERVER['PHP_SELF'].'?viewday=true&amp;y='.$Day->thisYear().'&amp;m='.$Day->thisMonth().'&amp;d='.$Day->thisDay()."&amp;wml\"><strong><u>".$Day->thisDay()."</u></strong></a></td>\n");
197 197
                 } else {
198
-                    echo("<td><a href=\"" . $_SERVER['PHP_SELF'] . '?viewday=true&amp;y=' . $Day->thisYear() . '&amp;m=' . $Day->thisMonth() . '&amp;d=' . $Day->thisDay() . "\">" . $Day->thisDay() . "</a></td>\n");
198
+                    echo("<td><a href=\"".$_SERVER['PHP_SELF'].'?viewday=true&amp;y='.$Day->thisYear().'&amp;m='.$Day->thisMonth().'&amp;d='.$Day->thisDay()."\">".$Day->thisDay()."</a></td>\n");
199 199
                 }
200 200
                 if ($Day->isLast()) {
201 201
                     echo("</tr>\n");
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
             <tr>
206 206
                 <td>
207 207
                     <a href="<?php
208
-                    echo('?y=' . $Month->thisYear() . '&amp;m=' . $Month->prevMonth() . '&amp;d=' . $Month->thisDay());
208
+                    echo('?y='.$Month->thisYear().'&amp;m='.$Month->prevMonth().'&amp;d='.$Month->thisDay());
209 209
                     ?>">
210 210
                         &lt;&lt;</a>
211 211
                 </td>
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
                 <td></td>
217 217
                 <td>
218 218
                     <a href="<?php
219
-                    echo('?y=' . $Month->thisYear() . '&amp;m=' . $Month->nextMonth() . '&amp;d=' . $Month->thisDay());
219
+                    echo('?y='.$Month->thisYear().'&amp;m='.$Month->nextMonth().'&amp;d='.$Month->thisDay());
220 220
                     ?>">&gt;&gt;</a>
221 221
                 </td>
222 222
             </tr>
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
     }
228 228
     ?>
229 229
 
230
-    <?php echo('<p><b>Took: ' . (getmicrotime() - $start) . ' seconds</b></p>');
230
+    <?php echo('<p><b>Took: '.(getmicrotime() - $start).' seconds</b></p>');
231 231
     ?>
232 232
     </body>
233 233
     </html>
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/2.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 {
8 8
     list($usec, $sec) = explode(' ', microtime());
9 9
 
10
-    return ((float)$usec + (float)$sec);
10
+    return ((float) $usec + (float) $sec);
11 11
 }
12 12
 
13 13
 $start = getmicrotime();
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
 if (!@include 'Calendar/Calendar.php') {
19 19
     define('CALENDAR_ROOT', '../../');
20 20
 }
21
-require_once CALENDAR_ROOT . 'Month/Weeks.php';
22
-require_once CALENDAR_ROOT . 'Day.php';
21
+require_once CALENDAR_ROOT.'Month/Weeks.php';
22
+require_once CALENDAR_ROOT.'Day.php';
23 23
 
24 24
 // Initialize GET variables if not set
25 25
 if (!isset($_GET['y'])) {
@@ -47,9 +47,9 @@  discard block
 block discarded – undo
47 47
 
48 48
 // Construct strings for next/previous links
49 49
 $PMonth = $Month->prevMonth('object'); // Get previous month as object
50
-$prev   = $_SERVER['PHP_SELF'] . '?y=' . $PMonth->thisYear() . '&m=' . $PMonth->thisMonth() . '&d=' . $PMonth->thisDay();
50
+$prev   = $_SERVER['PHP_SELF'].'?y='.$PMonth->thisYear().'&m='.$PMonth->thisMonth().'&d='.$PMonth->thisDay();
51 51
 $NMonth = $Month->nextMonth('object');
52
-$next   = $_SERVER['PHP_SELF'] . '?y=' . $NMonth->thisYear() . '&m=' . $NMonth->thisMonth() . '&d=' . $NMonth->thisDay();
52
+$next   = $_SERVER['PHP_SELF'].'?y='.$NMonth->thisYear().'&m='.$NMonth->thisMonth().'&d='.$NMonth->thisDay();
53 53
 ?>
54 54
 <!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
55 55
 <html>
@@ -123,19 +123,19 @@  discard block
 block discarded – undo
123 123
         while ($Day = $Week->fetch()) {
124 124
 
125 125
             // Build a link string for each day
126
-            $link = $_SERVER['PHP_SELF'] . '?y=' . $Day->thisYear() . '&m=' . $Day->thisMonth() . '&d=' . $Day->thisDay();
126
+            $link = $_SERVER['PHP_SELF'].'?y='.$Day->thisYear().'&m='.$Day->thisMonth().'&d='.$Day->thisDay();
127 127
 
128 128
             // Check to see if day is selected
129 129
             if ($Day->isSelected()) {
130
-                echo '<td class="selected">' . $Day->thisDay() . '</td>' . "\n";
130
+                echo '<td class="selected">'.$Day->thisDay().'</td>'."\n";
131 131
                 // Check to see if day is empty
132 132
             } elseif ($Day->isEmpty()) {
133
-                echo '<td class="empty">' . $Day->thisDay() . '</td>' . "\n";
133
+                echo '<td class="empty">'.$Day->thisDay().'</td>'."\n";
134 134
             } else {
135
-                echo '<td><a href="' . $link . '">' . $Day->thisDay() . '</a></td>' . "\n";
135
+                echo '<td><a href="'.$link.'">'.$Day->thisDay().'</a></td>'."\n";
136 136
             }
137 137
         }
138
-        echo '</tr>' . "\n";
138
+        echo '</tr>'."\n";
139 139
     }
140 140
     ?>
141 141
     <tr>
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     </tr>
150 150
 </table>
151 151
 <?php
152
-echo '<p><b>Took: ' . (getmicrotime() - $start) . ' seconds</b></p>';
152
+echo '<p><b>Took: '.(getmicrotime() - $start).' seconds</b></p>';
153 153
 ?>
154 154
 </body>
155 155
 </html>
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/19.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 require_once CALENDAR_ROOT.'Day.php';
9 9
 require_once CALENDAR_ROOT.'Decorator/Weekday.php';
10 10
 
11
-$Day = new Calendar_Day(date('Y'), date('n'),date('d'));
11
+$Day = new Calendar_Day(date('Y'), date('n'), date('d'));
12 12
 $WeekDay = new Calendar_Decorator_Weekday($Day);
13 13
 // $WeekDay->setFirstDay(0); // Make Sunday first Day
14 14
 
@@ -18,6 +18,6 @@  discard block
 block discarded – undo
18 18
 
19 19
 $WeekDay->build();
20 20
 echo 'Hours today:<br>';
21
-while ( $Hour = $WeekDay->fetch() ) {
21
+while ($Hour = $WeekDay->fetch()) {
22 22
     echo $Hour->thisHour().'<br>';
23 23
 }
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/18.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@  discard block
 block discarded – undo
6 6
 if (!@include 'Calendar/Calendar.php') {
7 7
     define('CALENDAR_ROOT', '../../');
8 8
 }
9
-require_once CALENDAR_ROOT . 'Month.php';
10
-require_once CALENDAR_ROOT . 'Decorator.php'; // Not really needed but added to help this make sense
11
-require_once CALENDAR_ROOT . 'Decorator/Wrapper.php';
9
+require_once CALENDAR_ROOT.'Month.php';
10
+require_once CALENDAR_ROOT.'Decorator.php'; // Not really needed but added to help this make sense
11
+require_once CALENDAR_ROOT.'Decorator/Wrapper.php';
12 12
 
13 13
 /**
14 14
  * Class MyBoldDecorator
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      */
29 29
     public function thisDay()
30 30
     {
31
-        return '<b>' . parent::thisDay() . '</b>';
31
+        return '<b>'.parent::thisDay().'</b>';
32 32
     }
33 33
 }
34 34
 
@@ -40,5 +40,5 @@  discard block
 block discarded – undo
40 40
 echo '<h2>The Wrapper decorator</h2>';
41 41
 echo '<i>Day numbers are rendered in bold</i><br /> <br />';
42 42
 while ($DecoratedDay = $Wrapper->fetch('MyBoldDecorator')) {
43
-    echo $DecoratedDay->thisDay() . '<br />';
43
+    echo $DecoratedDay->thisDay().'<br />';
44 44
 }
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/21.php 1 patch
Spacing   +7 added lines, -7 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,8 +15,8 @@  discard block
 block discarded – undo
15 15
     define('CALENDAR_ROOT', '../../');
16 16
 }
17 17
 
18
-require_once CALENDAR_ROOT . 'Year.php';
19
-require_once CALENDAR_ROOT . 'Month/Weeks.php';
18
+require_once CALENDAR_ROOT.'Year.php';
19
+require_once CALENDAR_ROOT.'Month/Weeks.php';
20 20
 
21 21
 define('CALENDAR_MONTH_STATE', CALENDAR_USE_MONTH_WEEKS);
22 22
 
@@ -123,20 +123,20 @@  discard block
 block discarded – undo
123 123
         }
124 124
 
125 125
         echo "<td>\n<table class=\"month\">\n";
126
-        echo '<caption class="month">' . date('F', $Month->thisMonth(true)) . '</caption>';
127
-        echo '<colgroup><col class="weekNumbers"><col span="7"></colgroup>' . "\n";
126
+        echo '<caption class="month">'.date('F', $Month->thisMonth(true)).'</caption>';
127
+        echo '<colgroup><col class="weekNumbers"><col span="7"></colgroup>'."\n";
128 128
         echo "<tr>\n<th>Week</th><th>M</th><th>T</th><th>W</th><th>T</th><th>F</th><th>S</th><th>S</th>\n</tr>";
129 129
         $Month->build();
130 130
         while ($Week = $Month->fetch()) {
131 131
             echo "<tr>\n";
132
-            echo '<td>' . $Week->thisWeek($_GET['week_type']) . "</td>\n";
132
+            echo '<td>'.$Week->thisWeek($_GET['week_type'])."</td>\n";
133 133
             $Week->build();
134 134
 
135 135
             while ($Day = $Week->fetch()) {
136 136
                 if ($Day->isEmpty()) {
137 137
                     echo "<td>&nbsp;</td>\n";
138 138
                 } else {
139
-                    echo '<td>' . $Day->thisDay() . "</td>\n";
139
+                    echo '<td>'.$Day->thisDay()."</td>\n";
140 140
                 }
141 141
             }
142 142
         }
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/10.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@  discard block
 block discarded – undo
9 9
 if (!@include 'Calendar/Calendar.php') {
10 10
     define('CALENDAR_ROOT', '../../');
11 11
 }
12
-require_once CALENDAR_ROOT . 'Month/Weekdays.php';
13
-require_once CALENDAR_ROOT . 'Decorator.php';
12
+require_once CALENDAR_ROOT.'Month/Weekdays.php';
13
+require_once CALENDAR_ROOT.'Decorator.php';
14 14
 
15 15
 // Decorate a Month with methods to improve formatting
16 16
 /**
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     {
35 35
         $prevStamp = parent::prevMonth(true);
36 36
         // Build the URL for the previous month
37
-        return $_SERVER['PHP_SELF'] . '?y=' . date('Y', $prevStamp) . '&m=' . date('n', $prevStamp) . '&d=' . date('j', $prevStamp);
37
+        return $_SERVER['PHP_SELF'].'?y='.date('Y', $prevStamp).'&m='.date('n', $prevStamp).'&d='.date('j', $prevStamp);
38 38
     }
39 39
 
40 40
     /**
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     {
55 55
         $nextStamp = parent::nextMonth(true);
56 56
         // Build the URL for next month
57
-        return $_SERVER['PHP_SELF'] . '?y=' . date('Y', $nextStamp) . '&m=' . date('n', $nextStamp) . '&d=' . date('j', $nextStamp);
57
+        return $_SERVER['PHP_SELF'].'?y='.date('Y', $nextStamp).'&m='.date('n', $nextStamp).'&d='.date('j', $nextStamp);
58 58
     }
59 59
 }
60 60
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         if ($Day->isEmpty()) {
91 91
             echo('<td>&nbsp;</td>');
92 92
         } else {
93
-            echo('<td>' . $Day->thisDay() . '</td>');
93
+            echo('<td>'.$Day->thisDay().'</td>');
94 94
         }
95 95
         if ($Day->isLast()) {
96 96
             echo("\n</tr>\n");
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/4.php 1 patch
Spacing   +5 added lines, -5 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();
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 if (!@include 'Calendar/Calendar.php') {
15 15
     define('CALENDAR_ROOT', '../../');
16 16
 }
17
-require_once CALENDAR_ROOT . 'Second.php';
17
+require_once CALENDAR_ROOT.'Second.php';
18 18
 
19 19
 if (!isset($_GET['y'])) {
20 20
     $_GET['y'] = date('Y');
@@ -37,14 +37,14 @@  discard block
 block discarded – undo
37 37
 
38 38
 $Unit = new Calendar_Second($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i'], $_GET['s']);
39 39
 
40
-echo '<p><b>Result:</b> ' . $Unit->thisYear() . '-' . $Unit->thisMonth() . '-' . $Unit->thisDay() . ' ' . $Unit->thisHour() . ':' . $Unit->thisMinute() . ':' . $Unit->thisSecond();
40
+echo '<p><b>Result:</b> '.$Unit->thisYear().'-'.$Unit->thisMonth().'-'.$Unit->thisDay().' '.$Unit->thisHour().':'.$Unit->thisMinute().':'.$Unit->thisSecond();
41 41
 if ($Unit->isValid()) {
42 42
     echo ' is valid!</p>';
43 43
 } else {
44 44
     $V = &$Unit->getValidator();
45 45
     echo ' is invalid:</p>';
46 46
     while ($error = $V->fetch()) {
47
-        echo $error->toString() . '<br />';
47
+        echo $error->toString().'<br />';
48 48
     }
49 49
 }
50 50
 ?>
@@ -60,4 +60,4 @@  discard block
 block discarded – undo
60 60
     </form>
61 61
     <p><b>Note:</b> Error messages can be controlled with the constants <code>CALENDAR_VALUE_TOOSMALL</code> and <code>CALENDAR_VALUE_TOOLARGE</code> - see <code>Calendar_Validator.php</code></p>
62 62
 
63
-<?php echo '<p><b>Took: ' . (getmicrotime() - $start) . ' seconds</b></p>';
63
+<?php echo '<p><b>Took: '.(getmicrotime() - $start).' seconds</b></p>';
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/16.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@  discard block
 block discarded – undo
5 5
 if (!@include 'Calendar/Calendar.php') {
6 6
     define('CALENDAR_ROOT', '../../');
7 7
 }
8
-require_once CALENDAR_ROOT . 'Month/Weekdays.php';
9
-require_once CALENDAR_ROOT . 'Decorator/Uri.php';
8
+require_once CALENDAR_ROOT.'Month/Weekdays.php';
9
+require_once CALENDAR_ROOT.'Decorator/Uri.php';
10 10
 
11 11
 if (!isset($_GET['jahr'])) {
12 12
     $_GET['jahr'] = date('Y');
@@ -18,17 +18,17 @@  discard block
 block discarded – undo
18 18
 // Build the month
19 19
 $Calendar = new Calendar_Month_Weekdays($_GET['jahr'], $_GET['monat']);
20 20
 
21
-echo('<p>The current month is ' . $Calendar->thisMonth() . ' of year ' . $Calendar->thisYear() . '</p>');
21
+echo('<p>The current month is '.$Calendar->thisMonth().' of year '.$Calendar->thisYear().'</p>');
22 22
 
23 23
 $Uri = new Calendar_Decorator_Uri($Calendar);
24 24
 $Uri->setFragments('jahr', 'monat');
25 25
 // $Uri->setSeperator('/'); // Default is &
26 26
 // $Uri->setScalar(); // Omit variable names
27
-echo("<pre>Previous Uri:\t" . $Uri->prev('month') . "\n");
28
-echo("This Uri:\t" . $Uri->this('month') . "\n");
29
-echo("Next Uri:\t" . $Uri->next('month') . "\n</pre>");
27
+echo("<pre>Previous Uri:\t".$Uri->prev('month')."\n");
28
+echo("This Uri:\t".$Uri->this('month')."\n");
29
+echo("Next Uri:\t".$Uri->next('month')."\n</pre>");
30 30
 ?>
31 31
 <p>
32
-    <a href="<?php echo($_SERVER['PHP_SELF'] . '?' . $Uri->prev('month')); ?>">Prev</a> :
33
-    <a href="<?php echo($_SERVER['PHP_SELF'] . '?' . $Uri->next('month')); ?>">Next</a>
32
+    <a href="<?php echo($_SERVER['PHP_SELF'].'?'.$Uri->prev('month')); ?>">Prev</a> :
33
+    <a href="<?php echo($_SERVER['PHP_SELF'].'?'.$Uri->next('month')); ?>">Next</a>
34 34
 </p>
Please login to merge, or discard this patch.