Code Duplication    Length = 4-4 lines in 2 locations

src/Tokens/Elements/Element.php 1 location

@@ 357-360 (lines=4) @@
354
            return $output;
355
        }
356
357
        foreach ($this->children as $child) {
358
            $newPrefix = $prefix . str_repeat(' ', $configuration->get('indent-spaces'));
359
            $output .= $child->toString($configuration, $newPrefix, $suffix);
360
        }
361
362
        return $output . $prefix . '</' . $this->name . '>' . $suffix;
363
    }

src/Tokens/Elements/OpenElement.php 1 location

@@ 16-19 (lines=4) @@
13
        }
14
15
        $output = $this->toStringTag($configuration, $prefix, $suffix, true);
16
        foreach ($this->getChildren() as $child) {
17
            $newPrefix = $prefix . str_repeat(' ', $configuration->get('indent-spaces'));
18
            $output .= $child->toString($configuration, $newPrefix, $suffix);
19
        }
20
21
        return $output . $prefix . '</' . $this->getName() . '>' . $suffix;
22
    }