Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

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