Code Duplication    Length = 3-3 lines in 2 locations

src/Runner.php 2 locations

@@ 295-297 (lines=3) @@
292
        // The robo class may contain multiple commands; the user may
293
        // select which one to run, or even get a list of commands or
294
        // run 'help' on any of the available commands as usual.
295
        if ((count($args) > 1) && $this->isShebangFile($args[1])) {
296
            return array_merge([$args[0]], array_slice($args, 2));
297
        }
298
        // Option 2: Shebang line stipulates which command to run.
299
        // #!/bin/env robo mycommand
300
        // The robo class must contain a public method named 'mycommand'.
@@ 303-305 (lines=3) @@
300
        // The robo class must contain a public method named 'mycommand'.
301
        // This command will be executed every time.  Arguments and options
302
        // may be provided on the commandline as usual.
303
        if ((count($args) > 2) && $this->isShebangFile($args[2])) {
304
            return array_merge([$args[0]], explode(' ', $args[1]), array_slice($args, 3));
305
        }
306
        return $args;
307
    }
308