Code Duplication    Length = 7-7 lines in 2 locations

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

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