Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Push — master ( 14b721...0d2738 )
by Jérémiah
01:21
created
Relay/Connection/Paginator.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     }
23 23
 
24 24
     /**
25
-     * @param Argument|array $args
25
+     * @param Argument $args
26 26
      * @param int|callable   $total
27 27
      *
28 28
      * @return Connection
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     }
43 43
 
44 44
     /**
45
-     * @param Argument|array $args
45
+     * @param Argument $args
46 46
      *
47 47
      * @return Connection
48 48
      */
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     }
63 63
 
64 64
     /**
65
-     * @param Argument|array $args
65
+     * @param Argument $args
66 66
      * @param int|callable   $total
67 67
      *
68 68
      * @return Connection
Please login to merge, or discard this patch.
Tests/Relay/Connection/PaginatorTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 {
10 10
     public function testForward()
11 11
     {
12
-        $paginator = new Paginator(function ($offset, $limit) {
12
+        $paginator = new Paginator(function($offset, $limit) {
13 13
             $this->assertSame(0, $offset);
14 14
             $this->assertSame(6, $limit); // Includes the extra element to check if next page is available
15 15
 
@@ -21,19 +21,19 @@  discard block
 block discarded – undo
21 21
 
22 22
     public function testForwardAfter()
23 23
     {
24
-        $paginator = new Paginator(function ($offset, $limit) {
24
+        $paginator = new Paginator(function($offset, $limit) {
25 25
             $this->assertSame(5, $offset);
26 26
             $this->assertSame(6, $limit); // Includes the extra element to check if next page is available
27 27
 
28 28
             return array_fill(0, 6, 'item');
29 29
         });
30 30
 
31
-        $this->assertCount(5, $paginator->forward(new Argument(['first' => 5, 'after' => base64_encode('arrayconnection:5') ]))->edges);
31
+        $this->assertCount(5, $paginator->forward(new Argument(['first' => 5, 'after' => base64_encode('arrayconnection:5')]))->edges);
32 32
     }
33 33
 
34 34
     public function testBackward()
35 35
     {
36
-        $paginator = new Paginator(function ($offset, $limit) {
36
+        $paginator = new Paginator(function($offset, $limit) {
37 37
             $this->assertSame(5, $offset);
38 38
             $this->assertSame(5, $limit);
39 39
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
     public function testBackwardBefore()
47 47
     {
48
-        $paginator = new Paginator(function ($offset, $limit) {
48
+        $paginator = new Paginator(function($offset, $limit) {
49 49
             $this->assertSame(0, $offset);
50 50
             $this->assertSame(5, $limit);
51 51
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     public function testAuto()
59 59
     {
60 60
         // Backward
61
-        $paginator = new Paginator(function ($offset, $limit) {
61
+        $paginator = new Paginator(function($offset, $limit) {
62 62
             $this->assertSame(5, $offset);
63 63
             $this->assertSame(5, $limit);
64 64
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         $this->assertCount(5, $paginator->auto(new Argument(['last' => 5]), 10)->edges);
69 69
 
70 70
         // Forward
71
-        $paginator = new Paginator(function ($offset, $limit) {
71
+        $paginator = new Paginator(function($offset, $limit) {
72 72
             $this->assertSame(0, $offset);
73 73
             $this->assertSame(6, $limit); // Includes the extra element to check if next page is available
74 74
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         $this->assertCount(5, $paginator->auto(new Argument(['first' => 5]), 10)->edges);
79 79
 
80 80
         // Backward + callable
81
-        $paginator = new Paginator(function ($offset, $limit) {
81
+        $paginator = new Paginator(function($offset, $limit) {
82 82
             $this->assertSame(5, $offset);
83 83
             $this->assertSame(5, $limit);
84 84
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         });
87 87
 
88 88
         $countCalled = false;
89
-        $result = $paginator->auto(new Argument(['last' => 5]), function () use (&$countCalled) {
89
+        $result = $paginator->auto(new Argument(['last' => 5]), function() use (&$countCalled) {
90 90
             $countCalled = true;
91 91
             return 10;
92 92
         });
Please login to merge, or discard this patch.