Code Duplication    Length = 8-10 lines in 3 locations

src/TreeHouse/IoBundle/Import/Feed/FeedBuilder.php 1 location

@@ 84-91 (lines=8) @@
81
    /**
82
     * @inheritdoc
83
     */
84
    public function removeModifier(ModifierInterface $modifier)
85
    {
86
        foreach ($this->modifiers as $position => list($mod)) {
87
            if ($mod === $modifier) {
88
                unset($this->modifiers[$position]);
89
            }
90
        }
91
    }
92
93
    /**
94
     * @inheritdoc

src/TreeHouse/IoBundle/Scrape/Parser/DefaultParser.php 1 location

@@ 88-97 (lines=10) @@
85
    /**
86
     * @param ModifierInterface $modifier
87
     */
88
    public function removeModifier(ModifierInterface $modifier)
89
    {
90
        foreach ($this->modifiers as $position => $_modifier) {
91
            if ($_modifier === $modifier) {
92
                unset($this->modifiers[$position]);
93
94
                break;
95
            }
96
        }
97
    }
98
99
    /**
100
     * @inheritdoc

src/TreeHouse/IoBundle/Scrape/Parser/ParserBuilder.php 1 location

@@ 142-149 (lines=8) @@
139
     *
140
     * @param ModifierInterface $modifier
141
     */
142
    public function removeModifier(ModifierInterface $modifier)
143
    {
144
        foreach ($this->modifiers as $position => list($mod)) {
145
            if ($mod === $modifier) {
146
                unset($this->modifiers[$position]);
147
            }
148
        }
149
    }
150
151
    /**
152
     * Removes modifier at an existing position.