Updated to pass codesniffer

This commit is contained in:
Keith Carangelo 2022-03-31 16:01:55 -04:00
parent 6ecc4745f4
commit 9d99925615
6 changed files with 6 additions and 5 deletions

1
.gitignore vendored
View file

@ -25,6 +25,7 @@ coverage
sandbox sandbox
phpmd.html phpmd.html
phpdoc.xml phpdoc.xml
.phpunit.result.cache
# User plugin configuration # User plugin configuration
plugins/* plugins/*

View file

@ -318,7 +318,7 @@ function format_date($date, $time = true, $intl = true)
if ($time) { if ($time) {
$format .= ' h:i:s A \G\M\TP'; $format .= ' h:i:s A \G\M\TP';
} }
return $date->format( $format ); return $date->format($format);
} }
$formatter = new IntlDateFormatter( $formatter = new IntlDateFormatter(
setlocale(LC_TIME, 0), setlocale(LC_TIME, 0),

View file

@ -258,7 +258,7 @@ public function getStartDatesByType(): array
return [ return [
[DailyPageHelper::DAY, new DateTimeImmutable('2020-10-09 04:05:06'), new DateTime('2020-10-09 00:00:00')], [DailyPageHelper::DAY, new DateTimeImmutable('2020-10-09 04:05:06'), new DateTime('2020-10-09 00:00:00')],
[DailyPageHelper::WEEK, new DateTimeImmutable('2020-10-09 04:05:06'), new DateTime('2020-10-05 00:00:00')], [DailyPageHelper::WEEK, new DateTimeImmutable('2020-10-09 04:05:06'), new DateTime('2020-10-05 00:00:00')],
[DailyPageHelper::MONTH, new DateTimeImmutable('2022-03-30 04:05:06'), new DateTime('2022-03-01 00:00:00')], [DailyPageHelper::MONTH, new DateTimeImmutable('2022-03-30 04:05:06'), new DateTime('2022-03-01 00:00:00')],
]; ];
} }

View file

@ -12,7 +12,7 @@ class UtilsDeTest extends UtilsTest
*/ */
public function testIntlDateFormatter() public function testIntlDateFormatter()
{ {
$this->assertTrue( class_exists('IntlDateFormatter') ); $this->assertTrue(class_exists('IntlDateFormatter'));
} }
/** /**

View file

@ -12,7 +12,7 @@ class UtilsEnTest extends UtilsTest
*/ */
public function testIntlDateFormatter() public function testIntlDateFormatter()
{ {
$this->assertTrue( class_exists('IntlDateFormatter') ); $this->assertTrue(class_exists('IntlDateFormatter'));
} }
/** /**

View file

@ -12,7 +12,7 @@ class UtilsFrTest extends UtilsTest
*/ */
public function testIntlDateFormatter() public function testIntlDateFormatter()
{ {
$this->assertTrue( class_exists('IntlDateFormatter') ); $this->assertTrue(class_exists('IntlDateFormatter'));
} }
/** /**