Skip to content

Commit 4767298

Browse files
localheinzsebastianbergmann
authored andcommitted
Fix: Run 'php-cs-fixer fix'
1 parent a805d5d commit 4767298

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/Framework/Exception/InvalidArgumentException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static function create(int $argument, string $type): self
2424
$argument,
2525
$stack[1]['class'],
2626
$stack[1]['function'],
27-
\in_array(\lcfirst($type)[0], ['a', 'e', 'i', 'o', 'u']) ? 'an' : 'a',
27+
\in_array(\lcfirst($type)[0], ['a', 'e', 'i', 'o', 'u'], true) ? 'an' : 'a',
2828
$type
2929
)
3030
);

src/Util/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ private function getTestSuite(DOMElement $testSuiteNode, string $testSuiteFilter
981981
foreach ($testSuiteNode->getElementsByTagName('directory') as $directoryNode) {
982982
\assert($directoryNode instanceof DOMElement);
983983

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

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

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

src/Util/GlobalState.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static function processIncludedFilesAsString(array $files): string
5656
$file = $files[$i];
5757

5858
if (!empty($GLOBALS['__PHPUNIT_ISOLATION_BLACKLIST']) &&
59-
\in_array($file, $GLOBALS['__PHPUNIT_ISOLATION_BLACKLIST'])) {
59+
\in_array($file, $GLOBALS['__PHPUNIT_ISOLATION_BLACKLIST'], true)) {
6060
continue;
6161
}
6262

src/Util/TestDox/NamePrettifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public function prettifyTestMethod(string $name): string
165165

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

168-
if (\in_array($string, $this->strings)) {
168+
if (\in_array($string, $this->strings, true)) {
169169
$name = $string;
170170
} elseif ($count === 0) {
171171
$this->strings[] = $string;

src/Util/TestDox/ResultPrinter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ private function isOfInterest(Test $test): bool
316316

317317
if (!empty($this->groups)) {
318318
foreach ($test->getGroups() as $group) {
319-
if (\in_array($group, $this->groups)) {
319+
if (\in_array($group, $this->groups, true)) {
320320
return true;
321321
}
322322
}
@@ -326,7 +326,7 @@ private function isOfInterest(Test $test): bool
326326

327327
if (!empty($this->excludeGroups)) {
328328
foreach ($test->getGroups() as $group) {
329-
if (\in_array($group, $this->excludeGroups)) {
329+
if (\in_array($group, $this->excludeGroups, true)) {
330330
return false;
331331
}
332332
}

src/Util/VersionComparisonOperator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function asString(): string
4242
*/
4343
private function ensureOperatorIsValid(string $operator): void
4444
{
45-
if (!\in_array($operator, ['<', 'lt', '<=', 'le', '>', 'gt', '>=', 'ge', '==', '=', 'eq', '!=', '<>', 'ne'])) {
45+
if (!\in_array($operator, ['<', 'lt', '<=', 'le', '>', 'gt', '>=', 'ge', '==', '=', 'eq', '!=', '<>', 'ne'], true)) {
4646
throw new Exception(
4747
\sprintf(
4848
'"%s" is not a valid version_compare() operator',

0 commit comments

Comments
 (0)