Skip to content

Commit b236b29

Browse files
committed
Code style
1 parent 0ac53ae commit b236b29

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Tests/Unit/CursorTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public function testCursor() : void
1010
$table->addOrderBy('customer_id');
1111

1212
$index = 0;
13+
1314
foreach ($table->getRecordCursor() as $key => $record)
1415
{
1516
$this->assertEquals($index++, $key, 'RecordCursor key is not correct');
@@ -18,13 +19,15 @@ public function testCursor() : void
1819
}
1920

2021
$index = 0;
22+
2123
foreach ($table->getArrayCursor() as $key => $record)
2224
{
2325
$this->assertEquals($index++, $key, 'ArrayCursor key is not correct');
2426
$this->assertEquals($index, $record['customer_id'], 'ArrayCursor record is not correct');
2527
}
2628

2729
$index = 0;
30+
2831
foreach ($table->getDataObjectCursor() as $key => $record)
2932
{
3033
$this->assertEquals($index++, $key, 'DataObjectCursor key is not correct');

src/PHPFUI/ORM/BaseCursor.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,12 @@ abstract public function next() : void;
8181
*/
8282
public function rewind() : void
8383
{
84-
$this->index = -1;
85-
8684
if (! $this->statement)
8785
{
8886
return;
8987
}
9088

89+
$this->index = -1;
9190
$this->statement->closeCursor();
9291

9392
$result = \PHPFUI\ORM::executeStatement($this->statement, $this->input);

src/PHPFUI/ORM/Children.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public function delete(array $parameters) : void
3434
/**
3535
* @param array<string, string> $parameters containing **\PHPFUI\ORM\Children::class** followed by the child table, then the optional parameters of an order by column and sort order (defaults to ASC).
3636
*
37-
* @return \PHPFUI\ORM\RecordCursor
3837
*/
3938
public function getValue(array $parameters) : \PHPFUI\ORM\RecordCursor
4039
{

src/PHPFUI/ORM/Table.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,6 @@ public function getRecord() : \PHPFUI\ORM\Record
568568
/**
569569
* Return a Record collection matching the requested parameters
570570
*
571-
* @return \PHPFUI\ORM\RecordCursor
572571
*/
573572
public function getRecordCursor() : \PHPFUI\ORM\RecordCursor
574573
{

0 commit comments

Comments
 (0)