Code Duplication    Length = 3-3 lines in 2 locations

src/PropertyGenerator.php 1 location

@@ 66-68 (lines=3) @@
63
            . ';';
64
65
        // Add comments
66
        if (array_key_exists(CommentsGenerator::class, $this->generatedCode)) {
67
            $code = $this->generatedCode[CommentsGenerator::class] . "\n" . $code;
68
        }
69
70
        return $code;
71
    }

src/ClassConstantGenerator.php 1 location

@@ 26-28 (lines=3) @@
23
            . ';';
24
25
        // Add comments
26
        if (array_key_exists(CommentsGenerator::class, $this->generatedCode)) {
27
            $code = $this->generatedCode[CommentsGenerator::class] . "\n" . $code;
28
        }
29
30
        return $code;
31
    }