Code Duplication    Length = 7-7 lines in 2 locations

lib/Kumbia/ActiveRecord/ActiveRecord.php 2 locations

@@ 181-187 (lines=7) @@
178
     *
179
     * @return ActiveRecord
180
     */
181
    public static function firstBy($field, $value, $params = [])
182
    {
183
        $field = self::sqlItemSanitize($field);
184
        $params['where'] = "$field = ?";
185
186
        return self::first($params, $value);
187
    }
188
189
    /**
190
     * Obtener la primera coincidencia de las condiciones indicadas.
@@ 299-305 (lines=7) @@
296
     *
297
     * @return \PDOStatement
298
     */
299
    public static function allBy($field, $value, $params = [])
300
    {
301
        $field = self::sqlItemSanitize($field);
302
        $params['where'] = "$field = ?";
303
304
        return self::all($params, $value);
305
    }
306
307
    /**
308
     * Cuenta los registros que coincidan con las condiciones indicadas.