Make WordPress Core


Ignore:
Timestamp:
12/09/2008 06:03:31 PM (18 years ago)
Author:
ryan
Message:

Strip trailing whitespace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-filesystem-ssh2.php

    r9862 r10150  
    9191
    9292                if ( ( !empty ($opt['public_key']) ) && ( !empty ($opt['private_key']) ) ) {
    93                         $this->options['public_key'] = $opt['public_key'];     
     93                        $this->options['public_key'] = $opt['public_key'];
    9494                        $this->options['private_key'] = $opt['private_key'];
    95                        
     95
    9696                        $this->options['hostkey'] = array("hostkey" => "ssh-rsa");
    97                        
    98                         $this->keys = true;                     
     97
     98                        $this->keys = true;
    9999                }
    100100
    … …  
    106106                        $this->options['password'] = $opt['password'];
    107107                }
    108                        
     108
    109109        }
    110110
    111111        function connect() {
    112112                $this->debug("connect();");
    113                
     113
    114114                if ( ! $this->keys ) {
    115                         $this->link = @ssh2_connect($this->options['hostname'], $this->options['port']);                       
     115                        $this->link = @ssh2_connect($this->options['hostname'], $this->options['port']);
    116116                } else {
    117                         $this->link = @ssh2_connect($this->options['hostname'], $this->options['port'], $this->options['hostkey']);                     
    118                 }
    119                        
     117                        $this->link = @ssh2_connect($this->options['hostname'], $this->options['port'], $this->options['hostkey']);
     118                }
     119
    120120                if ( ! $this->link ) {
    121121                        $this->errors->add('connect', sprintf(__('Failed to connect to SSH2 Server %1$s:%2$s'), $this->options['hostname'], $this->options['port']));
    … …  
    359359                //Not implmented.
    360360        }
    361        
     361
    362362        function mkdir($path, $chmod = null, $chown = false, $chgrp = false) {
    363363                $this->debug("mkdir();");
Note: See TracChangeset for help on using the changeset viewer.