Skip to content

Commit

Permalink
Fix: Run 'php-cs-fixer fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz authored and sebastianbergmann committed Jul 3, 2020
1 parent a805d5d commit 4767298
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Framework/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static function create(int $argument, string $type): self
$argument,
$stack[1]['class'],
$stack[1]['function'],
\in_array(\lcfirst($type)[0], ['a', 'e', 'i', 'o', 'u']) ? 'an' : 'a',
\in_array(\lcfirst($type)[0], ['a', 'e', 'i', 'o', 'u'], true) ? 'an' : 'a',
$type
)
);
Expand Down
4 changes: 2 additions & 2 deletions src/Util/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ private function getTestSuite(DOMElement $testSuiteNode, string $testSuiteFilter
foreach ($testSuiteNode->getElementsByTagName('directory') as $directoryNode) {
\assert($directoryNode instanceof DOMElement);

if (!empty($testSuiteFilter) && !\in_array($directoryNode->parentNode->getAttribute('name'), $testSuiteFilter)) {
if (!empty($testSuiteFilter) && !\in_array($directoryNode->parentNode->getAttribute('name'), $testSuiteFilter, true)) {
continue;
}

Expand All @@ -1008,7 +1008,7 @@ private function getTestSuite(DOMElement $testSuiteNode, string $testSuiteFilter
foreach ($testSuiteNode->getElementsByTagName('file') as $fileNode) {
\assert($fileNode instanceof DOMElement);

if (!empty($testSuiteFilter) && !\in_array($fileNode->parentNode->getAttribute('name'), $testSuiteFilter)) {
if (!empty($testSuiteFilter) && !\in_array($fileNode->parentNode->getAttribute('name'), $testSuiteFilter, true)) {
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Util/GlobalState.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static function processIncludedFilesAsString(array $files): string
$file = $files[$i];

if (!empty($GLOBALS['__PHPUNIT_ISOLATION_BLACKLIST']) &&
\in_array($file, $GLOBALS['__PHPUNIT_ISOLATION_BLACKLIST'])) {
\in_array($file, $GLOBALS['__PHPUNIT_ISOLATION_BLACKLIST'], true)) {
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Util/TestDox/NamePrettifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public function prettifyTestMethod(string $name): string

$string = (string) \preg_replace('#\d+$#', '', $name, -1, $count);

if (\in_array($string, $this->strings)) {
if (\in_array($string, $this->strings, true)) {
$name = $string;
} elseif ($count === 0) {
$this->strings[] = $string;
Expand Down
4 changes: 2 additions & 2 deletions src/Util/TestDox/ResultPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ private function isOfInterest(Test $test): bool

if (!empty($this->groups)) {
foreach ($test->getGroups() as $group) {
if (\in_array($group, $this->groups)) {
if (\in_array($group, $this->groups, true)) {
return true;
}
}
Expand All @@ -326,7 +326,7 @@ private function isOfInterest(Test $test): bool

if (!empty($this->excludeGroups)) {
foreach ($test->getGroups() as $group) {
if (\in_array($group, $this->excludeGroups)) {
if (\in_array($group, $this->excludeGroups, true)) {
return false;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Util/VersionComparisonOperator.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function asString(): string
*/
private function ensureOperatorIsValid(string $operator): void
{
if (!\in_array($operator, ['<', 'lt', '<=', 'le', '>', 'gt', '>=', 'ge', '==', '=', 'eq', '!=', '<>', 'ne'])) {
if (!\in_array($operator, ['<', 'lt', '<=', 'le', '>', 'gt', '>=', 'ge', '==', '=', 'eq', '!=', '<>', 'ne'], true)) {
throw new Exception(
\sprintf(
'"%s" is not a valid version_compare() operator',
Expand Down

0 comments on commit 4767298

Please sign in to comment.