diff --git a/system/BaseModel.php b/system/BaseModel.php index c437a095407e..8817d6b4e7d4 100644 --- a/system/BaseModel.php +++ b/system/BaseModel.php @@ -353,11 +353,11 @@ abstract protected function doFirst(); /** * Inserts data into the current database - * This methods works only with dbCalls + * This method works only with dbCalls * * @param array $data Data * - * @return bool|int|string + * @return bool */ abstract protected function doInsert(array $data); @@ -695,7 +695,7 @@ public function getInsertID() * * @throws ReflectionException * - * @return bool|int|string + * @return bool|int|string insert ID or true on success. false on failure. */ public function insert($data = null, bool $returnID = true) { diff --git a/system/Database/BaseBuilder.php b/system/Database/BaseBuilder.php index a899ffbe5628..f18417c55155 100644 --- a/system/Database/BaseBuilder.php +++ b/system/Database/BaseBuilder.php @@ -1887,7 +1887,7 @@ public function getCompiledInsert(bool $reset = true) * * @throws DatabaseException * - * @return bool|Query + * @return bool */ public function insert($set = null, ?bool $escape = null) { diff --git a/system/Model.php b/system/Model.php index 4b2087d9dfed..04bd6b15fd1f 100644 --- a/system/Model.php +++ b/system/Model.php @@ -251,11 +251,11 @@ protected function doFirst() /** * Inserts data into the current table. - * This methods works only with dbCalls + * This method works only with dbCalls * * @param array $data Data * - * @return bool|Query + * @return bool */ protected function doInsert(array $data) {