Skip to content

Commit

Permalink
Cs
Browse files Browse the repository at this point in the history
  • Loading branch information
gocom committed Jan 25, 2020
1 parent 1529b0b commit 4169293
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions test/Helper/Fixture.php
Expand Up @@ -111,16 +111,6 @@ public function isValid(): bool
return !empty($this->data);
}

/**
* Gets parser class.
*
* @return string
*/
public function getClass(): string
{
return $this->data['class'] ?? Parser::class;
}

/**
* Gets parser instance.
*
Expand All @@ -129,7 +119,7 @@ public function getClass(): string
private function getParser(): ParserInterface
{
if ($this->parser === null) {
$class = $this->getClass();
$class = $this->data['class'] ?? Parser::class;

// phpcs:ignore
$parser = new $class;
Expand Down

0 comments on commit 4169293

Please sign in to comment.