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
    }
@@ 199-209 (lines=11) @@
196
            $data['path'] = $dsn->getPath();
197
        }
198
199
        foreach ($dsn->getParameters() as $optionName => $optionValue) {
200
            if ('false' === $optionValue) {
201
                $optionValue = false;
202
            } elseif ('true' === $optionValue) {
203
                $optionValue = true;
204
            } elseif (\is_numeric($optionValue)) {
205
                $optionValue = (int) $optionValue;
206
            }
207
208
            $data[$optionName] = $optionValue;
209
        }
210
211
        return $data;
212
    }