Code Duplication    Length = 7-7 lines in 2 locations

src/Backup/Source/Mysqldump.php 1 location

@@ 167-173 (lines=7) @@
164
     *
165
     * @param array $conf
166
     */
167
    protected function setupSourceData(array $conf)
168
    {
169
        $this->tables        = Util\Str::toList(Util\Arr::getValue($conf, 'tables'));
170
        $this->databases     = Util\Str::toList(Util\Arr::getValue($conf, 'databases'));
171
        $this->ignoreTables  = Util\Str::toList(Util\Arr::getValue($conf, 'ignoreTables'));
172
        $this->structureOnly = Util\Str::toList(Util\Arr::getValue($conf, 'structureOnly'));
173
    }
174
175
    /**
176
     * (non-PHPDoc)

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.