Passed
Push — master ( d2520f...3f8ec2 )
by Michael
02:50
created
class/pear/Calendar/tests/month_weeks_test.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
class/pear/Calendar/tests/helper_test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
class/pear/Calendar/tests/decorator_textual_test.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
class/pear/Calendar/tests/week_test.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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());
Please login to merge, or discard this patch.
class/pear/Calendar/tests/util_textual_test.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
class/pear/Calendar/tests/year_test.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
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 TestOfYear.
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 
184 184
     public function testSelection()
185 185
     {
186
-        require_once CALENDAR_ROOT . 'Month.php';
186
+        require_once CALENDAR_ROOT.'Month.php';
187 187
         $selection = [new Calendar_Month(2003, 10)];
188 188
         $this->cal->build($selection);
189 189
         $i = 1;
Please login to merge, or discard this patch.
class/pear/Calendar/tests/hour_test.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
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 TestOfHour.
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 
117 117
     public function testSelection()
118 118
     {
119
-        require_once CALENDAR_ROOT . 'Minute.php';
119
+        require_once CALENDAR_ROOT.'Minute.php';
120 120
         $selection = [new Calendar_Minute(2003, 10, 25, 13, 32)];
121 121
         $this->cal->build($selection);
122 122
         $i = 0;
Please login to merge, or discard this patch.
class/pear/Calendar/tests/week_firstday_0_test.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@  discard block
 block discarded – undo
2 2
 //
3 3
 define('CALENDAR_FIRST_DAY_OF_WEEK', 0); //force firstDay = Sunday
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_firstday_0.
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
 
276 276
     public function testSelection()
277 277
     {
278
-        require_once CALENDAR_ROOT . 'Day.php';
278
+        require_once CALENDAR_ROOT.'Day.php';
279 279
         $selection = [Calendar_Factory::create('Day', 2003, 10, 6)];
280 280
         $this->cal->build($selection);
281 281
         $i = 1;
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
 
291 291
     public function testSelectionCornerCase()
292 292
     {
293
-        require_once CALENDAR_ROOT . 'Day.php';
293
+        require_once CALENDAR_ROOT.'Day.php';
294 294
         $selectedDays = [
295 295
             Calendar_Factory::create('Day', 2003, 12, 28),
296 296
             Calendar_Factory::create('Day', 2003, 12, 29),
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
             Calendar_Factory::create('Day', 2004, 01, 02),
301 301
             Calendar_Factory::create('Day', 2004, 01, 03),
302 302
         ];
303
-        $this->cal    = Calendar_Factory::create('Week', 2003, 12, 31, 0);
303
+        $this->cal = Calendar_Factory::create('Week', 2003, 12, 31, 0);
304 304
         $this->cal->build($selectedDays);
305 305
         while ($Day = $this->cal->fetch()) {
306 306
             $this->assertTrue($Day->isSelected());
Please login to merge, or discard this patch.
class/pear/Calendar/tests/month_test.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
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 TestOfMonth.
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 
152 152
     public function testSelection()
153 153
     {
154
-        require_once CALENDAR_ROOT . 'Day.php';
154
+        require_once CALENDAR_ROOT.'Day.php';
155 155
         $selection = [new Calendar_Day(2003, 10, 25)];
156 156
         $this->cal->build($selection);
157 157
         $i = 1;
Please login to merge, or discard this patch.