Code Duplication    Length = 13-15 lines in 2 locations

src/Config/ConfigFileStorage.php 1 location

@@ 78-90 (lines=13) @@
75
     *                                                 class after saving the
76
     *                                                 config file.
77
     */
78
    public function __construct(
79
        Storage $storage,
80
        JsonConverter $configFileConverter,
81
        JsonEncoder $jsonEncoder,
82
        JsonDecoder $jsonDecoder,
83
        FactoryManager $factoryManager = null
84
    ) {
85
        $this->storage = $storage;
86
        $this->configFileConverter = $configFileConverter;
87
        $this->jsonEncoder = $jsonEncoder;
88
        $this->jsonDecoder = $jsonDecoder;
89
        $this->factoryManager = $factoryManager;
90
    }
91
92
    /**
93
     * Loads a configuration file from a path.

src/Package/PackageFileStorage.php 1 location

@@ 87-101 (lines=15) @@
84
     *                                                      class after saving
85
     *                                                      the root package file.
86
     */
87
    public function __construct(
88
        Storage $storage,
89
        JsonConverter $packageFileConverter,
90
        JsonConverter $rootPackageFileConverter,
91
        JsonEncoder $jsonEncoder,
92
        JsonDecoder $jsonDecoder,
93
        FactoryManager $factoryManager = null
94
    ) {
95
        $this->storage = $storage;
96
        $this->packageFileConverter = $packageFileConverter;
97
        $this->rootPackageFileConverter = $rootPackageFileConverter;
98
        $this->jsonEncoder = $jsonEncoder;
99
        $this->jsonDecoder = $jsonDecoder;
100
        $this->factoryManager = $factoryManager;
101
    }
102
103
    /**
104
     * Loads a package file from a file path.