Code Duplication    Length = 10-10 lines in 2 locations

src/grid/XEditableColumn.php 1 location

@@ 19-28 (lines=10) @@
16
/**
17
 * Class XEditableColumn.
18
 */
19
class XEditableColumn extends \hiqdev\xeditable\grid\XEditableColumn
20
{
21
    public function init()
22
    {
23
        parent::init();
24
        if (!isset($this->pluginOptions['emptytext'])) {
25
            $this->pluginOptions['emptytext'] = Yii::t('hipanel', 'Empty');
26
        }
27
    }
28
}
29

src/widgets/XEditable.php 1 location

@@ 19-28 (lines=10) @@
16
/**
17
 * Class XEditable.
18
 */
19
class XEditable extends \hiqdev\xeditable\widgets\XEditable
20
{
21
    public function init()
22
    {
23
        parent::init();
24
        if (!isset($this->pluginOptions['emptytext'])) {
25
            $this->pluginOptions['emptytext'] = Yii::t('hipanel', 'Empty');
26
        }
27
    }
28
}
29