Permalink
Browse files

Fix CS/WS issues

  • Loading branch information...
sebastianbergmann committed Feb 8, 2019
1 parent 6510a26 commit da52049c9e163a28b56bf5a549c52d45b5fd58b6
Showing with 7 additions and 6 deletions.
  1. +7 −6 src/Framework/TestCase.php
@@ -448,7 +448,8 @@ public function count(): int
/**
* @return string[]
*/
public function doubledTypes(): array {
public function doubledTypes(): array
{
return \array_unique($this->doubledTypes);
}
@@ -792,7 +793,7 @@ public function run(TestResult $result = null): TestResult
'isStrictAboutResourceUsageDuringSmallTests' => $isStrictAboutResourceUsageDuringSmallTests,
'codeCoverageFilter' => $codeCoverageFilter,
'configurationFilePath' => $configurationFilePath,
'name' => $this->getName(false)
'name' => $this->getName(false),
];
if (!$runEntireClass) {
@@ -1578,7 +1579,7 @@ protected function getObjectForTrait($traitName, array $arguments = [], $traitCl
*/
protected function prophesize($classOrInterface = null): ObjectProphecy
{
if (is_string($classOrInterface)) {
if (\is_string($classOrInterface)) {
$this->recordDoubledType($classOrInterface);
}
@@ -2195,13 +2196,13 @@ private function runInSeparateProcess(): bool
*/
private function recordDoubledType($originalClassName): void
{
if (is_string($originalClassName)) {
if (\is_string($originalClassName)) {
$this->doubledTypes[] = $originalClassName;
}
if (is_array($originalClassName)) {
if (\is_array($originalClassName)) {
foreach ($originalClassName as $_originalClassName) {
if (is_string($_originalClassName)) {
if (\is_string($_originalClassName)) {
$this->doubledTypes[] = $_originalClassName;
}
}

0 comments on commit da52049

Please sign in to comment.