Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 851-859 (lines=9) @@
848
        }
849
    }
850
851
    public static function propertyExists($classOrObject, $property, $message = '')
852
    {
853
        if (!property_exists($classOrObject, $property)) {
854
            static::reportInvalidArgument(sprintf(
855
                $message ?: 'Expected the property %s to exist.',
856
                static::valueToString($property)
857
            ));
858
        }
859
    }
860
861
    public static function propertyNotExists($classOrObject, $property, $message = '')
862
    {
@@ 861-869 (lines=9) @@
858
        }
859
    }
860
861
    public static function propertyNotExists($classOrObject, $property, $message = '')
862
    {
863
        if (property_exists($classOrObject, $property)) {
864
            static::reportInvalidArgument(sprintf(
865
                $message ?: 'Expected the property %s to not exist.',
866
                static::valueToString($property)
867
            ));
868
        }
869
    }
870
871
    public static function methodExists($classOrObject, $method, $message = '')
872
    {