Code Duplication    Length = 7-7 lines in 2 locations

lib/Kumbia/ActiveRecord/ActiveRecord.php 2 locations

@@ 197-203 (lines=7) @@
194
     *
195
     * @return ActiveRecord
196
     */
197
    public static function firstBy($field, $value, $params = [])
198
    {
199
        $field = self::sqlItemSanitize($field);
200
        $params['where'] = "$field = ?";
201
202
        return self::first($params, $value);
203
    }
204
205
    /**
206
     * Obtener la primera coincidencia de las condiciones indicadas.
@@ 312-318 (lines=7) @@
309
     *
310
     * @return \PDOStatement
311
     */
312
    public static function allBy($field, $value, $params = [])
313
    {
314
        $field = self::sqlItemSanitize($field);
315
        $params['where'] = "$field = ?";
316
317
        return self::all($params, $value);
318
    }
319
320
    /**
321
     * Cuenta los registros que coincidan con las condiciones indicadas.