Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 991-999 (lines=9) @@
988
        }
989
    }
990
991
    public static function propertyExists($classOrObject, $property, $message = '')
992
    {
993
        if (!property_exists($classOrObject, $property)) {
994
            static::reportInvalidArgument(sprintf(
995
                $message ?: 'Expected the property %s to exist.',
996
                static::valueToString($property)
997
            ));
998
        }
999
    }
1000
1001
    public static function propertyNotExists($classOrObject, $property, $message = '')
1002
    {
@@ 1001-1009 (lines=9) @@
998
        }
999
    }
1000
1001
    public static function propertyNotExists($classOrObject, $property, $message = '')
1002
    {
1003
        if (property_exists($classOrObject, $property)) {
1004
            static::reportInvalidArgument(sprintf(
1005
                $message ?: 'Expected the property %s to not exist.',
1006
                static::valueToString($property)
1007
            ));
1008
        }
1009
    }
1010
1011
    public static function methodExists($classOrObject, $method, $message = '')
1012
    {