Code Duplication    Length = 8-8 lines in 2 locations

src/Form.php 2 locations

@@ 719-726 (lines=8) @@
716
     * @param  array  $properties
717
     * @return string
718
     */
719
    public function renderField($field, $properties = null) 
720
    {   
721
        if (is_null($properties)) {
722
            $properties = $this->fieldProperties($field);
723
        }
724
725
        return $this->renderTemplate($field->type, $properties, $field);
726
    }
727
728
    /**
729
     * Render the field using templates.
@@ 735-742 (lines=8) @@
732
     * @param  array  $properties
733
     * @return string
734
     */
735
    public function renderFieldErrors($field, $properties = null) 
736
    {   
737
        if (is_null($properties)) {
738
            $properties = $this->fieldProperties($field);
739
        }
740
741
        return $this->renderTemplate('errors', $properties, $field);
742
    }   
743
744
    /**
745
     * Render the form using templates.