Passed
Push — develop ( d85fcd...ab3954 )
by nguereza
11:48
created
src/UrlGeneratorInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/RendererInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Renderer/DefaultRenderer.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/UrlGenerator/SimpleUrlGenerator.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Pagination.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Page.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      * The page number
58 58
      * @var int|string
59 59
      */
60
-    protected int|string $number;
60
+    protected int | string $number;
61 61
 
62 62
     /**
63 63
      * The page URL
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      * @param string|null $url
78 78
      * @param bool $current
79 79
      */
80
-    public function __construct(int|string $number, ?string $url, bool $current = false)
80
+    public function __construct(int | string $number, ?string $url, bool $current = false)
81 81
     {
82 82
         $this->number = $number;
83 83
         $this->url = $url;
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      * Return the page number
89 89
      * @return int|string
90 90
      */
91
-    public function getNumber(): int|string
91
+    public function getNumber(): int | string
92 92
     {
93 93
         return $this->number;
94 94
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.