Skip to content

Commit

Permalink
Address phpcs items
Browse files Browse the repository at this point in the history
  • Loading branch information
amenning committed Apr 2, 2021
1 parent fda77f1 commit ff41757
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/Functional/Driver/OCI8/ResultTest.php
Expand Up @@ -22,7 +22,9 @@
*/
class ResultTest extends FunctionalTestCase
{
// @var array<string,mixed>
/**
* @var array<string,mixed>
*/
private $connectionParams;

protected function setUp(): void
Expand Down Expand Up @@ -68,7 +70,7 @@ public function testTruncatedFetch(): void
// Create a pipelined funtion that returns 10 rows more than the
// oci8 default prefetch
$this->createReturnTypeNeededForPipelinedFunction();
$expectedTotalRowCount = ((int) ini_get('oci8.default_prefetch')) + 10;
$expectedTotalRowCount = (int) ini_get('oci8.default_prefetch') + 10;
$this->createPipelinedFunction($expectedTotalRowCount);

// Create a separate connection from that used to create/update the function
Expand All @@ -83,7 +85,7 @@ public function testTruncatedFetch(): void
'SELECT * FROM TABLE(%s.test_oracle_fetch_failure())',
$this->connectionParams['user']
));
$result = $statement->execute();
$result = $statement->execute();

// Access the first result to cause the first X rows to be prefetched
// as defined by oci8.default_prefetch (often 100 rows)
Expand Down

0 comments on commit ff41757

Please sign in to comment.