Code Duplication    Length = 6-6 lines in 2 locations

lib/Compiler.php 2 locations

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