Code Duplication    Length = 11-11 lines in 2 locations

src/eXpansion/Framework/Gui/Layouts/LayoutLine.php 1 location

@@ 181-191 (lines=11) @@
178
     *
179
     * @return ScriptFeature[]
180
     */
181
    public function getScriptFeatures()
182
    {
183
        $features = [];
184
        foreach ($this->elements as $element) {
185
            if ($element instanceof ScriptFeatureable) {
186
                $features[] = $element->getScriptFeatures();
187
            }
188
        }
189
190
        return ScriptFeature::collect($features);
191
    }
192
193
    /**
194
     * @param mixed $startX

src/eXpansion/Framework/Gui/Layouts/LayoutRow.php 1 location

@@ 174-184 (lines=11) @@
171
     *
172
     * @return ScriptFeature[]
173
     */
174
    public function getScriptFeatures()
175
    {
176
        $features = [];
177
        foreach ($this->elements as $element) {
178
            if ($element instanceof ScriptFeatureable) {
179
                $features[] = $element->getScriptFeatures();
180
            }
181
        }
182
183
        return ScriptFeature::collect($features);
184
    }
185
186
    /**
187
     * @return mixed