@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | */ |
| 28 | 28 | public function testFuture(bool $expected, $value, bool $orNow, bool $useMicroseconds): void |
| 29 | 29 | { |
| 30 | - if ($value instanceof \Closure) { |
|
| 30 | + if ($value instanceof \Closure){ |
|
| 31 | 31 | $value = $value(); |
| 32 | 32 | } |
| 33 | 33 | |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | */ |
| 42 | 42 | public function futureProvider(): array |
| 43 | 43 | { |
| 44 | - $future = static function () { |
|
| 44 | + $future = static function (){ |
|
| 45 | 45 | return time() + 10; |
| 46 | 46 | }; |
| 47 | 47 | |
@@ -182,25 +182,25 @@ discard block |
||
| 182 | 182 | public function validProvider(): array |
| 183 | 183 | { |
| 184 | 184 | return [ |
| 185 | - [true, time() - 10,], |
|
| 186 | - [true, time(),], |
|
| 187 | - [true, date('u'),], |
|
| 188 | - [true, time() + 10,], |
|
| 189 | - [true, '',], |
|
| 190 | - [true, 'tomorrow 10am',], |
|
| 191 | - [true, 'yesterday 10am',], |
|
| 192 | - [true, 'now',], |
|
| 193 | - [true, 'now + 10 seconds',], |
|
| 194 | - [true, 'now - 10 seconds',], |
|
| 195 | - [true, 0,], |
|
| 196 | - [true, 1.1,], |
|
| 197 | - [false, 'date',], |
|
| 198 | - [false, '~#@',], |
|
| 199 | - [false, false,], |
|
| 200 | - [false, true,], |
|
| 201 | - [false, null,], |
|
| 202 | - [false, [],], |
|
| 203 | - [false, new \stdClass(),], |
|
| 185 | + [true, time() - 10, ], |
|
| 186 | + [true, time(), ], |
|
| 187 | + [true, date('u'), ], |
|
| 188 | + [true, time() + 10, ], |
|
| 189 | + [true, '', ], |
|
| 190 | + [true, 'tomorrow 10am', ], |
|
| 191 | + [true, 'yesterday 10am', ], |
|
| 192 | + [true, 'now', ], |
|
| 193 | + [true, 'now + 10 seconds', ], |
|
| 194 | + [true, 'now - 10 seconds', ], |
|
| 195 | + [true, 0, ], |
|
| 196 | + [true, 1.1, ], |
|
| 197 | + [false, 'date', ], |
|
| 198 | + [false, '~#@', ], |
|
| 199 | + [false, false, ], |
|
| 200 | + [false, true, ], |
|
| 201 | + [false, null, ], |
|
| 202 | + [false, [], ], |
|
| 203 | + [false, new \stdClass(), ], |
|
| 204 | 204 | ]; |
| 205 | 205 | } |
| 206 | 206 | |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | { |
| 209 | 209 | $checker = new DatetimeChecker(); |
| 210 | 210 | |
| 211 | - foreach (\DateTimeZone::listIdentifiers() as $identifier) { |
|
| 211 | + foreach (\DateTimeZone::listIdentifiers() as $identifier){ |
|
| 212 | 212 | $this->assertTrue($checker->timezone($identifier)); |
| 213 | 213 | $this->assertFalse($checker->timezone(str_rot13($identifier))); |
| 214 | 214 | } |
@@ -27,7 +27,8 @@ discard block |
||
| 27 | 27 | */ |
| 28 | 28 | public function testFuture(bool $expected, $value, bool $orNow, bool $useMicroseconds): void |
| 29 | 29 | { |
| 30 | - if ($value instanceof \Closure) { |
|
| 30 | + if ($value instanceof \Closure) |
|
| 31 | + { |
|
| 31 | 32 | $value = $value(); |
| 32 | 33 | } |
| 33 | 34 | |
@@ -41,7 +42,8 @@ discard block |
||
| 41 | 42 | */ |
| 42 | 43 | public function futureProvider(): array |
| 43 | 44 | { |
| 44 | - $future = static function () { |
|
| 45 | + $future = static function () |
|
| 46 | + { |
|
| 45 | 47 | return time() + 10; |
| 46 | 48 | }; |
| 47 | 49 | |
@@ -208,7 +210,8 @@ discard block |
||
| 208 | 210 | { |
| 209 | 211 | $checker = new DatetimeChecker(); |
| 210 | 212 | |
| 211 | - foreach (\DateTimeZone::listIdentifiers() as $identifier) { |
|
| 213 | + foreach (\DateTimeZone::listIdentifiers() as $identifier) |
|
| 214 | + { |
|
| 212 | 215 | $this->assertTrue($checker->timezone($identifier)); |
| 213 | 216 | $this->assertFalse($checker->timezone(str_rot13($identifier))); |
| 214 | 217 | } |