Code Duplication    Length = 9-9 lines in 4 locations

tests/ResolverTest.php 4 locations

@@ 263-271 (lines=9) @@
260
        ];
261
    }
262
263
    public function invalidPointerIndexProvider()
264
    {
265
        $schema = $this->loadSchema('valid/resolution-chains');
266
267
        return [
268
            [$schema, '#/bat/1/quz/bar'],
269
            [$schema, '#/bat/1/quz/0/bar/baz'],
270
        ];
271
    }
272
273
    public function unresolvablePointerIndexProvider()
274
    {
@@ 273-281 (lines=9) @@
270
        ];
271
    }
272
273
    public function unresolvablePointerIndexProvider()
274
    {
275
        $schema = $this->loadSchema('valid/resolution-chains');
276
277
        return [
278
            [$schema, '#/bat/4'],
279
            [$schema, '#/bat/7/quz/2/bar'],
280
        ];
281
    }
282
283
    public function invalidPointerSegmentProvider()
284
    {
@@ 283-291 (lines=9) @@
280
        ];
281
    }
282
283
    public function invalidPointerSegmentProvider()
284
    {
285
        $schema = $this->loadSchema('valid/resolution-chains');
286
287
        return [
288
            [$schema, '#/bat/2/bar'],
289
            [$schema, '#/bat/1/quz/1/foo'],
290
        ];
291
    }
292
293
    public function invalidPointerTargetProvider()
294
    {
@@ 293-301 (lines=9) @@
290
        ];
291
    }
292
293
    public function invalidPointerTargetProvider()
294
    {
295
        $schema = $this->loadSchema('valid/resolution-chains');
296
297
        return [
298
            [$schema, '#/foo/bat'],
299
            [$schema, '#bat'],
300
        ];
301
    }
302
303
    public function selfReferencingPointerProvider()
304
    {