Code Duplication    Length = 11-11 lines in 2 locations

src/ClientConfiguration.php 2 locations

@@ 92-102 (lines=11) @@
89
            throw new FunctionNotSupportedException($dsnString, $func->getName());
90
        }
91
92
        foreach ($func->getParameters() as $optionName => $optionValue) {
93
            if ('false' === $optionValue) {
94
                $optionValue = false;
95
            } elseif ('true' === $optionValue) {
96
                $optionValue = true;
97
            } elseif (\is_numeric($optionValue)) {
98
                $optionValue = (int)$optionValue;
99
            }
100
101
            $clientConfiguration->set($optionName, $optionValue);
102
        }
103
104
        return $clientConfiguration;
105
    }
@@ 135-145 (lines=11) @@
132
            $data['path'] = $dsn->getPath();
133
        }
134
135
        foreach ($dsn->getParameters() as $optionName => $optionValue) {
136
            if ('false' === $optionValue) {
137
                $optionValue = false;
138
            } elseif ('true' === $optionValue) {
139
                $optionValue = true;
140
            } elseif (\is_numeric($optionValue)) {
141
                $optionValue = (int) $optionValue;
142
            }
143
144
            $data[$optionName] = $optionValue;
145
        }
146
147
        return $data;
148
    }