Skip to content

Commit 88f3d3f

Browse files
committed
Applying suggested changes
1 parent 96a632b commit 88f3d3f

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

system/BaseModel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,12 +595,12 @@ abstract public function chunk(int $size, Closure $userFunc);
595595
*
596596
* @param Closure(list<array<string, string>>|list<object>): mixed $userFunc
597597
*
598-
* @returns void
598+
* @return void
599599
*
600600
* @throws DataException
601601
* @throws InvalidArgumentException if $size is not a positive integer
602602
*/
603-
abstract public function chunkRows(int $size, Closure $userFunc): void;
603+
abstract public function chunkRows(int $size, Closure $userFunc);
604604

605605
/**
606606
* Fetches the row of database.

system/Model.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ public function countAllResults(bool $reset = true, bool $test = false)
531531
*
532532
* @param int $size The number of records to retrieve in each chunk.
533533
*
534-
* @returns Generator<array<int, array|object>>
534+
* @return Generator<list<array<string, string>>|list<object>>
535535
*/
536536
private function iterateChunks(int $size): Generator
537537
{
@@ -564,10 +564,6 @@ private function iterateChunks(int $size): Generator
564564

565565
/**
566566
* {@inheritDoc}
567-
*
568-
* Works with `$this->builder` to get the Compiled select to
569-
* determine the rows to operate on.
570-
* This method works only with dbCalls.
571567
*/
572568
public function chunk(int $size, Closure $userFunc)
573569
{
@@ -582,10 +578,6 @@ public function chunk(int $size, Closure $userFunc)
582578

583579
/**
584580
* {@inheritDoc}
585-
*
586-
* Works with `$this->builder` to get the Compiled select to
587-
* determine the rows to operate on.
588-
* This method works only with dbCalls.
589581
*/
590582
public function chunkRows(int $size, Closure $userFunc): void
591583
{

0 commit comments

Comments
 (0)