@@ -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. |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | /** |
| 50 | 50 | * Load Calendar base class. |
| 51 | 51 | */ |
| 52 | -require_once CALENDAR_ROOT . 'Calendar.php'; |
|
| 52 | +require_once CALENDAR_ROOT.'Calendar.php'; |
|
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | 55 | * Represents a Second<br> |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | public function __construct(&$calendar) |
| 82 | 82 | { |
| 83 | - $this->calendar =& $calendar; |
|
| 83 | + $this->calendar = & $calendar; |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
@@ -403,8 +403,8 @@ discard block |
||
| 403 | 403 | if (method_exists($this->calendar, 'prevWeek')) { |
| 404 | 404 | return $this->calendar->prevWeek($format); |
| 405 | 405 | } else { |
| 406 | - require_once __DIR__ . '/PEAR.php'; |
|
| 407 | - PEAR::raiseError('Cannot call prevWeek on Calendar object of type: ' . get_class($this->calendar), 133, PEAR_ERROR_TRIGGER, E_USER_NOTICE, 'Calendar_Decorator::prevWeek()'); |
|
| 406 | + require_once __DIR__.'/PEAR.php'; |
|
| 407 | + PEAR::raiseError('Cannot call prevWeek on Calendar object of type: '.get_class($this->calendar), 133, PEAR_ERROR_TRIGGER, E_USER_NOTICE, 'Calendar_Decorator::prevWeek()'); |
|
| 408 | 408 | |
| 409 | 409 | return false; |
| 410 | 410 | } |
@@ -422,8 +422,8 @@ discard block |
||
| 422 | 422 | if (method_exists($this->calendar, 'thisWeek')) { |
| 423 | 423 | return $this->calendar->thisWeek($format); |
| 424 | 424 | } else { |
| 425 | - require_once __DIR__ . '/PEAR.php'; |
|
| 426 | - PEAR::raiseError('Cannot call thisWeek on Calendar object of type: ' . get_class($this->calendar), 133, PEAR_ERROR_TRIGGER, E_USER_NOTICE, 'Calendar_Decorator::thisWeek()'); |
|
| 425 | + require_once __DIR__.'/PEAR.php'; |
|
| 426 | + PEAR::raiseError('Cannot call thisWeek on Calendar object of type: '.get_class($this->calendar), 133, PEAR_ERROR_TRIGGER, E_USER_NOTICE, 'Calendar_Decorator::thisWeek()'); |
|
| 427 | 427 | |
| 428 | 428 | return false; |
| 429 | 429 | } |
@@ -441,8 +441,8 @@ discard block |
||
| 441 | 441 | if (method_exists($this->calendar, 'nextWeek')) { |
| 442 | 442 | return $this->calendar->nextWeek($format); |
| 443 | 443 | } else { |
| 444 | - require_once __DIR__ . '/PEAR.php'; |
|
| 445 | - PEAR::raiseError('Cannot call thisWeek on Calendar object of type: ' . get_class($this->calendar), 133, PEAR_ERROR_TRIGGER, E_USER_NOTICE, 'Calendar_Decorator::nextWeek()'); |
|
| 444 | + require_once __DIR__.'/PEAR.php'; |
|
| 445 | + PEAR::raiseError('Cannot call thisWeek on Calendar object of type: '.get_class($this->calendar), 133, PEAR_ERROR_TRIGGER, E_USER_NOTICE, 'Calendar_Decorator::nextWeek()'); |
|
| 446 | 446 | |
| 447 | 447 | return false; |
| 448 | 448 | } |
@@ -50,12 +50,12 @@ discard block |
||
| 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 |
||
| 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 | /** |
@@ -50,12 +50,12 @@ |
||
| 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 |
@@ -50,7 +50,7 @@ |
||
| 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. |
@@ -50,12 +50,12 @@ |
||
| 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> |