@@ -400,7 +400,7 @@ abstract protected function doFirst();
400400 * Inserts data into the current database.
401401 * This method works only with dbCalls.
402402 *
403- * @param array $row Row data
403+ * @param array $row Row data
404404 * @phpstan-param row_array $row
405405 *
406406 * @return bool
@@ -424,9 +424,9 @@ abstract protected function doInsertBatch(?array $set = null, ?bool $escape = nu
424424 * Updates a single record in the database.
425425 * This method works only with dbCalls.
426426 *
427- * @param array|int|string|null $id ID
428- * @param array|null $row Row data
429- * @phpstan-param row_array|null $row
427+ * @param array|int|string|null $id ID
428+ * @param array|null $row Row data
429+ * @phpstan-param row_array|null $row
430430 */
431431 abstract protected function doUpdate ($ id = null , $ row = null ): bool ;
432432
@@ -480,9 +480,9 @@ abstract protected function doOnlyDeleted();
480480 * Compiles a replace and runs the query.
481481 * This method works only with dbCalls.
482482 *
483- * @param array|null $row Row data
483+ * @param array|null $row Row data
484484 * @phpstan-param row_array|null $row
485- * @param bool $returnSQL Set to true to return Query String
485+ * @param bool $returnSQL Set to true to return Query String
486486 *
487487 * @return BaseResult|false|Query|string
488488 */
@@ -511,7 +511,7 @@ abstract protected function idValue($data);
511511 * Public getter to return the id value using the idValue() method.
512512 * For example with SQL this will return $data->$this->primaryKey.
513513 *
514- * @param array|object $row Row data
514+ * @param array|object $row Row data
515515 * @phpstan-param row_array|object $row
516516 *
517517 * @return array|int|string|null
@@ -552,7 +552,7 @@ abstract public function chunk(int $size, Closure $userFunc);
552552 *
553553 * @param array|int|string|null $id One primary key or an array of primary keys
554554 *
555- * @return array|object|null The resulting row of data, or null.
555+ * @return array|object|null The resulting row of data, or null.
556556 * @phpstan-return ($id is int|string ? row_array|object|null : list<row_array|object>)
557557 */
558558 public function find ($ id = null )
@@ -696,7 +696,7 @@ public function first()
696696 * you must ensure that the class will provide access to the class
697697 * variables, even if through a magic method.
698698 *
699- * @param array|object $row Row data
699+ * @param array|object $row Row data
700700 * @phpstan-param row_array|object $row
701701 *
702702 * @throws ReflectionException
@@ -724,7 +724,7 @@ public function save($row): bool
724724 * This method is called on save to determine if entry have to be updated.
725725 * If this method returns false insert operation will be executed
726726 *
727- * @param array|object $row Row data
727+ * @param array|object $row Row data
728728 * @phpstan-param row_array|object $row
729729 */
730730 protected function shouldUpdate ($ row ): bool
@@ -748,11 +748,11 @@ public function getInsertID()
748748 * Inserts data into the database. If an object is provided,
749749 * it will attempt to convert it to an array.
750750 *
751- * @param array|object|null $row Row data
751+ * @param array|object|null $row Row data
752752 * @phpstan-param row_array|object|null $row
753- * @param bool $returnID Whether insert ID should be returned or not.
753+ * @param bool $returnID Whether insert ID should be returned or not.
754754 *
755- * @return bool|int|string insert ID or true on success. false on failure.
755+ * @return bool|int|string insert ID or true on success. false on failure.
756756 * @phpstan-return ($returnID is true ? int|string|false : bool)
757757 *
758758 * @throws ReflectionException
@@ -826,8 +826,8 @@ public function insert($row = null, bool $returnID = true)
826826 /**
827827 * Set datetime to created field.
828828 *
829- * @phpstan-param row_array $row
830- * @param int|string $date timestamp or datetime string
829+ * @phpstan-param row_array $row
830+ * @param int|string $date timestamp or datetime string
831831 */
832832 protected function setCreatedField (array $ row , $ date ): array
833833 {
@@ -841,8 +841,8 @@ protected function setCreatedField(array $row, $date): array
841841 /**
842842 * Set datetime to updated field.
843843 *
844- * @phpstan-param row_array $row
845- * @param int|string $date timestamp or datetime string
844+ * @phpstan-param row_array $row
845+ * @param int|string $date timestamp or datetime string
846846 */
847847 protected function setUpdatedField (array $ row , $ date ): array
848848 {
@@ -856,11 +856,11 @@ protected function setUpdatedField(array $row, $date): array
856856 /**
857857 * Compiles batch insert runs the queries, validating each row prior.
858858 *
859- * @param list<array|object>|null $set an associative array of insert values
859+ * @param list<array|object>|null $set an associative array of insert values
860860 * @phpstan-param list<row_array|object>|null $set
861- * @param bool|null $escape Whether to escape values
862- * @param int $batchSize The size of the batch to run
863- * @param bool $testing True means only number of records is returned, false will execute the query
861+ * @param bool|null $escape Whether to escape values
862+ * @param int $batchSize The size of the batch to run
863+ * @param bool $testing True means only number of records is returned, false will execute the query
864864 *
865865 * @return bool|int Number of rows inserted or FALSE on failure
866866 *
@@ -937,8 +937,8 @@ public function insertBatch(?array $set = null, ?bool $escape = null, int $batch
937937 * Updates a single record in the database. If an object is provided,
938938 * it will attempt to convert it into an array.
939939 *
940- * @param array|int|string|null $id
941- * @param array|object|null $row Row data
940+ * @param array|int|string|null $id
941+ * @param array|object|null $row Row data
942942 * @phpstan-param row_array|object|null $row
943943 *
944944 * @throws ReflectionException
@@ -999,11 +999,11 @@ public function update($id = null, $row = null): bool
999999 /**
10001000 * Compiles an update and runs the query.
10011001 *
1002- * @param list<array|object>|null $set an associative array of insert values
1002+ * @param list<array|object>|null $set an associative array of insert values
10031003 * @phpstan-param list<row_array|object>|null $set
1004- * @param string|null $index The where key
1005- * @param int $batchSize The size of the batch to run
1006- * @param bool $returnSQL True means SQL is returned, false will execute the query
1004+ * @param string|null $index The where key
1005+ * @param int $batchSize The size of the batch to run
1006+ * @param bool $returnSQL True means SQL is returned, false will execute the query
10071007 *
10081008 * @return false|int|string[] Number of rows affected or FALSE on failure, SQL array when testMode
10091009 *
@@ -1173,9 +1173,9 @@ public function onlyDeleted()
11731173 /**
11741174 * Compiles a replace and runs the query.
11751175 *
1176- * @param array|null $row Row data
1176+ * @param array|null $row Row data
11771177 * @phpstan-param row_array|null $row
1178- * @param bool $returnSQL Set to true to return Query String
1178+ * @param bool $returnSQL Set to true to return Query String
11791179 *
11801180 * @return BaseResult|false|Query|string
11811181 */
@@ -1279,7 +1279,7 @@ public function protect(bool $protect = true)
12791279 * @used-by update() to protect against mass assignment vulnerabilities.
12801280 * @used-by updateBatch() to protect against mass assignment vulnerabilities.
12811281 *
1282- * @param array $row Row data
1282+ * @param array $row Row data
12831283 * @phpstan-param row_array $row
12841284 *
12851285 * @throws DataException
@@ -1310,7 +1310,7 @@ protected function doProtectFields(array $row): array
13101310 * @used-by insert() to protect against mass assignment vulnerabilities.
13111311 * @used-by insertBatch() to protect against mass assignment vulnerabilities.
13121312 *
1313- * @param array $row Row data
1313+ * @param array $row Row data
13141314 * @phpstan-param row_array $row
13151315 *
13161316 * @throws DataException
@@ -1505,7 +1505,7 @@ public function cleanRules(bool $choice = false)
15051505 * Validate the row data against the validation rules (or the validation group)
15061506 * specified in the class property, $validationRules.
15071507 *
1508- * @param array|object $row Row data
1508+ * @param array|object $row Row data
15091509 * @phpstan-param row_array|object $row
15101510 */
15111511 public function validate ($ row ): bool
@@ -1575,8 +1575,8 @@ public function getValidationMessages(): array
15751575 * currently so that rules don't block updating when only updating
15761576 * a partial row.
15771577 *
1578- * @param array $rules Array containing field name and rule
1579- * @param array $row Row data (@TODO Remove null in param type)
1578+ * @param array $rules Array containing field name and rule
1579+ * @param array $row Row data (@TODO Remove null in param type)
15801580 * @phpstan-param row_array $row
15811581 */
15821582 protected function cleanValidationRules (array $ rules , ?array $ row = null ): array
@@ -1760,9 +1760,9 @@ protected function objectToRawArray($object, bool $onlyChanged = true, bool $rec
17601760 /**
17611761 * Transform data to array.
17621762 *
1763- * @param array|object|null $row Row data
1763+ * @param array|object|null $row Row data
17641764 * @phpstan-param row_array|object|null $row
1765- * @param string $type Type of data (insert|update)
1765+ * @param string $type Type of data (insert|update)
17661766 *
17671767 * @throws DataException
17681768 * @throws InvalidArgumentException
0 commit comments