Browse Source

Add proper PHPDoc

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Lukas Reschke 6 years ago
parent
commit
5424d6a40d
3 changed files with 6 additions and 4 deletions
  1. 3 1
      lib/private/legacy/template.php
  2. 1 1
      lib/public/ILogger.php
  3. 2 2
      public.php

+ 3 - 1
lib/private/legacy/template.php

@@ -325,7 +325,9 @@ class OC_Template extends \OC\Template\Base {
 
 	/**
 	 * print error page using Exception details
-	 * @param Exception | Throwable $exception
+	 * @param Exception|Throwable $exception
+	 * @param bool $fetchPage
+	 * @return bool|string
 	 */
 	public static function printExceptionErrorPage($exception, $fetchPage = false) {
 		try {

+ 1 - 1
lib/public/ILogger.php

@@ -136,7 +136,7 @@ interface ILogger {
 	 * ]);
 	 * </code>
 	 *
-	 * @param \Exception | \Throwable $exception
+	 * @param \Exception|\Throwable $exception
 	 * @param array $context
 	 * @return void
 	 * @since 8.2.0

+ 2 - 2
public.php

@@ -51,8 +51,8 @@ try {
 		$pathInfo = trim($pathInfo, '/');
 		list($service) = explode('/', $pathInfo);
 	}
-	$file = OCP\Config::getAppValue('core', 'public_' . strip_tags($service));
-	if (is_null($file)) {
+	$file = \OC::$server->getConfig()->getAppValue('core', 'public_' . strip_tags($service));
+	if ($file === null) {
 		header('HTTP/1.0 404 Not Found');
 		exit;
 	}