diff --git a/system/Model.php b/system/Model.php index 04628bbb2c1a..ae540bb50213 100644 --- a/system/Model.php +++ b/system/Model.php @@ -157,8 +157,8 @@ public function setTable(string $table) /** * Fetches the row of database from $this->table with a primary key - * matching $id. This methods works only with dbCalls - * This methods works only with dbCalls + * matching $id. + * This method works only with dbCalls. * * @param bool $singleton Single or multiple results * @param array|int|string|null $id One primary key or an array of primary keys @@ -189,8 +189,8 @@ protected function doFind(bool $singleton, $id = null) } /** - * Fetches the column of database from $this->table - * This methods works only with dbCalls + * Fetches the column of database from $this->table. + * This method works only with dbCalls. * * @param string $columnName Column Name * @@ -204,7 +204,7 @@ protected function doFindColumn(string $columnName) /** * Works with the current Query Builder instance to return * all results, while optionally limiting them. - * This methods works only with dbCalls + * This method works only with dbCalls. * * @param int $limit Limit * @param int $offset Offset @@ -227,7 +227,7 @@ protected function doFindAll(int $limit = 0, int $offset = 0) /** * Returns the first row of the result set. Will take any previous * Query Builder calls into account when determining the result set. - * This methods works only with dbCalls + * This method works only with dbCalls. * * @return array|object|null */ @@ -252,7 +252,7 @@ protected function doFirst() /** * Inserts data into the current table. - * This method works only with dbCalls + * This method works only with dbCalls. * * @param array $data Data * @@ -288,7 +288,7 @@ protected function doInsert(array $data) /** * Compiles batch insert strings and runs the queries, validating each row prior. - * This methods works only with dbCalls + * This method works only with dbCalls. * * @param array|null $set An associative array of insert values * @param bool|null $escape Whether to escape values @@ -314,7 +314,7 @@ protected function doInsertBatch(?array $set = null, ?bool $escape = null, int $ /** * Updates a single record in $this->table. - * This methods works only with dbCalls + * This method works only with dbCalls. * * @param array|int|string|null $id * @param array|null $data @@ -340,7 +340,7 @@ protected function doUpdate($id = null, $data = null): bool /** * Compiles an update string and runs the query - * This methods works only with dbCalls + * This method works only with dbCalls. * * @param array|null $set An associative array of update values * @param string|null $index The where key @@ -359,7 +359,7 @@ protected function doUpdateBatch(?array $set = null, ?string $index = null, int /** * Deletes a single record from $this->table where $id matches * the table's primaryKey - * This methods works only with dbCalls + * This method works only with dbCalls. * * @param array|int|string|null $id The rows primary key(s) * @param bool $purge Allows overriding the soft deletes setting. @@ -404,7 +404,7 @@ protected function doDelete($id = null, bool $purge = false) /** * Permanently deletes all rows that have been marked as deleted * through soft deletes (deleted = 1) - * This methods works only with dbCalls + * This method works only with dbCalls. * * @return bool|string Returns a string if in test mode. */ @@ -418,7 +418,7 @@ protected function doPurgeDeleted() /** * Works with the find* methods to return only the rows that * have been deleted. - * This methods works only with dbCalls + * This method works only with dbCalls. */ protected function doOnlyDeleted() { @@ -427,7 +427,7 @@ protected function doOnlyDeleted() /** * Compiles a replace into string and runs the query - * This methods works only with dbCalls + * This method works only with dbCalls. * * @param array|null $data Data * @param bool $returnSQL Set to true to return Query String @@ -443,7 +443,7 @@ protected function doReplace(?array $data = null, bool $returnSQL = false) * Grabs the last error(s) that occurred from the Database connection. * The return array should be in the following format: * ['source' => 'message'] - * This methods works only with dbCalls + * This method works only with dbCalls. * * @return array */ @@ -497,7 +497,7 @@ public function getIdValue($data) * Loops over records in batches, allowing you to operate on them. * Works with $this->builder to get the Compiled select to * determine the rows to operate on. - * This methods works only with dbCalls + * This method works only with dbCalls. * * @throws DataException */