Code Duplication    Length = 3-6 lines in 2 locations

src/Model/EloquentCriteria.php 2 locations

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