GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 14-14 lines in 2 locations

tests/Admin/Form/Element/NamedFormElementTest.php 2 locations

@@ 185-198 (lines=14) @@
182
    /**
183
     * @covers NamedFormElement::getValueFromRequest
184
     */
185
    public function test_gets_value_from_request()
186
    {
187
        /** @var \Illuminate\Http\Request $request */
188
        $request = $this->app['request'];
189
        $request->offsetSet('key', [
190
            'subkey1' => 'hello world',
191
        ]);
192
193
        $session = $request->getSession();
194
195
        $element = $this->getElement('key.subkey1', 'Label');
196
        $session->shouldReceive('getOldInput')->andReturn(null);
197
        $this->assertEquals('hello world', $element->getValueFromRequest());
198
    }
199
200
    /**
201
     * @covers NamedFormElement:;getValue
@@ 203-216 (lines=14) @@
200
    /**
201
     * @covers NamedFormElement:;getValue
202
     */
203
    public function test_gets_value_with_request()
204
    {
205
        $request = $this->app['request'];
206
207
        $session = $request->getSession();
208
        $session->shouldReceive('getOldInput')->andReturn(null);
209
210
        $element = $this->getElement('key.subkey', 'Label');
211
        $request->offsetSet('key', [
212
            'subkey' => 'hello world',
213
        ]);
214
215
        $this->assertEquals('hello world', $element->getValue());
216
    }
217
218
    /**
219
     * @covers NamedFormElement:;getValue