From c13caee981a536fceefa2693f36a68cdbfd46074 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Wed, 6 Jul 2016 14:12:14 +0200 Subject: [PATCH] fixing some documentation issues detected by scrutinizer-ci --- lib/auto.php | 4 ++-- lib/configuration.php | 5 ++--- lib/zerobin.php | 2 +- lib/zerobin/abstract.php | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/lib/auto.php b/lib/auto.php index 46efa031..2b0ebe1a 100644 --- a/lib/auto.php +++ b/lib/auto.php @@ -20,11 +20,11 @@ spl_autoload_register('auto::loader'); class auto { /** - * strips slashes deeply + * includes file for given class name * * @access public * @static - * @param mixed $value + * @param string $class_name * @return mixed */ public static function loader($class_name) diff --git a/lib/configuration.php b/lib/configuration.php index 713fc337..6aa2294e 100644 --- a/lib/configuration.php +++ b/lib/configuration.php @@ -218,10 +218,9 @@ class configuration /** - * get a key from the configuration, typically the main section or all keys + * get a section from the configuration, must exist * - * @param string $key if empty, return all configuration options - * @param string $section defaults to main + * @param string $section * @throws Exception * return mixed */ diff --git a/lib/zerobin.php b/lib/zerobin.php index a6f54067..8c4c788e 100644 --- a/lib/zerobin.php +++ b/lib/zerobin.php @@ -486,7 +486,7 @@ class zerobin * prepares JSON encoded status message * * @access private - * @param bool $status + * @param int $status * @param string $message * @param array $other * @return void diff --git a/lib/zerobin/abstract.php b/lib/zerobin/abstract.php index 51b65b8b..212cbaee 100644 --- a/lib/zerobin/abstract.php +++ b/lib/zerobin/abstract.php @@ -69,7 +69,7 @@ abstract class zerobin_abstract * * @access public * @param string $pasteid - * @return string + * @return stdClass|false */ abstract public function read($pasteid);