Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 1499-1507 (lines=9) @@
1496
     *
1497
     * @throws InvalidArgumentException
1498
     */
1499
    public static function propertyExists($classOrObject, $property, $message = '')
1500
    {
1501
        if (!\property_exists($classOrObject, $property)) {
1502
            static::reportInvalidArgument(\sprintf(
1503
                $message ?: 'Expected the property %s to exist.',
1504
                static::valueToString($property)
1505
            ));
1506
        }
1507
    }
1508
1509
    /**
1510
     * @param string|object $classOrObject
@@ 1516-1524 (lines=9) @@
1513
     *
1514
     * @throws InvalidArgumentException
1515
     */
1516
    public static function propertyNotExists($classOrObject, $property, $message = '')
1517
    {
1518
        if (\property_exists($classOrObject, $property)) {
1519
            static::reportInvalidArgument(\sprintf(
1520
                $message ?: 'Expected the property %s to not exist.',
1521
                static::valueToString($property)
1522
            ));
1523
        }
1524
    }
1525
1526
    /**
1527
     * @param string|object $classOrObject