Skip to content

Commit bf939d7

Browse files
authored
Merge pull request #6813 from kenjis/fix-Model-comments
docs: fix typos in comments in Model
2 parents 30fd482 + 7a1c70e commit bf939d7

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

system/Model.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ public function setTable(string $table)
157157

158158
/**
159159
* Fetches the row of database from $this->table with a primary key
160-
* matching $id. This methods works only with dbCalls
161-
* This methods works only with dbCalls
160+
* matching $id.
161+
* This method works only with dbCalls.
162162
*
163163
* @param bool $singleton Single or multiple results
164164
* @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)
189189
}
190190

191191
/**
192-
* Fetches the column of database from $this->table
193-
* This methods works only with dbCalls
192+
* Fetches the column of database from $this->table.
193+
* This method works only with dbCalls.
194194
*
195195
* @param string $columnName Column Name
196196
*
@@ -204,7 +204,7 @@ protected function doFindColumn(string $columnName)
204204
/**
205205
* Works with the current Query Builder instance to return
206206
* all results, while optionally limiting them.
207-
* This methods works only with dbCalls
207+
* This method works only with dbCalls.
208208
*
209209
* @param int $limit Limit
210210
* @param int $offset Offset
@@ -227,7 +227,7 @@ protected function doFindAll(int $limit = 0, int $offset = 0)
227227
/**
228228
* Returns the first row of the result set. Will take any previous
229229
* Query Builder calls into account when determining the result set.
230-
* This methods works only with dbCalls
230+
* This method works only with dbCalls.
231231
*
232232
* @return array|object|null
233233
*/
@@ -252,7 +252,7 @@ protected function doFirst()
252252

253253
/**
254254
* Inserts data into the current table.
255-
* This method works only with dbCalls
255+
* This method works only with dbCalls.
256256
*
257257
* @param array $data Data
258258
*
@@ -288,7 +288,7 @@ protected function doInsert(array $data)
288288

289289
/**
290290
* Compiles batch insert strings and runs the queries, validating each row prior.
291-
* This methods works only with dbCalls
291+
* This method works only with dbCalls.
292292
*
293293
* @param array|null $set An associative array of insert values
294294
* @param bool|null $escape Whether to escape values
@@ -314,7 +314,7 @@ protected function doInsertBatch(?array $set = null, ?bool $escape = null, int $
314314

315315
/**
316316
* Updates a single record in $this->table.
317-
* This methods works only with dbCalls
317+
* This method works only with dbCalls.
318318
*
319319
* @param array|int|string|null $id
320320
* @param array|null $data
@@ -340,7 +340,7 @@ protected function doUpdate($id = null, $data = null): bool
340340

341341
/**
342342
* Compiles an update string and runs the query
343-
* This methods works only with dbCalls
343+
* This method works only with dbCalls.
344344
*
345345
* @param array|null $set An associative array of update values
346346
* @param string|null $index The where key
@@ -359,7 +359,7 @@ protected function doUpdateBatch(?array $set = null, ?string $index = null, int
359359
/**
360360
* Deletes a single record from $this->table where $id matches
361361
* the table's primaryKey
362-
* This methods works only with dbCalls
362+
* This method works only with dbCalls.
363363
*
364364
* @param array|int|string|null $id The rows primary key(s)
365365
* @param bool $purge Allows overriding the soft deletes setting.
@@ -404,7 +404,7 @@ protected function doDelete($id = null, bool $purge = false)
404404
/**
405405
* Permanently deletes all rows that have been marked as deleted
406406
* through soft deletes (deleted = 1)
407-
* This methods works only with dbCalls
407+
* This method works only with dbCalls.
408408
*
409409
* @return bool|string Returns a string if in test mode.
410410
*/
@@ -418,7 +418,7 @@ protected function doPurgeDeleted()
418418
/**
419419
* Works with the find* methods to return only the rows that
420420
* have been deleted.
421-
* This methods works only with dbCalls
421+
* This method works only with dbCalls.
422422
*/
423423
protected function doOnlyDeleted()
424424
{
@@ -427,7 +427,7 @@ protected function doOnlyDeleted()
427427

428428
/**
429429
* Compiles a replace into string and runs the query
430-
* This methods works only with dbCalls
430+
* This method works only with dbCalls.
431431
*
432432
* @param array|null $data Data
433433
* @param bool $returnSQL Set to true to return Query String
@@ -443,7 +443,7 @@ protected function doReplace(?array $data = null, bool $returnSQL = false)
443443
* Grabs the last error(s) that occurred from the Database connection.
444444
* The return array should be in the following format:
445445
* ['source' => 'message']
446-
* This methods works only with dbCalls
446+
* This method works only with dbCalls.
447447
*
448448
* @return array<string,string>
449449
*/
@@ -497,7 +497,7 @@ public function getIdValue($data)
497497
* Loops over records in batches, allowing you to operate on them.
498498
* Works with $this->builder to get the Compiled select to
499499
* determine the rows to operate on.
500-
* This methods works only with dbCalls
500+
* This method works only with dbCalls.
501501
*
502502
* @throws DataException
503503
*/

0 commit comments

Comments
 (0)