From d6a38cb7146dec77930a61bbd24ae543571ec9ce Mon Sep 17 00:00:00 2001 From: Awilum Date: Mon, 19 Aug 2019 15:00:22 +0300 Subject: [PATCH] Flextype Core: Entries API cleanup and refactoring --- flextype/core/Entries.php | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/flextype/core/Entries.php b/flextype/core/Entries.php index edd0c80b..fea0857c 100755 --- a/flextype/core/Entries.php +++ b/flextype/core/Entries.php @@ -359,8 +359,8 @@ class Entries /** * Rename entry. * - * @param string $id Entry id - * @param string $new_id New entry id + * @param string $id Entry ID + * @param string $new_id New entry ID * * @return bool True on success, false on failure. * @@ -374,9 +374,11 @@ class Entries /** * Update entry * - * @param string $id Entry + * @param string $id Entry ID * @param array $data Data * + * @return bool True on success, false on failure. + * * @access public */ public function update(string $id, array $data) : bool @@ -393,9 +395,11 @@ class Entries /** * Create entry * - * @param string $id Entry id + * @param string $id Entry ID * @param array $data Data * + * @return bool True on success, false on failure. + * * @access public */ public function create(string $id, array $data) : bool @@ -424,9 +428,9 @@ class Entries } /** - * Delete entry. + * Delete entry * - * @param string $id Entry id + * @param string $id Entry ID * * @return bool True on success, false on failure. * @@ -456,7 +460,9 @@ class Entries /** * Check whether entry exists. * - * @param string $id Entry + * @param string $id Entry ID + * + * @return bool True on success, false on failure. * * @access public */ @@ -468,7 +474,9 @@ class Entries /** * Helper method _file_location * - * @param string $id Entry id + * @param string $id Entry ID + * + * @return string entry file location * * @access private */ @@ -480,7 +488,9 @@ class Entries /** * Helper method _dir_location * - * @param string $id Entry id + * @param string $id Entry ID + * + * @return string entry directory location * * @access private */