Code Duplication    Length = 6-6 lines in 2 locations

src/Compiler.php 2 locations

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