Code Duplication    Length = 7-8 lines in 2 locations

src/View/Helper/FormHelper.php 1 location

@@ 59-65 (lines=7) @@
56
     * @param View $View
57
     * @param array $config
58
     */
59
    public function __construct(View $View, array $config = [])
60
    {
61
        parent::__construct($View, $config);
62
        $this->_configWrite('btnPref', Configure::read('Cms.btnPref'));
63
        $this->_configWrite('iconPref', Configure::read('Cms.iconPref'));
64
        $this->_configWrite('classPrefix', Configure::read('Cms.classPrefix'));
65
    }
66
67
    /**
68
     * Create html form.

src/View/Helper/HtmlHelper.php 1 location

@@ 52-59 (lines=8) @@
49
     * @param View $View
50
     * @param array $config
51
     */
52
    public function __construct(View $View, array $config = [])
53
    {
54
        parent::__construct($View, $config);
55
        $this->_configWrite('btnPref', Configure::read('Cms.btnPref'));
56
        $this->_configWrite('iconPref', Configure::read('Cms.iconPref'));
57
        $this->_configWrite('classPrefix', Configure::read('Cms.classPrefix'));
58
        $this->_configWrite('templates.icon', '<i class="{{class}}"{{attrs}}></i>');
59
    }
60
61
    /**
62
     * Create icon element.