Code Duplication    Length = 3-3 lines in 2 locations

src/Runner.php 2 locations

@@ 328-330 (lines=3) @@
325
        // The robo class may contain multiple commands; the user may
326
        // select which one to run, or even get a list of commands or
327
        // run 'help' on any of the available commands as usual.
328
        if ((count($args) > 1) && $this->isShebangFile($args[1])) {
329
            return array_merge([$args[0]], array_slice($args, 2));
330
        }
331
        // Option 2: Shebang line stipulates which command to run.
332
        // #!/bin/env robo mycommand
333
        // The robo class must contain a public method named 'mycommand'.
@@ 336-338 (lines=3) @@
333
        // The robo class must contain a public method named 'mycommand'.
334
        // This command will be executed every time.  Arguments and options
335
        // may be provided on the commandline as usual.
336
        if ((count($args) > 2) && $this->isShebangFile($args[2])) {
337
            return array_merge([$args[0]], explode(' ', $args[1]), array_slice($args, 3));
338
        }
339
        return $args;
340
    }
341