Updated to pass codesniffer
This commit is contained in:
parent
6ecc4745f4
commit
9d99925615
6 changed files with 6 additions and 5 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -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/*
|
||||||
|
|
|
@ -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),
|
||||||
|
|
|
@ -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')],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ class UtilsDeTest extends UtilsTest
|
||||||
*/
|
*/
|
||||||
public function testIntlDateFormatter()
|
public function testIntlDateFormatter()
|
||||||
{
|
{
|
||||||
$this->assertTrue( class_exists('IntlDateFormatter') );
|
$this->assertTrue(class_exists('IntlDateFormatter'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -12,7 +12,7 @@ class UtilsEnTest extends UtilsTest
|
||||||
*/
|
*/
|
||||||
public function testIntlDateFormatter()
|
public function testIntlDateFormatter()
|
||||||
{
|
{
|
||||||
$this->assertTrue( class_exists('IntlDateFormatter') );
|
$this->assertTrue(class_exists('IntlDateFormatter'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -12,7 +12,7 @@ class UtilsFrTest extends UtilsTest
|
||||||
*/
|
*/
|
||||||
public function testIntlDateFormatter()
|
public function testIntlDateFormatter()
|
||||||
{
|
{
|
||||||
$this->assertTrue( class_exists('IntlDateFormatter') );
|
$this->assertTrue(class_exists('IntlDateFormatter'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue