summaryrefslogtreecommitdiffstats
path: root/lib/helper.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/helper.php')
-rw-r--r--lib/helper.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/helper.php b/lib/helper.php
index 2713ffed451..0f810ffc0c2 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -132,7 +132,8 @@ class OC_Helper {
* Returns a absolute url to the given service.
*/
public static function linkToRemote( $service, $add_slash = true ) {
- return self::makeURLAbsolute(self::linkToRemoteBase($service)) . (($add_slash && $service[strlen($service)-1]!='/')?'/':'');
+ return self::makeURLAbsolute(self::linkToRemoteBase($service))
+ . (($add_slash && $service[strlen($service)-1]!='/')?'/':'');
}
/**
@@ -144,7 +145,8 @@ class OC_Helper {
* Returns a absolute url to the given service.
*/
public static function linkToPublic($service, $add_slash = false) {
- return self::linkToAbsolute( '', 'public.php') . '?service=' . $service . (($add_slash && $service[strlen($service)-1]!='/')?'/':'');
+ return self::linkToAbsolute( '', 'public.php') . '?service=' . $service
+ . (($add_slash && $service[strlen($service)-1]!='/')?'/':'');
}
/**
@@ -379,7 +381,8 @@ class OC_Helper {
$mimeType='application/octet-stream';
}
- if($mimeType=='application/octet-stream' and function_exists('finfo_open') and function_exists('finfo_file') and $finfo=finfo_open(FILEINFO_MIME)) {
+ if($mimeType=='application/octet-stream' and function_exists('finfo_open')
+ and function_exists('finfo_file') and $finfo=finfo_open(FILEINFO_MIME)) {
$info = @strtolower(finfo_file($finfo, $path));
if($info) {
$mimeType=substr($info, 0, strpos($info, ';'));
@@ -444,7 +447,8 @@ class OC_Helper {
}
/**
- * returns "checked"-attribute if request contains selected radio element OR if radio element is the default one -- maybe?
+ * returns "checked"-attribute if request contains selected radio element
+ * OR if radio element is the default one -- maybe?
* @param string $s Name of radio-button element name
* @param string $v Value of current radio-button element
* @param string $d Value of default radio-button element