Code Duplication    Length = 3-3 lines in 2 locations

src/Ffcms/Core/Helper/HTML/Form.php 1 location

@@ 132-134 (lines=3) @@
129
130
        // check if model contains current tag name as property
131
        if (!property_exists($this->model, $propertyName)) {
132
            if (App::$Debug !== null) {
133
                App::$Debug->addMessage('Form field ["' . $object . '"] is not defined in model: [' . get_class($this->model) . ']', 'error');
134
            }
135
            return null;
136
        }
137
        

src/Ffcms/Core/Helper/HTML/Form/Constructor.php 1 location

@@ 100-102 (lines=3) @@
97
        }
98
        
99
        // if field is unknown type add notification in debugbar
100
        if (App::$Debug !== null) {
101
            App::$Debug->addMessage('Field with name [' . App::$Security->strip_tags($name) . '] have unknown type [' . $this->type . ']', 'error');
102
        }
103
        return 'No data: ' . App::$Security->strip_tags($name);
104
    }
105