Code Duplication    Length = 7-7 lines in 2 locations

src/Backup/Source/Mongodump.php 1 location

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

src/Backup/Source/Mysqldump.php 1 location

@@ 183-189 (lines=7) @@
180
     *
181
     * @param array $conf
182
     */
183
    protected function setupSourceData(array $conf)
184
    {
185
        $this->tables        = Util\Str::toList(Util\Arr::getValue($conf, 'tables'));
186
        $this->databases     = Util\Str::toList(Util\Arr::getValue($conf, 'databases'));
187
        $this->ignoreTables  = Util\Str::toList(Util\Arr::getValue($conf, 'ignoreTables'));
188
        $this->structureOnly = Util\Str::toList(Util\Arr::getValue($conf, 'structureOnly'));
189
    }
190
191
    /**
192
     * Execute the backup.