mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Coding standards, space after if
git-svn-id: https://develop.svn.wordpress.org/trunk@12752 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -171,7 +171,7 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
|
||||
function cwd() {
|
||||
$cwd = $this->run_command('pwd');
|
||||
if( $cwd )
|
||||
if ( $cwd )
|
||||
$cwd = trailingslashit($cwd);
|
||||
return $cwd;
|
||||
}
|
||||
@@ -239,10 +239,10 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
function copy($source, $destination, $overwrite = false ) {
|
||||
if( ! $overwrite && $this->exists($destination) )
|
||||
if ( ! $overwrite && $this->exists($destination) )
|
||||
return false;
|
||||
$content = $this->get_contents($source);
|
||||
if( false === $content)
|
||||
if ( false === $content)
|
||||
return false;
|
||||
return $this->put_contents($destination, $content);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user