Code Duplication    Length = 7-7 lines in 2 locations

sources/Php/ConfigGenerator.php 2 locations

@@ 81-87 (lines=7) @@
78
                } else {
79
                    $this->writeLine(sprintf('%s,', $value ? 'true' : 'false'));
80
                }
81
            } elseif (is_string($value)) {
82
                if (is_string($key)) {
83
                    $this->writeLine(sprintf("'%s' => '%s',", $key, $value));
84
                } else {
85
                    $this->writeLine(sprintf("'%s',", $value));
86
                }
87
            } elseif (is_array($value)) {
88
                if (is_string($key)) {
89
                    $this->writeLine(sprintf("'%s' => [", $key));
90
                } else {
@@ 97-103 (lines=7) @@
94
                $this->generateArray($value);
95
96
                $this->writeLine('],');
97
            } elseif ($value instanceof ClassName) {
98
                if (is_string($key)) {
99
                    $this->writeLine(sprintf("'%s' => %s,", $key, (string) $value));
100
                } else {
101
                    $this->writeLine(sprintf('%s,', (string) $value));
102
                }
103
            } else {
104
                if (is_string($key)) {
105
                    $this->writeLine(sprintf("'%s' => %s,", $key, $value));
106
                } else {