protected function makeCommand($connection, $connectionName)
    {
        $cmd[] = 'mysqldump -u ' . $connection['username'];
        $cmd[] = '--password=' . $connection['password'];
        $cmd[] = $connection['database'];
        $cmd[] = ' -h ' . $connection['host'];
        if ( ! empty($connection['port'])) {
            $cmd[] = '-P ' . $connection['port'];
        }
        $cmd[] = '> ' . $this->filename($connectionName);
        return implode(' ', $cmd);
    }
protected function makeCommand($connection, $connectionName)
    {
        $cmd[] = 'mysqldump -u ' . $connection['username'];
        $cmd[] = '--password=' . $connection['password'];
        $cmd[] = $connection['database'];
        $cmd[] = ' -h ' . $connection['host'];
        if ( ! empty($connection['port'])) {
            $cmd[] = '-P ' . $connection['port'];
        }
        $cmd[] = '> ' . $this->filename($connectionName);
        return implode(' ', $cmd);
    }
protected function makeCommand ( $ connection , $ connectionName ) { $ cmd [ ] = 'mysqldump -u ' . $ connection [ 'username' ] ; $ cmd [ ] = '--password=' . $ connection [ 'password' ] ; $ cmd [ ] = $ connection [ 'database' ] ; $ cmd [ ] = ' -h ' . $ connection [ 'host' ] ; if ( ! empty ( $ connection [ 'port' ] ) ) { $ cmd [ ] = '-P ' . $ connection [ 'port' ] ; } $ cmd [ ] = '> ' . $ this -> filename ( $ connectionName ) ; return implode ( ' ' , $ cmd ) ; }
Make the database command

@param $connection
@param $connectionName
@return array
Make the database command