Skip to content

Commit 313d7d3

Browse files
committed
docs: fix PHPDocs related to Model::insert()
1 parent c0b9928 commit 313d7d3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

system/BaseModel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,11 +353,11 @@ abstract protected function doFirst();
353353

354354
/**
355355
* Inserts data into the current database
356-
* This methods works only with dbCalls
356+
* This method works only with dbCalls
357357
*
358358
* @param array $data Data
359359
*
360-
* @return bool|int|string
360+
* @return bool
361361
*/
362362
abstract protected function doInsert(array $data);
363363

@@ -695,7 +695,7 @@ public function getInsertID()
695695
*
696696
* @throws ReflectionException
697697
*
698-
* @return bool|int|string
698+
* @return bool|int|string insert ID or true on success. false on failure.
699699
*/
700700
public function insert($data = null, bool $returnID = true)
701701
{

system/Database/BaseBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1887,7 +1887,7 @@ public function getCompiledInsert(bool $reset = true)
18871887
*
18881888
* @throws DatabaseException
18891889
*
1890-
* @return bool|Query
1890+
* @return bool
18911891
*/
18921892
public function insert($set = null, ?bool $escape = null)
18931893
{

system/Model.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,11 @@ protected function doFirst()
251251

252252
/**
253253
* Inserts data into the current table.
254-
* This methods works only with dbCalls
254+
* This method works only with dbCalls
255255
*
256256
* @param array $data Data
257257
*
258-
* @return bool|Query
258+
* @return bool
259259
*/
260260
protected function doInsert(array $data)
261261
{

0 commit comments

Comments
 (0)