Skip to content

Commit 0a2e945

Browse files
committed
docs: fix typos in doc comments
1 parent de6aece commit 0a2e945

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

system/Model.php

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

129129
/**
130130
* Fetches the row of database from $this->table with a primary key
131-
* matching $id. This methods works only with dbCalls
132-
* This methods works only with dbCalls
131+
* matching $id.
132+
* This method works only with dbCalls
133133
*
134134
* @param bool $singleton Single or multiple results
135135
* @param array|int|string|null $id One primary key or an array of primary keys
@@ -161,7 +161,7 @@ protected function doFind(bool $singleton, $id = null)
161161

162162
/**
163163
* Fetches the column of database from $this->table
164-
* This methods works only with dbCalls
164+
* This method works only with dbCalls
165165
*
166166
* @param string $columnName Column Name
167167
*
@@ -175,7 +175,7 @@ protected function doFindColumn(string $columnName)
175175
/**
176176
* Works with the current Query Builder instance to return
177177
* all results, while optionally limiting them.
178-
* This methods works only with dbCalls
178+
* This method works only with dbCalls
179179
*
180180
* @param int $limit Limit
181181
* @param int $offset Offset
@@ -198,7 +198,7 @@ protected function doFindAll(int $limit = 0, int $offset = 0)
198198
/**
199199
* Returns the first row of the result set. Will take any previous
200200
* Query Builder calls into account when determining the result set.
201-
* This methods works only with dbCalls
201+
* This method works only with dbCalls
202202
*
203203
* @return array|object|null
204204
*/
@@ -223,7 +223,7 @@ protected function doFirst()
223223

224224
/**
225225
* Inserts data into the current table.
226-
* This methods works only with dbCalls
226+
* This method works only with dbCalls
227227
*
228228
* @param array $data Data
229229
*
@@ -259,7 +259,7 @@ protected function doInsert(array $data)
259259

260260
/**
261261
* Compiles batch insert strings and runs the queries, validating each row prior.
262-
* This methods works only with dbCalls
262+
* This method works only with dbCalls
263263
*
264264
* @param array|null $set An associative array of insert values
265265
* @param bool|null $escape Whether to escape values
@@ -285,7 +285,7 @@ protected function doInsertBatch(?array $set = null, ?bool $escape = null, int $
285285

286286
/**
287287
* Updates a single record in $this->table.
288-
* This methods works only with dbCalls
288+
* This method works only with dbCalls
289289
*
290290
* @param array|int|string|null $id
291291
* @param array|null $data
@@ -311,7 +311,7 @@ protected function doUpdate($id = null, $data = null): bool
311311

312312
/**
313313
* Compiles an update string and runs the query
314-
* This methods works only with dbCalls
314+
* This method works only with dbCalls
315315
*
316316
* @param array|null $set An associative array of update values
317317
* @param string|null $index The where key
@@ -330,7 +330,7 @@ protected function doUpdateBatch(?array $set = null, ?string $index = null, int
330330
/**
331331
* Deletes a single record from $this->table where $id matches
332332
* the table's primaryKey
333-
* This methods works only with dbCalls
333+
* This method works only with dbCalls
334334
*
335335
* @param array|int|string|null $id The rows primary key(s)
336336
* @param bool $purge Allows overriding the soft deletes setting.
@@ -375,7 +375,7 @@ protected function doDelete($id = null, bool $purge = false)
375375
/**
376376
* Permanently deletes all rows that have been marked as deleted
377377
* through soft deletes (deleted = 1)
378-
* This methods works only with dbCalls
378+
* This method works only with dbCalls
379379
*
380380
* @return bool|mixed
381381
*/
@@ -389,7 +389,7 @@ protected function doPurgeDeleted()
389389
/**
390390
* Works with the find* methods to return only the rows that
391391
* have been deleted.
392-
* This methods works only with dbCalls
392+
* This method works only with dbCalls
393393
*/
394394
protected function doOnlyDeleted()
395395
{
@@ -398,7 +398,7 @@ protected function doOnlyDeleted()
398398

399399
/**
400400
* Compiles a replace into string and runs the query
401-
* This methods works only with dbCalls
401+
* This method works only with dbCalls
402402
*
403403
* @param array|null $data Data
404404
* @param bool $returnSQL Set to true to return Query String
@@ -414,7 +414,7 @@ protected function doReplace(?array $data = null, bool $returnSQL = false)
414414
* Grabs the last error(s) that occurred from the Database connection.
415415
* The return array should be in the following format:
416416
* ['source' => 'message']
417-
* This methods works only with dbCalls
417+
* This method works only with dbCalls
418418
*
419419
* @return array<string,string>
420420
*/
@@ -468,7 +468,7 @@ public function getIdValue($data)
468468
* Loops over records in batches, allowing you to operate on them.
469469
* Works with $this->builder to get the Compiled select to
470470
* determine the rows to operate on.
471-
* This methods works only with dbCalls
471+
* This method works only with dbCalls
472472
*
473473
* @throws DataException
474474
*/

0 commit comments

Comments
 (0)