@@ -54,8 +54,7 @@ |
||
| 54 | 54 | * Class DefaultRenderer |
| 55 | 55 | * @package Platine\Pagination\Renderer |
| 56 | 56 | */ |
| 57 | -class DefaultRenderer implements RendererInterface |
|
| 58 | -{ |
|
| 57 | +class DefaultRenderer implements RendererInterface { |
|
| 59 | 58 | |
| 60 | 59 | /** |
| 61 | 60 | * {@inheritdoc} |
@@ -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 | /** |
| 58 | 57 | * Render the pagination links |
@@ -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 | /** |
| 60 | 59 | * The URL pattern to use with placeholder (num) |
@@ -66,8 +65,7 @@ discard block |
||
| 66 | 65 | * Create new instance |
| 67 | 66 | * @param string $urlPattern |
| 68 | 67 | */ |
| 69 | - public function __construct(string $urlPattern = '/?page=(num)') |
|
| 70 | - { |
|
| 68 | + public function __construct(string $urlPattern = '/?page=(num)') { |
|
| 71 | 69 | $this->urlPattern = $urlPattern; |
| 72 | 70 | } |
| 73 | 71 | |
@@ -55,8 +55,7 @@ |
||
| 55 | 55 | * Class Pagination |
| 56 | 56 | * @package Platine\Pagination |
| 57 | 57 | */ |
| 58 | -class Pagination |
|
| 59 | -{ |
|
| 58 | +class Pagination { |
|
| 60 | 59 | |
| 61 | 60 | /** |
| 62 | 61 | * The URL generator instance |
@@ -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 | /** |
| 58 | 57 | * The page number |
@@ -78,8 +77,7 @@ discard block |
||
| 78 | 77 | * @param string|null $url |
| 79 | 78 | * @param bool $current |
| 80 | 79 | */ |
| 81 | - public function __construct($number, ?string $url, bool $current = false) |
|
| 82 | - { |
|
| 80 | + public function __construct($number, ?string $url, bool $current = false) { |
|
| 83 | 81 | $this->number = $number; |
| 84 | 82 | $this->url = $url; |
| 85 | 83 | $this->current = $current; |
@@ -89,8 +87,7 @@ discard block |
||
| 89 | 87 | * Return the page number |
| 90 | 88 | * @return int|string |
| 91 | 89 | */ |
| 92 | - public function getNumber() |
|
| 93 | - { |
|
| 90 | + public function getNumber() { |
|
| 94 | 91 | return $this->number; |
| 95 | 92 | } |
| 96 | 93 | |
@@ -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 | /** |
| 58 | 57 | * Generate the page URL |