@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | // |
| 3 | 3 | |
| 4 | -require_once __DIR__ . '/simple_include.php'; |
|
| 5 | -require_once __DIR__ . '/calendar_include.php'; |
|
| 4 | +require_once __DIR__.'/simple_include.php'; |
|
| 5 | +require_once __DIR__.'/calendar_include.php'; |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Class TestOfValidationError. |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | // |
| 3 | 3 | |
| 4 | -require_once __DIR__ . '/simple_include.php'; |
|
| 5 | -require_once __DIR__ . '/calendar_include.php'; |
|
| 4 | +require_once __DIR__.'/simple_include.php'; |
|
| 5 | +require_once __DIR__.'/calendar_include.php'; |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Class DecoratorTests. |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | // |
| 3 | 3 | |
| 4 | -require_once __DIR__ . '/simple_include.php'; |
|
| 5 | -require_once __DIR__ . '/calendar_include.php'; |
|
| 4 | +require_once __DIR__.'/simple_include.php'; |
|
| 5 | +require_once __DIR__.'/calendar_include.php'; |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Class ValidatorTests. |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | // |
| 3 | 3 | |
| 4 | -require_once __DIR__ . '/simple_include.php'; |
|
| 5 | -require_once __DIR__ . '/calendar_include.php'; |
|
| 4 | +require_once __DIR__.'/simple_include.php'; |
|
| 5 | +require_once __DIR__.'/calendar_include.php'; |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Class TableHelperTests. |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | // |
| 3 | 3 | |
| 4 | -require_once __DIR__ . '/simple_include.php'; |
|
| 5 | -require_once __DIR__ . '/calendar_include.php'; |
|
| 4 | +require_once __DIR__.'/simple_include.php'; |
|
| 5 | +require_once __DIR__.'/calendar_include.php'; |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Class CalendarTests. |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | // |
| 3 | 3 | |
| 4 | -require_once __DIR__ . '/simple_include.php'; |
|
| 5 | -require_once __DIR__ . '/calendar_include.php'; |
|
| 4 | +require_once __DIR__.'/simple_include.php'; |
|
| 5 | +require_once __DIR__.'/calendar_include.php'; |
|
| 6 | 6 | |
| 7 | -require_once __DIR__ . '/./decorator_test.php'; |
|
| 7 | +require_once __DIR__.'/./decorator_test.php'; |
|
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * Class TestOfDecoratorUri. |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | // |
| 3 | 3 | |
| 4 | -require_once __DIR__ . '/simple_include.php'; |
|
| 5 | -require_once __DIR__ . '/calendar_include.php'; |
|
| 4 | +require_once __DIR__.'/simple_include.php'; |
|
| 5 | +require_once __DIR__.'/calendar_include.php'; |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Class UtilTests. |
@@ -6,7 +6,7 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -124,20 +124,20 @@ discard block |
||
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | echo "<td>\n<table class=\"month\">\n"; |
| 127 | - echo '<caption class="month">' . date('F', $Month->thisMonth(true)) . '</caption>'; |
|
| 128 | - echo '<colgroup><col class="weekNumbers"><col span="7"></colgroup>' . "\n"; |
|
| 127 | + echo '<caption class="month">'.date('F', $Month->thisMonth(true)).'</caption>'; |
|
| 128 | + echo '<colgroup><col class="weekNumbers"><col span="7"></colgroup>'."\n"; |
|
| 129 | 129 | 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>"; |
| 130 | 130 | $Month->build(); |
| 131 | 131 | while ($Week = $Month->fetch()) { |
| 132 | 132 | echo "<tr>\n"; |
| 133 | - echo '<td>' . $Week->thisWeek($_GET['week_type']) . "</td>\n"; |
|
| 133 | + echo '<td>'.$Week->thisWeek($_GET['week_type'])."</td>\n"; |
|
| 134 | 134 | $Week->build(); |
| 135 | 135 | |
| 136 | 136 | while ($Day = $Week->fetch()) { |
| 137 | 137 | if ($Day->isEmpty()) { |
| 138 | 138 | echo "<td> </td>\n"; |
| 139 | 139 | } else { |
| 140 | - echo '<td>' . $Day->thisDay() . "</td>\n"; |
|
| 140 | + echo '<td>'.$Day->thisDay()."</td>\n"; |
|
| 141 | 141 | } |
| 142 | 142 | } |
| 143 | 143 | } |
@@ -6,7 +6,7 @@ discard block |
||
| 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 |
||
| 14 | 14 | if (!@include 'Calendar/Calendar.php') { |
| 15 | 15 | define('CALENDAR_ROOT', '../../'); |
| 16 | 16 | } |
| 17 | -require_once CALENDAR_ROOT . 'Week.php'; |
|
| 17 | +require_once CALENDAR_ROOT.'Week.php'; |
|
| 18 | 18 | |
| 19 | 19 | if (!isset($_GET['y'])) { |
| 20 | 20 | $_GET['y'] = date('Y'); |
@@ -42,19 +42,19 @@ discard block |
||
| 42 | 42 | </head> |
| 43 | 43 | <body> |
| 44 | 44 | <h1>Paging Weeks</h1> |
| 45 | -<h2>Week: <?php echo $Week->thisWeek() . ' ' . date('F Y', $Week->thisMonth(true)); ?></h2> |
|
| 45 | +<h2>Week: <?php echo $Week->thisWeek().' '.date('F Y', $Week->thisMonth(true)); ?></h2> |
|
| 46 | 46 | <?php |
| 47 | 47 | $Week->build(); |
| 48 | 48 | while ($Day = $Week->fetch()) { |
| 49 | - echo '<p>' . date('jS F', $Day->thisDay(true)) . "</p>\n"; |
|
| 49 | + echo '<p>'.date('jS F', $Day->thisDay(true))."</p>\n"; |
|
| 50 | 50 | } |
| 51 | 51 | $days = $Week->fetchAll(); |
| 52 | 52 | |
| 53 | 53 | $prevWeek = $Week->prevWeek('array'); |
| 54 | -$prevWeekLink = $_SERVER['PHP_SELF'] . '?y=' . $prevWeek['year'] . '&m=' . $prevWeek['month'] . '&d=' . $prevWeek['day']; |
|
| 54 | +$prevWeekLink = $_SERVER['PHP_SELF'].'?y='.$prevWeek['year'].'&m='.$prevWeek['month'].'&d='.$prevWeek['day']; |
|
| 55 | 55 | |
| 56 | 56 | $nextWeek = $Week->nextWeek('array'); |
| 57 | -$nextWeekLink = $_SERVER['PHP_SELF'] . '?y=' . $nextWeek['year'] . '&m=' . $nextWeek['month'] . '&d=' . $nextWeek['day']; |
|
| 57 | +$nextWeekLink = $_SERVER['PHP_SELF'].'?y='.$nextWeek['year'].'&m='.$nextWeek['month'].'&d='.$nextWeek['day']; |
|
| 58 | 58 | ?> |
| 59 | 59 | <p><a href="<?php echo $prevWeekLink; ?>"><<</a> | <a href="<?php echo $nextWeekLink; ?>">>></a></p> |
| 60 | 60 | </body> |