]> source.dussan.org Git - nextcloud-server.git/commitdiff
Style cleanup files_external
authorBart Visscher <bartv@thisnet.nl>
Thu, 14 Feb 2013 16:57:19 +0000 (17:57 +0100)
committerBart Visscher <bartv@thisnet.nl>
Fri, 15 Feb 2013 14:58:52 +0000 (15:58 +0100)
apps/files_external/lib/config.php
apps/files_external/lib/sftp.php

index 44e668a09c012adb52ec65046bec26210f282902..fe9d62ab47f3f39cee91adbf4ebd2df83d99b9e9 100755 (executable)
@@ -310,7 +310,9 @@ class OC_Mount_Config {
                        foreach ($data[self::MOUNT_TYPE_GROUP] as $group => $mounts) {
                                $content .= "\t\t'".$group."' => array (\n";
                                foreach ($mounts as $mountPoint => $mount) {
-                                       $content .= "\t\t\t'".addcslashes($mountPoint, "'")."' => ".str_replace("\n", '', var_export($mount, true)).", \n";
+                                       $content .= "\t\t\t'".addcslashes($mountPoint, "'")
+                                               ."' => "
+                                               .str_replace("\n", '', var_export($mount, true)).", \n";
 
                                }
                                $content .= "\t\t),\n";
@@ -322,7 +324,9 @@ class OC_Mount_Config {
                        foreach ($data[self::MOUNT_TYPE_USER] as $user => $mounts) {
                                $content .= "\t\t'".$user."' => array (\n";
                                foreach ($mounts as $mountPoint => $mount) {
-                                       $content .= "\t\t\t'".addcslashes($mountPoint, "'")."' => ".str_replace("\n", '', var_export($mount, true)).",\n";
+                                       $content .= "\t\t\t'".addcslashes($mountPoint, "'")
+                                               ."' => "
+                                               .str_replace("\n", '', var_export($mount, true)).",\n";
                                }
                                $content .= "\t\t),\n";
                        }
@@ -410,8 +414,16 @@ class OC_Mount_Config {
        public static function checkDependencies() {
                $l= new OC_L10N('files_external');
                $txt='';
-               if(!OC_Mount_Config::checksmbclient()) $txt.=$l->t('<b>Warning:</b> "smbclient" is not installed. Mounting of CIFS/SMB shares is not possible. Please ask your system administrator to install it.').'<br />';
-               if(!OC_Mount_Config::checkphpftp()) $txt.=$l->t('<b>Warning:</b> The FTP support in PHP is not enabled or installed. Mounting of FTP shares is not possible. Please ask your system administrator to install it.').'<br />';
+               if(!OC_Mount_Config::checksmbclient()) {
+                       $txt.=$l->t('<b>Warning:</b> "smbclient" is not installed.'
+                               .' Mounting of CIFS/SMB shares is not possible.'
+                                       .' Please ask your system administrator to install it.').'<br />';
+               }
+               if(!OC_Mount_Config::checkphpftp()) {
+                       $txt.=$l->t('<b>Warning:</b> The FTP support in PHP is not enabled or installed.'
+                               .' Mounting of FTP shares is not possible.'
+                                       .' Please ask your system administrator to install it.').'<br />';
+               }
 
                return($txt);
        }
index 551a5a64ef2f6e32347c32f28d59f54683ce9523..3527f50ec98ab05e6fc9117c7610068433b3dc5f 100644 (file)
@@ -7,8 +7,9 @@
  */
 namespace OC\Files\Storage;
 
-set_include_path(get_include_path() . PATH_SEPARATOR . \OC_App::getAppPath('files_external') . '/3rdparty/phpseclib/phpseclib');
-require('Net/SFTP.php');
+set_include_path(get_include_path() . PATH_SEPARATOR .
+       \OC_App::getAppPath('files_external') . '/3rdparty/phpseclib/phpseclib');
+require 'Net/SFTP.php';
 
 class SFTP extends \OC\Files\Storage\Common {
        private $host;