diff --git a/lib/Data/AbstractData.php b/lib/Data/AbstractData.php index 6a14f3a0..77600f9b 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 f5aa8beb..d7744393 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 60b15d4b..eabc2719 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 7f3c6695..c1579b1c 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;