protected function prepareCommand($command)
    {
        if (is_string($command)) {
            return trim($command);
        }
        if (is_array($command)) {
            return implode(' && ', $command);
        }
        throw new TaskExecutionException('Command must be string or array, ' . gettype($command) . ' given.', 1312454906);
    }
protected function prepareCommand($command)
    {
        if (is_string($command)) {
            return trim($command);
        }
        if (is_array($command)) {
            return implode(' && ', $command);
        }
        throw new TaskExecutionException('Command must be string or array, ' . gettype($command) . ' given.', 1312454906);
    }
protected function prepareCommand ( $ command ) { if ( is_string ( $ command ) ) { return trim ( $ command ) ; } if ( is_array ( $ command ) ) { return implode ( ' && ' , $ command ) ; } throw new TaskExecutionException ( 'Command must be string or array, ' . gettype ( $ command ) . ' given.' , 1312454906 ) ; }
Prepare a command

@param array|string $command
@return string
@throws TaskExecutionException
Prepare a command