Code Duplication    Length = 9-9 lines in 2 locations

src/Http/BaseController.php 2 locations

@@ 377-385 (lines=9) @@
374
     *
375
     * @return JsonApiValidatorInterface
376
     */
377
    protected static function createOnCreateValidator(ContainerInterface $container): JsonApiValidatorInterface
378
    {
379
        assert(
380
            empty(static::ON_CREATE_VALIDATION_RULES_SET_CLASS) === false,
381
            'Validation rules set should be defined for class ' . static::class . '.'
382
        );
383
384
        return static::createJsonApiValidator($container, static::ON_CREATE_VALIDATION_RULES_SET_CLASS);
385
    }
386
387
    /**
388
     * @param ContainerInterface $container
@@ 392-400 (lines=9) @@
389
     *
390
     * @return JsonApiValidatorInterface
391
     */
392
    protected static function createOnUpdateValidator(ContainerInterface $container): JsonApiValidatorInterface
393
    {
394
        assert(
395
            empty(static::ON_UPDATE_VALIDATION_RULES_SET_CLASS) === false,
396
            'Validation rules set should be defined for class ' . static::class . '.'
397
        );
398
399
        return static::createJsonApiValidator($container, static::ON_UPDATE_VALIDATION_RULES_SET_CLASS);
400
    }
401
402
    /**
403
     * @param ContainerInterface $container