GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 14-14 lines in 3 locations

src/collection_functions.php 3 locations

@@ 1460-1473 (lines=14) @@
1457
 * @param int $size
1458
 * @return bool
1459
 */
1460
function sizeIs($collection, $size)
1461
{
1462
    $itemsTempCount = 0;
1463
1464
    foreach ($collection as $key => $value) {
1465
        $itemsTempCount++;
1466
1467
        if ($itemsTempCount > $size) {
1468
            return false;
1469
        }
1470
    }
1471
1472
    return $itemsTempCount == $size;
1473
}
1474
1475
/**
1476
 * Checks whether $collection has less than $size items.
@@ 1482-1495 (lines=14) @@
1479
 * @param int $size
1480
 * @return bool
1481
 */
1482
function sizeIsLessThan($collection, $size)
1483
{
1484
    $itemsTempCount = 0;
1485
1486
    foreach ($collection as $key => $value) {
1487
        $itemsTempCount++;
1488
1489
        if ($itemsTempCount > $size) {
1490
            return false;
1491
        }
1492
    }
1493
1494
    return $itemsTempCount < $size;
1495
}
1496
1497
/**
1498
 * Checks whether $collection has more than $size items.
@@ 1504-1517 (lines=14) @@
1501
 * @param int $size
1502
 * @return bool
1503
 */
1504
function sizeIsGreaterThan($collection, $size)
1505
{
1506
    $itemsTempCount = 0;
1507
1508
    foreach ($collection as $key => $value) {
1509
        $itemsTempCount++;
1510
1511
        if ($itemsTempCount > $size) {
1512
            return true;
1513
        }
1514
    }
1515
1516
    return $itemsTempCount > $size;
1517
}
1518
1519
/**
1520
 * Checks whether $collection has between $fromSize to $toSize items. $toSize can be