Passed
Push — develop ( 6c4a60...c51d64 )
by nguereza
16:03 queued 14:29
created
src/Renderer/DefaultRenderer.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
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
      */
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/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/Page.php 1 patch
Braces   +3 added lines, -6 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($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
 block discarded – undo
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
 
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
@@ -55,8 +55,7 @@
 block discarded – undo
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
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.