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

Code Duplication    Length = 8-11 lines in 8 locations

Tests/Relay/Connection/Output/ConnectionBuilderTest.php 8 locations

@@ 82-89 (lines=8) @@
79
        $this->assertEquals($expected, $actual);
80
    }
81
82
    public function testRespectsFirstAndAfterWithLongFirst()
83
    {
84
        $actual = ConnectionBuilder::connectionFromArray($this->letters, ['first' => 10, 'after' => 'YXJyYXljb25uZWN0aW9uOjE=']);
85
86
        $expected = $this->getExpectedConnection(['C', 'D', 'E'], false, false);
87
88
        $this->assertEquals($expected, $actual);
89
    }
90
91
    public function testRespectsLastAndBefore()
92
    {
@@ 100-107 (lines=8) @@
97
        $this->assertEquals($expected, $actual);
98
    }
99
100
    public function testRespectsLastAndBeforeWithLongLast()
101
    {
102
        $actual = ConnectionBuilder::connectionFromArray($this->letters, ['last' => 10, 'before' => 'YXJyYXljb25uZWN0aW9uOjM=']);
103
104
        $expected = $this->getExpectedConnection(['A', 'B', 'C'], false, false);
105
106
        $this->assertEquals($expected, $actual);
107
    }
108
109
    public function testRespectsFirstAndAfterAndBeforeTooFew()
110
    {
@@ 109-119 (lines=11) @@
106
        $this->assertEquals($expected, $actual);
107
    }
108
109
    public function testRespectsFirstAndAfterAndBeforeTooFew()
110
    {
111
        $actual = ConnectionBuilder::connectionFromArray(
112
            $this->letters,
113
            ['first' => 2, 'after' => 'YXJyYXljb25uZWN0aW9uOjA=', 'before' => 'YXJyYXljb25uZWN0aW9uOjQ=']
114
        );
115
116
        $expected = $this->getExpectedConnection(['B', 'C'], false, true);
117
118
        $this->assertEquals($expected, $actual);
119
    }
120
121
    public function testRespectsFirstAndAfterAndBeforeTooMany()
122
    {
@@ 121-131 (lines=11) @@
118
        $this->assertEquals($expected, $actual);
119
    }
120
121
    public function testRespectsFirstAndAfterAndBeforeTooMany()
122
    {
123
        $actual = ConnectionBuilder::connectionFromArray(
124
            $this->letters,
125
            ['first' => 4, 'after' => 'YXJyYXljb25uZWN0aW9uOjA=', 'before' => 'YXJyYXljb25uZWN0aW9uOjQ=']
126
        );
127
128
        $expected = $this->getExpectedConnection(['B', 'C', 'D'], false, false);
129
130
        $this->assertEquals($expected, $actual);
131
    }
132
133
    public function testRespectsFirstAndAfterAndBeforeExactlyRight()
134
    {
@@ 133-143 (lines=11) @@
130
        $this->assertEquals($expected, $actual);
131
    }
132
133
    public function testRespectsFirstAndAfterAndBeforeExactlyRight()
134
    {
135
        $actual = ConnectionBuilder::connectionFromArray(
136
            $this->letters,
137
            ['first' => 3, 'after' => 'YXJyYXljb25uZWN0aW9uOjA=', 'before' => 'YXJyYXljb25uZWN0aW9uOjQ=']
138
        );
139
140
        $expected = $this->getExpectedConnection(['B', 'C', 'D'], false, false);
141
142
        $this->assertEquals($expected, $actual);
143
    }
144
145
    public function testRespectsLastAndAfterAndBeforeTooFew()
146
    {
@@ 145-155 (lines=11) @@
142
        $this->assertEquals($expected, $actual);
143
    }
144
145
    public function testRespectsLastAndAfterAndBeforeTooFew()
146
    {
147
        $actual = ConnectionBuilder::connectionFromArray(
148
            $this->letters,
149
            ['last' => 2, 'after' => 'YXJyYXljb25uZWN0aW9uOjA=', 'before' => 'YXJyYXljb25uZWN0aW9uOjQ=']
150
        );
151
152
        $expected = $this->getExpectedConnection(['C', 'D'], true, false);
153
154
        $this->assertEquals($expected, $actual);
155
    }
156
157
    public function testRespectsLastAndAfterAndBeforeTooMany()
158
    {
@@ 157-167 (lines=11) @@
154
        $this->assertEquals($expected, $actual);
155
    }
156
157
    public function testRespectsLastAndAfterAndBeforeTooMany()
158
    {
159
        $actual = ConnectionBuilder::connectionFromArray(
160
            $this->letters,
161
            ['last' => 4, 'after' => 'YXJyYXljb25uZWN0aW9uOjA=', 'before' => 'YXJyYXljb25uZWN0aW9uOjQ=']
162
        );
163
164
        $expected = $this->getExpectedConnection(['B', 'C', 'D'], false, false);
165
166
        $this->assertEquals($expected, $actual);
167
    }
168
169
    public function testRespectsLastAndAfterAndBeforeExactlyRight()
170
    {
@@ 169-179 (lines=11) @@
166
        $this->assertEquals($expected, $actual);
167
    }
168
169
    public function testRespectsLastAndAfterAndBeforeExactlyRight()
170
    {
171
        $actual = ConnectionBuilder::connectionFromArray(
172
            $this->letters,
173
            ['last' => 3, 'after' => 'YXJyYXljb25uZWN0aW9uOjA=', 'before' => 'YXJyYXljb25uZWN0aW9uOjQ=']
174
        );
175
176
        $expected = $this->getExpectedConnection(['B', 'C', 'D'], false, false);
177
178
        $this->assertEquals($expected, $actual);
179
    }
180
181
    public function testReturnsNoElementsIfFirstIs0()
182
    {