From 5b7b2348218a325884dc5acabfa70bd14e56d150 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Tue, 9 Aug 2016 13:07:11 +0200 Subject: [PATCH] doc bloc corrections --- lib/Data/AbstractData.php | 2 +- lib/Data/Database.php | 4 ++-- lib/Data/Filesystem.php | 8 ++++---- lib/Model/AbstractModel.php | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/Data/AbstractData.php b/lib/Data/AbstractData.php index 6a14f3a..77600f9 100644 --- a/lib/Data/AbstractData.php +++ b/lib/Data/AbstractData.php @@ -129,7 +129,7 @@ abstract class AbstractData * @param string $pasteid * @param string $parentid * @param string $commentid - * @return void + * @return bool */ abstract public function existsComment($pasteid, $parentid, $commentid); diff --git a/lib/Data/Database.php b/lib/Data/Database.php index f5aa8be..d774439 100644 --- a/lib/Data/Database.php +++ b/lib/Data/Database.php @@ -306,7 +306,7 @@ class Database extends AbstractData * * @access public * @param string $pasteid - * @return void + * @return bool */ public function exists($pasteid) { @@ -394,7 +394,7 @@ class Database extends AbstractData * @param string $pasteid * @param string $parentid * @param string $commentid - * @return void + * @return bool */ public function existsComment($pasteid, $parentid, $commentid) { diff --git a/lib/Data/Filesystem.php b/lib/Data/Filesystem.php index 60b15d4..eabc271 100644 --- a/lib/Data/Filesystem.php +++ b/lib/Data/Filesystem.php @@ -138,7 +138,7 @@ class Filesystem extends AbstractData * * @access public * @param string $pasteid - * @return void + * @return bool */ public function exists($pasteid) { @@ -214,7 +214,7 @@ class Filesystem extends AbstractData * @param string $pasteid * @param string $parentid * @param string $commentid - * @return void + * @return bool */ public function existsComment($pasteid, $parentid, $commentid) { @@ -325,7 +325,7 @@ class Filesystem extends AbstractData * @access private * @static * @param string $dataid - * @return void + * @return string */ private static function _dataid2path($dataid) { @@ -341,7 +341,7 @@ class Filesystem extends AbstractData * @access private * @static * @param string $dataid - * @return void + * @return string */ private static function _dataid2discussionpath($dataid) { diff --git a/lib/Model/AbstractModel.php b/lib/Model/AbstractModel.php index 7f3c669..c1579b1 100644 --- a/lib/Model/AbstractModel.php +++ b/lib/Model/AbstractModel.php @@ -110,7 +110,7 @@ abstract class AbstractModel */ public function setData($data) { - if (!sjcl::isValid($data)) { + if (!Sjcl::isValid($data)) { throw new Exception('Invalid data.', 61); } $this->_data->data = $data;