Skip to content

Commit

Permalink
Apply #1892 modifications & Coding style CI
Browse files Browse the repository at this point in the history
- Remove _getBaseName() override
- Remove an empty line in constructor
  • Loading branch information
ThibautSF committed Dec 7, 2020
1 parent 878ad5f commit 4369fe9
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/Processor/ForeachProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
class ForeachProcessor extends AbstractProcessor
{
public const DEFAULT_IGNORE_MISSING_VALUE = false;
protected const PROCESSOR_NAME = 'foreach';

/**
* @param AbstractProcessor|array $processor
Expand All @@ -28,7 +27,6 @@ public function __construct(string $field, $processor)
$this->setRawProcessor($processor);
} else {
throw new \TypeError(\sprintf('Argument 2 passed to %s::__construct() must be of type %s|array, %s given.', self::class, AbstractProcessor::class, \is_object($processor) ? \get_class($processor) : \gettype($processor)));

}
}

Expand Down Expand Up @@ -76,16 +74,4 @@ public function setIgnoreMissing(bool $ignoreMissing): self
{
return $this->setParam('ignore_missing', $ignoreMissing);
}

/**
* Param's name
* Picks the last part of the class name and makes it snake_case
* You can override this method if you want to change the name.
*
* @return string name
*/
protected function _getBaseName()
{
return self::PROCESSOR_NAME;
}
}

0 comments on commit 4369fe9

Please sign in to comment.