Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 911-919 (lines=9) @@
908
        }
909
    }
910
911
    public static function propertyExists($classOrObject, $property, $message = '')
912
    {
913
        if (!property_exists($classOrObject, $property)) {
914
            static::reportInvalidArgument(sprintf(
915
                $message ?: 'Expected the property %s to exist.',
916
                static::valueToString($property)
917
            ));
918
        }
919
    }
920
921
    public static function propertyNotExists($classOrObject, $property, $message = '')
922
    {
@@ 921-929 (lines=9) @@
918
        }
919
    }
920
921
    public static function propertyNotExists($classOrObject, $property, $message = '')
922
    {
923
        if (property_exists($classOrObject, $property)) {
924
            static::reportInvalidArgument(sprintf(
925
                $message ?: 'Expected the property %s to not exist.',
926
                static::valueToString($property)
927
            ));
928
        }
929
    }
930
931
    public static function methodExists($classOrObject, $method, $message = '')
932
    {