Code Duplication    Length = 7-9 lines in 2 locations

src/Backup/Source/Mongodump.php 1 location

@@ 123-131 (lines=9) @@
120
     *
121
     * @param array $conf
122
     */
123
    protected function setupSourceData(array $conf)
124
    {
125
        $this->databases                    = Util\Str::toList(Util\Arr::getValue($conf, 'databases', ''));
126
        $this->collections                  = Util\Str::toList(Util\Arr::getValue($conf, 'collections', ''));
127
        $this->excludeCollections           = Util\Str::toList(Util\Arr::getValue($conf, 'excludeCollections', ''));
128
        $this->excludeCollectionsWithPrefix = Util\Str::toList(
129
            Util\Arr::getValue($conf, 'excludeCollectionsWithPrefix', '')
130
        );
131
    }
132
133
    /**
134
     * Fetch credential settings.

src/Backup/Source/Mysqldump.php 1 location

@@ 220-226 (lines=7) @@
217
     *
218
     * @param array $conf
219
     */
220
    protected function setupSourceData(array $conf)
221
    {
222
        $this->tables        = Util\Str::toList(Util\Arr::getValue($conf, 'tables', ''));
223
        $this->databases     = Util\Str::toList(Util\Arr::getValue($conf, 'databases', ''));
224
        $this->ignoreTables  = Util\Str::toList(Util\Arr::getValue($conf, 'ignoreTables', ''));
225
        $this->structureOnly = Util\Str::toList(Util\Arr::getValue($conf, 'structureOnly', ''));
226
    }
227
228
    /**
229
     * Execute the backup.