Code Duplication    Length = 8-8 lines in 2 locations

src/HelloWordPl/SimpleEntityGeneratorBundle/Lib/Renderer.php 2 locations

@@ 485-492 (lines=8) @@
482
     * @return string
483
     * @throws RendererException
484
     */
485
    protected function addNewLineAfter($content)
486
    {
487
        if (false === is_string($content)) {
488
            throw new RendererException("Invalid string!");
489
        }
490
491
        return sprintf("%s\n", $content);
492
    }
493
494
    /**
495
     * Put new line before conent
@@ 501-508 (lines=8) @@
498
     * @return string
499
     * @throws RendererException
500
     */
501
    protected function addNewLineBefore($content)
502
    {
503
        if (false === is_string($content)) {
504
            throw new RendererException("Invalid string!");
505
        }
506
507
        return sprintf("\n%s", $content);
508
    }
509
510
    /**
511
     * @param \ArrayCollection $collection