src/base/Binary.php
public function prepareCommand($args)
    {
        $command = $this->getCommand();
        if (is_string($args)) {
            return $command . ' ' . trim($args);
        }

        foreach ($args as $arg) {
            if ($arg instanceof ModifierInterface) {
                $command = $arg->modify($command);
            } else {
                $command .= ' ' . escapeshellarg($arg);
            }
        }

        return $command;
    }
public function prepareCommand($args)
    {
        $command = $this->getCommand();
        if (is_string($args)) {
            return $command . ' ' . trim($args);
        }

        foreach ($args as $arg) {
            if ($arg instanceof ModifierInterface) {
                $command = $arg->modify($command);
            } else {
                $command .= ' ' . escapeshellarg($arg);
            }
        }

        return $command;
    }
public function prepareCommand ( $ args ) { $ command = $ this -> getCommand ( ) ; if ( is_string ( $ args ) ) { return $ command . ' ' . trim ( $ args ) ; } foreach ( $ args as $ arg ) { if ( $ arg instanceof ModifierInterface ) { $ command = $ arg -> modify ( $ command ) ; } else { $ command .= ' ' . escapeshellarg ( $ arg ) ; } } return $ command ; }
Prepare full command line ready for execution.
@param string|array $args
@return string
Prepare full command line ready for execution .