Code Duplication    Length = 9-9 lines in 2 locations

src/Http/BaseController.php 2 locations

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