new cs rule: single_line_empty_body

Rule is added to the last version of php-cs-fixer
This commit is contained in:
2023-09-12 15:58:59 +02:00
parent b9231a91a3
commit d2323e91ca
606 changed files with 639 additions and 1804 deletions

View File

@@ -20,9 +20,7 @@ class PageGenerator implements Iterator
{
protected int $current = 1;
public function __construct(protected Paginator $paginator)
{
}
public function __construct(protected Paginator $paginator) {}
public function current(): Page
{

View File

@@ -58,8 +58,7 @@ class Paginator implements PaginatorInterface
* the key in the GET parameter to indicate the number of item per page.
*/
protected string $itemPerPageKey
) {
}
) {}
public function count(): int
{

View File

@@ -42,8 +42,7 @@ class PaginatorFactory
* the request or inside the paginator.
*/
private $itemPerPage = 20
) {
}
) {}
/**
* create a paginator instance.