Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 1758-1766 (lines=9) @@
1755
     *
1756
     * @throws InvalidArgumentException
1757
     */
1758
    public static function propertyExists($classOrObject, $property, $message = '')
1759
    {
1760
        if (!\property_exists($classOrObject, $property)) {
1761
            static::reportInvalidArgument(\sprintf(
1762
                $message ?: 'Expected the property %s to exist.',
1763
                static::valueToString($property)
1764
            ));
1765
        }
1766
    }
1767
1768
    /**
1769
     * @psalm-pure
@@ 1778-1786 (lines=9) @@
1775
     *
1776
     * @throws InvalidArgumentException
1777
     */
1778
    public static function propertyNotExists($classOrObject, $property, $message = '')
1779
    {
1780
        if (\property_exists($classOrObject, $property)) {
1781
            static::reportInvalidArgument(\sprintf(
1782
                $message ?: 'Expected the property %s to not exist.',
1783
                static::valueToString($property)
1784
            ));
1785
        }
1786
    }
1787
1788
    /**
1789
     * @psalm-pure