aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-12-08 17:42:03 +0100
committerMorris Jobke <hey@morrisjobke.de>2017-12-11 14:24:23 +0100
commit1ac31260acc0a10970196a28dd48ad71440d72b0 (patch)
treecb505e03fc37790d6d7c2c7152acbde9e751acc6
parentf018bfc7de7322651473edbfe65bd440b9c9e85b (diff)
downloadnextcloud-server-1ac31260acc0a10970196a28dd48ad71440d72b0.tar.gz
nextcloud-server-1ac31260acc0a10970196a28dd48ad71440d72b0.zip
Fixed phpdoc and function type
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
-rw-r--r--lib/private/TemplateLayout.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php
index 1bd9004265c..5118bb3bc1d 100644
--- a/lib/private/TemplateLayout.php
+++ b/lib/private/TemplateLayout.php
@@ -193,6 +193,11 @@ class TemplateLayout extends \OC_Template {
}
}
+ /**
+ * @param string $path
+ * @param string $file
+ * @return string
+ */
protected function getVersionHashSuffix($path = false, $file = false) {
if (\OC::$server->getConfig()->getSystemValue('debug', false)) {
// allows chrome workspace mapping in debug mode
@@ -250,9 +255,9 @@ class TemplateLayout extends \OC_Template {
/**
* @param string $path
- * @return string
+ * @return string|boolean
*/
- static public function getAppNamefromPath($path) {
+ public function getAppNamefromPath($path) {
if ($path !== '' && is_string($path)) {
$pathParts = explode('/', $path);
if ($pathParts[0] === 'css') {
@@ -261,6 +266,7 @@ class TemplateLayout extends \OC_Template {
}
return end($pathParts);
}
+ return false
}