Code Duplication    Length = 10-10 lines in 2 locations

src/Helpers/Arrays.php 2 locations

@@ 366-375 (lines=10) @@
363
     *
364
     * @return array|bool entire row matches the condition
365
     */
366
    public static function getRow(array $uArray, $uKey, $uValue)
367
    {
368
        foreach ($uArray as $tRow) {
369
            if (isset($tRow[$uKey]) && $tRow[$uKey] === $uValue) {
370
                return $tRow;
371
            }
372
        }
373
374
        return false;
375
    }
376
377
    /**
378
     * Gets the first matching row's key
@@ 386-395 (lines=10) @@
383
     *
384
     * @return mixed|bool key of row matches the condition
385
     */
386
    public static function getRowKey(array $uArray, $uKey, $uValue)
387
    {
388
        foreach ($uArray as $tKey => $tRow) {
389
            if (isset($tRow[$uKey]) && $tRow[$uKey] === $uValue) {
390
                return $tKey;
391
            }
392
        }
393
394
        return false;
395
    }
396
397
    /**
398
     * Gets the matching rows