Code Duplication    Length = 5-6 lines in 2 locations

src/Model/EloquentCriteria.php 2 locations

@@ 164-169 (lines=6) @@
161
            return $this;
162
        }
163
164
        if (starts_with($name, 'findBy') && $column = snake_case(substr($name, 6))) {
165
166
            call_user_func_array([$this->query, 'where'], array_merge([$column], $arguments));
167
168
            return $this->first();
169
        }
170
171
        if (starts_with($name, 'where') && $column = snake_case(substr($name, 5))) {
172
            call_user_func_array([$this->query, 'where'], array_merge([$column], $arguments));
@@ 171-175 (lines=5) @@
168
            return $this->first();
169
        }
170
171
        if (starts_with($name, 'where') && $column = snake_case(substr($name, 5))) {
172
            call_user_func_array([$this->query, 'where'], array_merge([$column], $arguments));
173
174
            return $this;
175
        }
176
177
        return $this;
178
    }