Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 1519-1527 (lines=9) @@
1516
     *
1517
     * @throws InvalidArgumentException
1518
     */
1519
    public static function propertyExists($classOrObject, $property, $message = '')
1520
    {
1521
        if (!\property_exists($classOrObject, $property)) {
1522
            static::reportInvalidArgument(\sprintf(
1523
                $message ?: 'Expected the property %s to exist.',
1524
                static::valueToString($property)
1525
            ));
1526
        }
1527
    }
1528
1529
    /**
1530
     * @param string|object $classOrObject
@@ 1536-1544 (lines=9) @@
1533
     *
1534
     * @throws InvalidArgumentException
1535
     */
1536
    public static function propertyNotExists($classOrObject, $property, $message = '')
1537
    {
1538
        if (\property_exists($classOrObject, $property)) {
1539
            static::reportInvalidArgument(\sprintf(
1540
                $message ?: 'Expected the property %s to not exist.',
1541
                static::valueToString($property)
1542
            ));
1543
        }
1544
    }
1545
1546
    /**
1547
     * @param string|object $classOrObject