From 68842ac53881987fb4f3f3d0f86b46e87a1697b0 Mon Sep 17 00:00:00 2001 From: Mark Wiesemann Date: Sun, 17 Jan 2010 19:56:37 +0000 Subject: [PATCH] indentation fix git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@293657 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/ftp/examples.xml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/reference/ftp/examples.xml b/reference/ftp/examples.xml index 0e374cdabe..2f301cad40 100644 --- a/reference/ftp/examples.xml +++ b/reference/ftp/examples.xml @@ -18,22 +18,22 @@ $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); // check connection if ((!$conn_id) || (!$login_result)) { - echo "FTP connection has failed!"; - echo "Attempted to connect to $ftp_server for user $ftp_user_name"; - exit; - } else { - echo "Connected to $ftp_server, for user $ftp_user_name"; - } + echo "FTP connection has failed!"; + echo "Attempted to connect to $ftp_server for user $ftp_user_name"; + exit; +} else { + echo "Connected to $ftp_server, for user $ftp_user_name"; +} // upload the file $upload = ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY); // check upload status if (!$upload) { - echo "FTP upload has failed!"; - } else { - echo "Uploaded $source_file to $ftp_server as $destination_file"; - } + echo "FTP upload has failed!"; +} else { + echo "Uploaded $source_file to $ftp_server as $destination_file"; +} // close the FTP stream ftp_close($conn_id);