Code Duplication    Length = 11-11 lines in 2 locations

source/AbstractGenerator.php 2 locations

@@ 199-209 (lines=11) @@
196
     * @param null|string|LineGenerator|BlockGenerator $content
197
     * @return BlockGenerator
198
     */
199
    final protected function getBlockGenerator($content = null)
200
    {
201
        $block = clone $this->blockGenerator;
202
        $block->setIndention($this->getIndention());
203
204
        if (!is_null($content)) {
205
            $block->add($content);
206
        }
207
208
        return $block;
209
    }
210
211
    /**
212
     * @param null|string $content
@@ 215-225 (lines=11) @@
212
     * @param null|string $content
213
     * @return LineGenerator
214
     */
215
    final protected function getLineGenerator($content = null)
216
    {
217
        $line = clone $this->lineGenerator;
218
        $line->setIndention($this->getIndention());
219
220
        if (!is_null($content)) {
221
            $line->add($content);
222
        }
223
224
        return $line;
225
    }
226
227
    /**
228
     * @return array