Code Duplication    Length = 9-9 lines in 2 locations

src/Http/BaseController.php 2 locations

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