@@ -49,7 +49,7 @@ discard block |
||
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 Month and builds Days |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | */ |
96 | 96 | public function build($sDates = []) |
97 | 97 | { |
98 | - require_once CALENDAR_ROOT . 'Day.php'; |
|
98 | + require_once CALENDAR_ROOT.'Day.php'; |
|
99 | 99 | $daysInMonth = $this->cE->getDaysInMonth($this->year, $this->month); |
100 | 100 | for ($i = 1; $i <= $daysInMonth; ++$i) { |
101 | 101 | $this->children[$i] = new Calendar_Day($this->year, $this->month, $i); |
@@ -49,7 +49,7 @@ discard block |
||
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 Minute and builds Seconds |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | */ |
96 | 96 | public function build($sDates = []) |
97 | 97 | { |
98 | - require_once CALENDAR_ROOT . 'Second.php'; |
|
98 | + require_once CALENDAR_ROOT.'Second.php'; |
|
99 | 99 | $sIM = $this->cE->getSecondsInMinute($this->year, $this->month, $this->day, $this->hour, $this->minute); |
100 | 100 | for ($i = 0; $i < $sIM; ++$i) { |
101 | 101 | $this->children[$i] = new Calendar_Second($this->year, $this->month, $this->day, $this->hour, $this->minute, $i); |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | && $this->day == $sDate->thisDay() |
122 | 122 | && $this->hour == $sDate->thisHour() |
123 | 123 | && $this->minute == $sDate->thisMinute()) { |
124 | - $key = (int)$sDate->thisSecond(); |
|
124 | + $key = (int) $sDate->thisSecond(); |
|
125 | 125 | if (isset($this->children[$key])) { |
126 | 126 | $sDate->setSelected(); |
127 | 127 | $this->children[$key] = $sDate; |
@@ -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 | Mock::generate('Calendar_Engine_Interface', 'Mock_Calendar_Engine'); |
8 | 8 | Mock::generate('Calendar_Second', 'Mock_Calendar_Second'); |
@@ -27,13 +27,13 @@ |
||
27 | 27 | public function testPrevDay_Array() |
28 | 28 | { |
29 | 29 | $this->assertEqual([ |
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() |
@@ -1,10 +1,10 @@ discard block |
||
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__ . '/./calendar_test.php'; |
|
7 | +require_once __DIR__.'/./calendar_test.php'; |
|
8 | 8 | |
9 | 9 | /** |
10 | 10 | * Class TestOfMinute. |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | |
112 | 112 | public function testSelection() |
113 | 113 | { |
114 | - require_once CALENDAR_ROOT . 'Second.php'; |
|
114 | + require_once CALENDAR_ROOT.'Second.php'; |
|
115 | 115 | $selection = [new Calendar_Second(2003, 10, 25, 13, 32, 43)]; |
116 | 116 | $this->cal->build($selection); |
117 | 117 | $i = 0; |
@@ -32,13 +32,13 @@ |
||
32 | 32 | public function testPrevDay_Array() |
33 | 33 | { |
34 | 34 | $this->assertEqual([ |
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() |
@@ -1,10 +1,10 @@ discard block |
||
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__ . '/./calendar_test.php'; |
|
7 | +require_once __DIR__.'/./calendar_test.php'; |
|
8 | 8 | |
9 | 9 | /** |
10 | 10 | * Class TestOfMonthWeeks. |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | */ |
148 | 148 | public function testSelection() |
149 | 149 | { |
150 | - require_once CALENDAR_ROOT . 'Week.php'; |
|
150 | + require_once CALENDAR_ROOT.'Week.php'; |
|
151 | 151 | $selection = [new Calendar_Week(2003, 10, 12)]; |
152 | 152 | $this->cal->build($selection); |
153 | 153 | $i = 1; |
@@ -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 | Mock::generate('Calendar_Engine_Interface', 'Mock_Calendar_Engine'); |
8 | 8 | Mock::generate('Calendar_Second', 'Mock_Calendar_Second'); |
@@ -1,10 +1,10 @@ discard block |
||
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 TestOfDecoratorTextual. |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | 5 => 'Fri', |
195 | 195 | 6 => 'Sat', |
196 | 196 | ]; |
197 | - $nShifts = CALENDAR_FIRST_DAY_OF_WEEK; |
|
197 | + $nShifts = CALENDAR_FIRST_DAY_OF_WEEK; |
|
198 | 198 | while ($nShifts-- > 0) { |
199 | 199 | $day = array_shift($weekdayNames); |
200 | 200 | array_push($weekdayNames, $day); |
@@ -71,13 +71,13 @@ |
||
71 | 71 | public function testPrevDay_Array() |
72 | 72 | { |
73 | 73 | $this->assertEqual([ |
74 | - 'year' => 2003, |
|
75 | - 'month' => 10, |
|
76 | - 'day' => 8, |
|
77 | - 'hour' => 0, |
|
78 | - 'minute' => 0, |
|
79 | - 'second' => 0, |
|
80 | - ], $this->cal->prevDay('array')); |
|
74 | + 'year' => 2003, |
|
75 | + 'month' => 10, |
|
76 | + 'day' => 8, |
|
77 | + 'hour' => 0, |
|
78 | + 'minute' => 0, |
|
79 | + 'second' => 0, |
|
80 | + ], $this->cal->prevDay('array')); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | public function testThisDay() |
@@ -2,10 +2,10 @@ discard block |
||
2 | 2 | // |
3 | 3 | define('CALENDAR_FIRST_DAY_OF_WEEK', 1); //force firstDay = monday |
4 | 4 | |
5 | -require_once __DIR__ . '/simple_include.php'; |
|
6 | -require_once __DIR__ . '/calendar_include.php'; |
|
5 | +require_once __DIR__.'/simple_include.php'; |
|
6 | +require_once __DIR__.'/calendar_include.php'; |
|
7 | 7 | |
8 | -require_once __DIR__ . '/./calendar_test.php'; |
|
8 | +require_once __DIR__.'/./calendar_test.php'; |
|
9 | 9 | |
10 | 10 | /** |
11 | 11 | * Class TestOfWeek. |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | |
313 | 313 | public function testSelection() |
314 | 314 | { |
315 | - require_once CALENDAR_ROOT . 'Day.php'; |
|
315 | + require_once CALENDAR_ROOT.'Day.php'; |
|
316 | 316 | $selection = [Calendar_Factory::create('Day', 2003, 10, 7)]; |
317 | 317 | $this->cal->build($selection); |
318 | 318 | $i = 1; |
@@ -327,7 +327,7 @@ discard block |
||
327 | 327 | |
328 | 328 | public function testSelectionCornerCase() |
329 | 329 | { |
330 | - require_once CALENDAR_ROOT . 'Day.php'; |
|
330 | + require_once CALENDAR_ROOT.'Day.php'; |
|
331 | 331 | $selectedDays = [ |
332 | 332 | Calendar_Factory::create('Day', 2003, 12, 29), |
333 | 333 | Calendar_Factory::create('Day', 2003, 12, 30), |
@@ -337,7 +337,7 @@ discard block |
||
337 | 337 | Calendar_Factory::create('Day', 2004, 01, 03), |
338 | 338 | Calendar_Factory::create('Day', 2004, 01, 04), |
339 | 339 | ]; |
340 | - $this->cal = Calendar_Factory::create('Week', 2003, 12, 31, 0); |
|
340 | + $this->cal = Calendar_Factory::create('Week', 2003, 12, 31, 0); |
|
341 | 341 | $this->cal->build($selectedDays); |
342 | 342 | while ($Day = $this->cal->fetch()) { |
343 | 343 | $this->assertTrue($Day->isSelected()); |
@@ -1,10 +1,10 @@ discard block |
||
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 TestOfUtilTextual. |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | 5 => 'Fri', |
217 | 217 | 6 => 'Sat', |
218 | 218 | ]; |
219 | - $nShifts = CALENDAR_FIRST_DAY_OF_WEEK; |
|
219 | + $nShifts = CALENDAR_FIRST_DAY_OF_WEEK; |
|
220 | 220 | while ($nShifts-- > 0) { |
221 | 221 | $day = array_shift($weekdayNames); |
222 | 222 | array_push($weekdayNames, $day); |