diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2012-11-04 08:59:45 -0800 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2012-11-04 08:59:45 -0800 |
commit | 8ac3849a95bd6a733cce9134bab4bf38c5c0fadd (patch) | |
tree | 5fc42258625fa612348f701f0dd334ee476bdd4d /lib/template.php | |
parent | 8c4c74b23f268b232e3f591ea564c018597ee82d (diff) | |
parent | 30d7993e0105a6c98cbf61d4253d08acf236aca7 (diff) | |
download | nextcloud-server-8ac3849a95bd6a733cce9134bab4bf38c5c0fadd.tar.gz nextcloud-server-8ac3849a95bd6a733cce9134bab4bf38c5c0fadd.zip |
Merge pull request #238 from fmms/checkstyle04
Checkstyle fixes
Diffstat (limited to 'lib/template.php')
-rw-r--r-- | lib/template.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/template.php b/lib/template.php index e8dbe622419..efcc6e82c4c 100644 --- a/lib/template.php +++ b/lib/template.php @@ -25,7 +25,7 @@ * Prints an XSS escaped string * @param string $string the string which will be escaped and printed */ -function p($string){ +function p($string) { print(OC_Util::sanitizeHTML($string)); } @@ -33,7 +33,7 @@ function p($string){ * Prints an unescaped string * @param string $string the string which will be printed as it is */ -function print_unescaped($string){ +function print_unescaped($string) { print($string); } @@ -195,11 +195,11 @@ class OC_Template{ public static function detectFormfactor() { // please add more useragent strings for other devices if(isset($_SERVER['HTTP_USER_AGENT'])) { - if(stripos($_SERVER['HTTP_USER_AGENT'],'ipad')>0) { + if(stripos($_SERVER['HTTP_USER_AGENT'], 'ipad')>0) { $mode='tablet'; - }elseif(stripos($_SERVER['HTTP_USER_AGENT'],'iphone')>0) { + }elseif(stripos($_SERVER['HTTP_USER_AGENT'], 'iphone')>0) { $mode='mobile'; - }elseif((stripos($_SERVER['HTTP_USER_AGENT'],'N9')>0) and (stripos($_SERVER['HTTP_USER_AGENT'],'nokia')>0)) { + }elseif((stripos($_SERVER['HTTP_USER_AGENT'],'N9')>0) and (stripos($_SERVER['HTTP_USER_AGENT'], 'nokia')>0)) { $mode='mobile'; }else{ $mode='default'; @@ -356,7 +356,7 @@ class OC_Template{ * @param string $text the text content for the element */ public function addHeader( $tag, $attributes, $text='') { - $this->headers[]=array('tag'=>$tag,'attributes'=>$attributes,'text'=>$text); + $this->headers[]=array('tag'=>$tag,'attributes'=>$attributes, 'text'=>$text); } /** |