Code Duplication    Length = 11-11 lines in 2 locations

source/Spiral/Validation/Validator.php 2 locations

@@ 130-140 (lines=11) @@
127
    /**
128
     * {@inheritdoc}
129
     */
130
    public function setRules(array $rules): ValidatorInterface
131
    {
132
        if ($this->rules == $rules) {
133
            return $this;
134
        }
135
136
        $this->rules = $rules;
137
        $this->reset();
138
139
        return $this;
140
    }
141
142
    /**
143
     * {@inheritdoc}
@@ 145-155 (lines=11) @@
142
    /**
143
     * {@inheritdoc}
144
     */
145
    public function setData($data): ValidatorInterface
146
    {
147
        if ($this->data == $data) {
148
            return $this;
149
        }
150
151
        $this->data = $data;
152
        $this->reset();
153
154
        return $this;
155
    }
156
157
    /**
158
     * {@inheritdoc}