apply more cs rules for php-cs

This commit is contained in:
2023-10-17 13:27:03 +02:00
parent 0b0cbed9db
commit bc2041cbdd
1485 changed files with 8169 additions and 9620 deletions

View File

@@ -20,6 +20,7 @@ use function count;
* Test the paginator class.
*
* @internal
*
* @coversNothing
*/
final class PaginatorTest extends KernelTestCase
@@ -108,10 +109,11 @@ final class PaginatorTest extends KernelTestCase
}
/**
* @param int $totalItems
* @param int $itemPerPage
* @param int $currentPage
* @param int $totalItems
* @param int $itemPerPage
* @param int $currentPage
* @param bool $expectedHasNextPage
*
* @dataProvider generateHasNextPage
*/
public function testHasNextPage(
@@ -128,10 +130,11 @@ final class PaginatorTest extends KernelTestCase
/**
* test the HasPage function.
*
* @param int $totalItems
* @param int $itemPerpage
* @param int $pageNumber
* @param int $totalItems
* @param int $itemPerpage
* @param int $pageNumber
* @param bool $expectedHasPage
*
* @dataProvider generateHasPage
*/
public function testHasPage(
@@ -149,6 +152,7 @@ final class PaginatorTest extends KernelTestCase
* @param int $totalItems
* @param int $itemPerPage
* @param int $currentPage
*
* @dataProvider generateHasPreviousPage
*/
public function testHasPreviousPage(
@@ -169,6 +173,7 @@ final class PaginatorTest extends KernelTestCase
* @param int $totalItems
* @param int $itemPerPage
* @param int $expectedPageNumber
*
* @dataProvider generatePageNumber
*/
public function testPageNumber($totalItems, $itemPerPage, $expectedPageNumber)
@@ -176,7 +181,7 @@ final class PaginatorTest extends KernelTestCase
$paginator = $this->generatePaginator($totalItems, $itemPerPage);
$this->assertEquals($expectedPageNumber, $paginator->countPages());
$this->assertEquals($expectedPageNumber, count($paginator));
$this->assertEquals($expectedPageNumber, \count($paginator));
}
public function testPagesGenerator()
@@ -212,7 +217,7 @@ final class PaginatorTest extends KernelTestCase
}
/**
* @param int $itemPerPage
* @param int $itemPerPage
* @param string $route
*
* @return Paginator