Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
bert-w committed Feb 29, 2024
1 parent 3b1ba1b commit 1c4a732
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ public function selectResultSets($query, $bindings = [], $useReadPdo = true, Mod
* @param string $query
* @param array $bindings
* @param bool $useReadPdo
* @param \Illuminate\Database\PDO\Mode|null $mode
* @param \Illuminate\Database\PDO\Mode|null $mode
* @return \Generator
*/
public function cursor($query, $bindings = [], $useReadPdo = true, Mode $mode = null)
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Database/ConnectionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function select($query, $bindings = [], $useReadPdo = true, Mode $mode =
* @param string $query
* @param array $bindings
* @param bool $useReadPdo
* @param \Illuminate\Database\PDO\Mode|null $mode
* @param \Illuminate\Database\PDO\Mode|null $mode
* @return \Generator
*/
public function cursor($query, $bindings = [], $useReadPdo = true, Mode $mode = null);
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Database/PDO/Mode.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function prepareArguments(): array
/**
* Retrieve a single column.
*
* @param int $position
* @param int $position
* @return self
*/
public function column(int $position = 0): self
Expand Down Expand Up @@ -113,7 +113,7 @@ public function buffered(bool $buffered = true): self
/**
* Use a scrollable cursor, which allows every nth row to be fetched.
*
* @param int $nth
* @param int $nth
* @return $this
*/
public function scrollableCursor(int $nth = 1): self
Expand Down
8 changes: 4 additions & 4 deletions src/Illuminate/Database/PDO/Statement.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function statement(): PDOStatement
/**
* Fetch the next row from a result set.
*
* @param \Illuminate\Database\PDO\Mode|null $mode
* @param \Illuminate\Database\PDO\Mode|null $mode
* @return mixed
*/
public function fetch(Mode $mode = null): mixed
Expand All @@ -40,7 +40,7 @@ public function fetch(Mode $mode = null): mixed
/**
* Fetch all the rows from a result set.
*
* @param \Illuminate\Database\PDO\Mode|null $mode
* @param \Illuminate\Database\PDO\Mode|null $mode
* @return array|false
*/
public function fetchAll(Mode $mode = null): array|false
Expand Down Expand Up @@ -74,8 +74,8 @@ public function bindValues(array $bindings): self
/**
* Route other functions to the underlying PDO statement.
*
* @param string $method
* @param mixed $parameters
* @param string $method
* @param mixed $parameters
* @return mixed
*/
public function __call($method, $parameters): mixed
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3072,8 +3072,8 @@ protected function enforceOrderBy()
/**
* Get a collection instance containing the values of a given column.
*
* @param \Illuminate\Contracts\Database\Query\Expression|string $column
* @param \Illuminate\Contracts\Database\Query\Expression|string|null $key
* @param \Illuminate\Contracts\Database\Query\Expression|string $column
* @param \Illuminate\Contracts\Database\Query\Expression|string|null $key
* @return \Illuminate\Support\Collection
*/
public function pluck($column, $key = null)
Expand Down
7 changes: 1 addition & 6 deletions tests/Integration/Database/EloquentFetchModeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@

namespace Illuminate\Tests\Integration\Database;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Str;
use Illuminate\Tests\Integration\Database\Fixtures\Post;
use Illuminate\Tests\Integration\Database\Fixtures\PostStringyKey;
use Illuminate\Tests\Integration\Database\Fixtures\User;
use PHPUnit\Framework\Attributes\DataProvider;

Expand Down Expand Up @@ -108,7 +103,7 @@ public static function scrollableCursorDataProvider()
{
return [
'Every' => [1, ['Taylor', 'Graham', 'Dries', 'Tetiana', 'Mohamed', 'Lucas', 'Joseph']],
'Every 2nd' => [2, ['Graham','Tetiana','Lucas']],
'Every 2nd' => [2, ['Graham', 'Tetiana', 'Lucas']],
'Every 3rd' => [3, ['Dries', 'Lucas']],
];
}
Expand Down

0 comments on commit 1c4a732

Please sign in to comment.