Code Duplication    Length = 9-9 lines in 2 locations

src/Http/BaseController.php 2 locations

@@ 403-411 (lines=9) @@
400
     *
401
     * @return JsonApiValidatorInterface
402
     */
403
    protected static function createOnCreateValidator(ContainerInterface $container): JsonApiValidatorInterface
404
    {
405
        assert(
406
            empty(static::ON_CREATE_VALIDATION_RULES_SET_CLASS) === false,
407
            'Validation rules set should be defined for class ' . static::class . '.'
408
        );
409
410
        return static::createJsonApiValidator($container, static::ON_CREATE_VALIDATION_RULES_SET_CLASS);
411
    }
412
413
    /**
414
     * @param ContainerInterface $container
@@ 418-426 (lines=9) @@
415
     *
416
     * @return JsonApiValidatorInterface
417
     */
418
    protected static function createOnUpdateValidator(ContainerInterface $container): JsonApiValidatorInterface
419
    {
420
        assert(
421
            empty(static::ON_UPDATE_VALIDATION_RULES_SET_CLASS) === false,
422
            'Validation rules set should be defined for class ' . static::class . '.'
423
        );
424
425
        return static::createJsonApiValidator($container, static::ON_UPDATE_VALIDATION_RULES_SET_CLASS);
426
    }
427
428
    /**
429
     * @param ContainerInterface $container