Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

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