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

@ -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'));
} }
/** /**