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

@@ 236-242 (lines=7) @@
233
     *
234
     * @param array $conf
235
     */
236
    protected function setupSourceData(array $conf)
237
    {
238
        $this->tables        = Util\Str::toList(Util\Arr::getValue($conf, 'tables', ''));
239
        $this->databases     = Util\Str::toList(Util\Arr::getValue($conf, 'databases', ''));
240
        $this->ignoreTables  = Util\Str::toList(Util\Arr::getValue($conf, 'ignoreTables', ''));
241
        $this->structureOnly = Util\Str::toList(Util\Arr::getValue($conf, 'structureOnly', ''));
242
    }
243
244
    /**
245
     * Execute the backup.