Code Duplication    Length = 6-6 lines in 2 locations

lib/Compiler.php 2 locations

@@ 233-238 (lines=6) @@
230
        $stub[] = "Phar::mapPhar('$name');";
231
        $stub[] = "if (PHP_SAPI == 'cli') {";
232
233
        if (isset($this->index['cli'])) {
234
            $file = $this->index['cli'][0];
235
            $stub[] = " require 'phar://$name/$file';";
236
        } else {
237
            $stub[] = " exit('This program can not be invoked via the CLI version of PHP, use the Web interface instead.'.PHP_EOL);";
238
        }
239
240
        $stub[] = '} else {';
241
@@ 242-247 (lines=6) @@
239
240
        $stub[] = '} else {';
241
242
        if (isset($this->index['web'])) {
243
            $file = $this->index['web'][0];
244
            $stub[] = " require 'phar://$name/$file';";
245
        } else {
246
            $stub[] = " exit('This program can not be invoked via the Web interface, use the CLI version of PHP instead.'.PHP_EOL);";
247
        }
248
249
        $stub[] = '}';
250
        $stub[] = '__HALT_COMPILER();';