Code Duplication    Length = 7-7 lines in 2 locations

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

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