Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

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