| @@ -51,8 +51,7 @@ | ||
| 51 | 51 | * @class UrlGeneratorInterface | 
| 52 | 52 | * @package Platine\Pagination | 
| 53 | 53 | */ | 
| 54 | -interface UrlGeneratorInterface | |
| 55 | -{ | |
| 54 | +interface UrlGeneratorInterface { | |
| 56 | 55 | /** | 
| 57 | 56 | * Generate the page URL | 
| 58 | 57 | * @param int $page | 
| @@ -51,8 +51,7 @@ | ||
| 51 | 51 | * @class RendererInterface | 
| 52 | 52 | * @package Platine\Pagination | 
| 53 | 53 | */ | 
| 54 | -interface RendererInterface | |
| 55 | -{ | |
| 54 | +interface RendererInterface { | |
| 56 | 55 | /** | 
| 57 | 56 | * Render the pagination links | 
| 58 | 57 | * @param Pagination $pagination | 
| @@ -55,8 +55,7 @@ | ||
| 55 | 55 | * @class DefaultRenderer | 
| 56 | 56 | * @package Platine\Pagination\Renderer | 
| 57 | 57 | */ | 
| 58 | -class DefaultRenderer implements RendererInterface | |
| 59 | -{ | |
| 58 | +class DefaultRenderer implements RendererInterface { | |
| 60 | 59 | /** | 
| 61 | 60 |       * {@inheritdoc} | 
| 62 | 61 | */ | 
| @@ -53,8 +53,7 @@ discard block | ||
| 53 | 53 | * @class SimpleUrlGenerator | 
| 54 | 54 | * @package Platine\Pagination\UrlGenerator | 
| 55 | 55 | */ | 
| 56 | -class SimpleUrlGenerator implements UrlGeneratorInterface | |
| 57 | -{ | |
| 56 | +class SimpleUrlGenerator implements UrlGeneratorInterface { | |
| 58 | 57 | /** | 
| 59 | 58 | * The URL pattern to use with placeholder (num) | 
| 60 | 59 | * @var string | 
| @@ -65,8 +64,7 @@ discard block | ||
| 65 | 64 | * Create new instance | 
| 66 | 65 | * @param string $urlPattern | 
| 67 | 66 | */ | 
| 68 | - public function __construct(string $urlPattern = '/?page=(num)') | |
| 69 | -    { | |
| 67 | +    public function __construct(string $urlPattern = '/?page=(num)') { | |
| 70 | 68 | $this->urlPattern = $urlPattern; | 
| 71 | 69 | } | 
| 72 | 70 | |
| @@ -56,8 +56,7 @@ | ||
| 56 | 56 | * @class Pagination | 
| 57 | 57 | * @package Platine\Pagination | 
| 58 | 58 | */ | 
| 59 | -class Pagination implements Stringable | |
| 60 | -{ | |
| 59 | +class Pagination implements Stringable { | |
| 61 | 60 | /** | 
| 62 | 61 | * The URL generator instance | 
| 63 | 62 | * @var UrlGeneratorInterface | 
| @@ -51,8 +51,7 @@ discard block | ||
| 51 | 51 | * @class Page | 
| 52 | 52 | * @package Platine\Pagination | 
| 53 | 53 | */ | 
| 54 | -class Page | |
| 55 | -{ | |
| 54 | +class Page { | |
| 56 | 55 | /** | 
| 57 | 56 | * The page number | 
| 58 | 57 | * @var int|string | 
| @@ -77,8 +76,7 @@ discard block | ||
| 77 | 76 | * @param string|null $url | 
| 78 | 77 | * @param bool $current | 
| 79 | 78 | */ | 
| 80 | - public function __construct(int|string $number, ?string $url, bool $current = false) | |
| 81 | -    { | |
| 79 | +    public function __construct(int|string $number, ?string $url, bool $current = false) { | |
| 82 | 80 | $this->number = $number; | 
| 83 | 81 | $this->url = $url; | 
| 84 | 82 | $this->current = $current; |