Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

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