Code Duplication    Length = 8-8 lines in 3 locations

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

@@ 96-103 (lines=8) @@
93
    /**
94
     * @inheritdoc
95
     */
96
    public function removeModifierAt($position)
97
    {
98
        if (!array_key_exists($position, $this->modifiers)) {
99
            throw new \OutOfBoundsException(sprintf('There is no modifier at position %d', $position));
100
        }
101
102
        unset($this->modifiers[$position]);
103
    }
104
105
    /**
106
     * @inheritdoc

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

@@ 102-109 (lines=8) @@
99
    /**
100
     * @inheritdoc
101
     */
102
    public function removeModifierAt($position)
103
    {
104
        if (!array_key_exists($position, $this->modifiers)) {
105
            throw new \OutOfBoundsException(sprintf('There is no modifier at position %d', $position));
106
        }
107
108
        unset($this->modifiers[$position]);
109
    }
110
111
    /**
112
     * @inheritdoc

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

@@ 158-165 (lines=8) @@
155
     *
156
     * @throws \OutOfBoundsException If modifier does not exist
157
     */
158
    public function removeModifierAt($position)
159
    {
160
        if (!array_key_exists($position, $this->modifiers)) {
161
            throw new \OutOfBoundsException(sprintf('There is no modifier at position %d', $position));
162
        }
163
164
        unset($this->modifiers[$position]);
165
    }
166
167
    /**
168
     * @inheritdoc