Code Duplication    Length = 7-7 lines in 2 locations

lib/Ajde/Crud.php 1 location

@@ 620-626 (lines=7) @@
617
        $this->_templateData = (array) $array;
618
    }
619
620
    private function _hasCustomTemplate()
621
    {
622
        $base = $this->_getCustomTemplateBase();
623
        $action = $this->_getCustomTemplateAction();
624
625
        return Ajde_Template::exist($base, $action) !== false;
626
    }
627
628
    private function _getCustomTemplateBase()
629
    {

lib/Ajde/Crud/Field.php 1 location

@@ 162-168 (lines=7) @@
159
        }
160
    }
161
162
    protected function _hasCustomTemplate($action)
163
    {
164
        $base = $this->_getCustomTemplateBase();
165
        $action = $this->_getCustomTemplateAction($action);
166
167
        return Ajde_Template::exist($base, $action) !== false;
168
    }
169
170
    protected function _getCustomTemplateBase()
171
    {