Code Duplication    Length = 25-25 lines in 2 locations

src/Graviton/CoreBundle/Controller/VersionController.php 1 location

@@ 45-69 (lines=25) @@
42
     * @param SchemaUtils        $schemaUtils schema utils
43
     * @param CoreUtils          $coreUtils   coreUtils
44
     */
45
    public function __construct(
46
        Response $response,
47
        RestUtilsInterface $restUtils,
48
        Router $router,
49
        ValidatorInterface $validator,
50
        EngineInterface $templating,
51
        FormFactory $formFactory,
52
        DocumentType $formType,
53
        ContainerInterface $container,
54
        SchemaUtils $schemaUtils,
55
        CoreUtils $coreUtils
56
    ) {
57
        parent::__construct(
58
            $response,
59
            $restUtils,
60
            $router,
61
            $validator,
62
            $templating,
63
            $formFactory,
64
            $formType,
65
            $container,
66
            $schemaUtils
67
        );
68
        $this->coreUtils = $coreUtils;
69
    }
70
71
    /**
72
     * Returns all version numbers

src/Graviton/FileBundle/Controller/FileController.php 1 location

@@ 48-72 (lines=25) @@
45
     * @param SchemaUtils        $schemaUtils schema utils
46
     * @param FileManager        $fileManager Handles file specific tasks
47
     */
48
    public function __construct(
49
        Response $response,
50
        RestUtilsInterface $restUtils,
51
        Router $router,
52
        ValidatorInterface $validator,
53
        EngineInterface $templating,
54
        FormFactory $formFactory,
55
        DocumentType $formType,
56
        ContainerInterface $container,
57
        SchemaUtils $schemaUtils,
58
        FileManager $fileManager
59
    ) {
60
        parent::__construct(
61
            $response,
62
            $restUtils,
63
            $router,
64
            $validator,
65
            $templating,
66
            $formFactory,
67
            $formType,
68
            $container,
69
            $schemaUtils
70
        );
71
        $this->fileManager = $fileManager;
72
    }
73
74
    /**
75
     * Writes a new Entry to the database