@@ -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 | * {@inheritdoc} |
61 | 60 | */ |
@@ -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 |
@@ -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 @@ 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($number, ?string $url, bool $current = false) |
|
81 | - { |
|
79 | + public function __construct($number, ?string $url, bool $current = false) { |
|
82 | 80 | $this->number = $number; |
83 | 81 | $this->url = $url; |
84 | 82 | $this->current = $current; |
@@ -88,8 +86,7 @@ discard block |
||
88 | 86 | * Return the page number |
89 | 87 | * @return int|string |
90 | 88 | */ |
91 | - public function getNumber() |
|
92 | - { |
|
89 | + public function getNumber() { |
|
93 | 90 | return $this->number; |
94 | 91 | } |
95 | 92 |
@@ -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 | * The URL generator instance |
62 | 61 | * @var UrlGeneratorInterface |
@@ -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 |