Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 964-972 (lines=9) @@
961
        }
962
    }
963
964
    public static function propertyExists($classOrObject, $property, $message = '')
965
    {
966
        if (!property_exists($classOrObject, $property)) {
967
            static::reportInvalidArgument(sprintf(
968
                $message ?: 'Expected the property %s to exist.',
969
                static::valueToString($property)
970
            ));
971
        }
972
    }
973
974
    public static function propertyNotExists($classOrObject, $property, $message = '')
975
    {
@@ 974-982 (lines=9) @@
971
        }
972
    }
973
974
    public static function propertyNotExists($classOrObject, $property, $message = '')
975
    {
976
        if (property_exists($classOrObject, $property)) {
977
            static::reportInvalidArgument(sprintf(
978
                $message ?: 'Expected the property %s to not exist.',
979
                static::valueToString($property)
980
            ));
981
        }
982
    }
983
984
    public static function methodExists($classOrObject, $method, $message = '')
985
    {