Code Duplication    Length = 8-8 lines in 2 locations

src/Form/Field.php 2 locations

@@ 600-607 (lines=8) @@
597
     *
598
     * @return $this
599
     */
600
    public function rules($rules = null, $messages = [])
601
    {
602
        $this->rules = $this->mergeRules($rules, $this->rules);
603
604
        $this->setValidationMessages('default', $messages);
605
606
        return $this;
607
    }
608
609
    /**
610
     * Set the update validation rules for the field.
@@ 617-624 (lines=8) @@
614
     *
615
     * @return $this
616
     */
617
    public function updateRules($rules = null, $messages = [])
618
    {
619
        $this->updateRules = $this->mergeRules($rules, $this->updateRules);
620
621
        $this->setValidationMessages('update', $messages);
622
623
        return $this;
624
    }
625
626
    /**
627
     * Set the creation validation rules for the field.