Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 867-875 (lines=9) @@
864
        }
865
    }
866
867
    public static function propertyExists($classOrObject, $property, $message = '')
868
    {
869
        if (!property_exists($classOrObject, $property)) {
870
            static::reportInvalidArgument(sprintf(
871
                $message ?: 'Expected the property %s to exist.',
872
                static::valueToString($property)
873
            ));
874
        }
875
    }
876
877
    public static function propertyNotExists($classOrObject, $property, $message = '')
878
    {
@@ 877-885 (lines=9) @@
874
        }
875
    }
876
877
    public static function propertyNotExists($classOrObject, $property, $message = '')
878
    {
879
        if (property_exists($classOrObject, $property)) {
880
            static::reportInvalidArgument(sprintf(
881
                $message ?: 'Expected the property %s to not exist.',
882
                static::valueToString($property)
883
            ));
884
        }
885
    }
886
887
    public static function methodExists($classOrObject, $method, $message = '')
888
    {