Code Duplication    Length = 8-8 lines in 2 locations

Lib/Renderer.php 2 locations

@@ 505-512 (lines=8) @@
502
     * @return string
503
     * @throws RendererException
504
     */
505
    protected function addNewLineAfter($content)
506
    {
507
        if (false === is_string($content)) {
508
            throw new RendererException("Invalid string!");
509
        }
510
511
        return sprintf("%s\n", $content);
512
    }
513
514
    /**
515
     * Put new line before conent
@@ 521-528 (lines=8) @@
518
     * @return string
519
     * @throws RendererException
520
     */
521
    protected function addNewLineBefore($content)
522
    {
523
        if (false === is_string($content)) {
524
            throw new RendererException("Invalid string!");
525
        }
526
527
        return sprintf("\n%s", $content);
528
    }
529
530
    /**
531
     * @param ArrayCollection $collection