Code Duplication    Length = 7-7 lines in 2 locations

src/Adapters/Laravel/Commands/TestCommand.php 2 locations

@@ 137-143 (lines=7) @@
134
            /** @var \SimpleXMLElement $xml */
135
            $xml = simplexml_load_string((string) file_get_contents($file));
136
137
            if (is_iterable($xml->php->server)) {
138
                foreach ($xml->php->server as $env) {
139
                    if (isset($env['name'])) {
140
                        $envs[$env['name']->__toString()] = $env['value'] ? $env['value']->__toString() : false;
141
                    }
142
                }
143
            }
144
145
            if (is_iterable($xml->php->env)) {
146
                foreach ($xml->php->env as $env) {
@@ 145-151 (lines=7) @@
142
                }
143
            }
144
145
            if (is_iterable($xml->php->env)) {
146
                foreach ($xml->php->env as $env) {
147
                    if (isset($env['name'])) {
148
                        $envs[$env['name']->__toString()] = $env['value'] ? $env['value']->__toString() : false;
149
                    }
150
                }
151
            }
152
        }
153
154