src/Helper/Shell/ShellHelper.php
protected function filterCommand($command, $tail)
    {
        $command = trim($command);
        if (!$command) {
            throw new ShellException('Command cannot be empty.');
        }

        if ($tail && !strpos($command, $tail)) {
            $command .= $tail;
        }

        return $command;
    }
protected function filterCommand($command, $tail)
    {
        $command = trim($command);
        if (!$command) {
            throw new ShellException('Command cannot be empty.');
        }

        if ($tail && !strpos($command, $tail)) {
            $command .= $tail;
        }

        return $command;
    }
protected function filterCommand ( $ command , $ tail ) { $ command = trim ( $ command ) ; if ( ! $ command ) { throw new ShellException ( 'Command cannot be empty.' ) ; } if ( $ tail && ! strpos ( $ command , $ tail ) ) { $ command .= $ tail ; } return $ command ; }
Filter command string

@param string $command
@param string $tail
@return string
@throws ShellException
Filter command string