From d275e1ad848e233be808a2d967cfa6f88118a778 Mon Sep 17 00:00:00 2001 From: ThibautSF Date: Mon, 7 Dec 2020 14:25:48 +0100 Subject: [PATCH] Apply #1892 modifications & Coding style CI - Remove _getBaseName() override - Remove an empty line in constructor --- src/Processor/ForeachProcessor.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/Processor/ForeachProcessor.php b/src/Processor/ForeachProcessor.php index cbb539bc62..49c7dab64c 100644 --- a/src/Processor/ForeachProcessor.php +++ b/src/Processor/ForeachProcessor.php @@ -13,7 +13,6 @@ class ForeachProcessor extends AbstractProcessor { public const DEFAULT_IGNORE_MISSING_VALUE = false; - protected const PROCESSOR_NAME = 'foreach'; /** * @param AbstractProcessor|array $processor @@ -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))); - } } @@ -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; - } }