Code Duplication    Length = 8-8 lines in 2 locations

src/components/ConfigFile.php 1 location

@@ 222-229 (lines=8) @@
219
    /**
220
     * Save the file.
221
     */
222
    public function save()
223
    {
224
        if ($this->once && $this->exists()) {
225
            return 0;
226
        }
227
        $this->_items = Helper::uniqueConfig($this->_items);
228
        $this->getFile()->save($this);
229
    }
230
231
    /**
232
     * Modify action.

src/controllers/FileController.php 1 location

@@ 213-220 (lines=8) @@
210
    /**
211
     * {@inheritdoc}
212
     */
213
    public function actionSave()
214
    {
215
        if ($this->once && $this->exists()) {
216
            return 0;
217
        }
218
        $this->_items = Helper::uniqueConfig($this->_items);
219
        $this->getFile()->save($this);
220
    }
221
222
    /**
223
     * Modify action.