Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 947-955 (lines=9) @@
944
        }
945
    }
946
947
    public static function propertyExists($classOrObject, $property, $message = '')
948
    {
949
        if (!property_exists($classOrObject, $property)) {
950
            static::reportInvalidArgument(sprintf(
951
                $message ?: 'Expected the property %s to exist.',
952
                static::valueToString($property)
953
            ));
954
        }
955
    }
956
957
    public static function propertyNotExists($classOrObject, $property, $message = '')
958
    {
@@ 957-965 (lines=9) @@
954
        }
955
    }
956
957
    public static function propertyNotExists($classOrObject, $property, $message = '')
958
    {
959
        if (property_exists($classOrObject, $property)) {
960
            static::reportInvalidArgument(sprintf(
961
                $message ?: 'Expected the property %s to not exist.',
962
                static::valueToString($property)
963
            ));
964
        }
965
    }
966
967
    public static function methodExists($classOrObject, $method, $message = '')
968
    {