Code Duplication    Length = 11-13 lines in 2 locations

src/OpenSkill/Datatable/Composers/ColumnComposer.php 1 location

@@ 56-66 (lines=11) @@
53
     * @param Factory $viewFactory The factory providing the views
54
     * @param Repository $configRepository The repository providing the user defined options
55
     */
56
    public function __construct(
57
        Provider $provider,
58
        VersionEngine $versionEngine,
59
        Factory $viewFactory,
60
        Repository $configRepository
61
    ) {
62
        $this->provider = $provider;
63
        $this->version = $versionEngine;
64
        $this->viewFactory = $viewFactory;
65
        $this->configRepository = $configRepository;
66
    }
67
68
    /**
69
     * Will return the Provider for the underlying data.

src/OpenSkill/Datatable/DatatableService.php 1 location

@@ 46-58 (lines=13) @@
43
     * @param Factory $viewFactory The factory to render the views
44
     * @param Repository $configRepository The repository to get the config values from
45
     */
46
    public function __construct(
47
        Provider $provider,
48
        $columnConfigurations,
49
        VersionEngine $versionEngine,
50
        Factory $viewFactory,
51
        Repository $configRepository
52
    ) {
53
        $this->provider = $provider;
54
        $this->columnConfigurations = $columnConfigurations;
55
        $this->versionEngine = $versionEngine;
56
        $this->viewFactory = $viewFactory;
57
        $this->configRepository = $configRepository;
58
    }
59
60
    /**
61
     * @param Version $version The version that should be used to generate the view and the responses