Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 832-840 (lines=9) @@
829
        }
830
    }
831
832
    public static function propertyExists($classOrObject, $property, $message = '')
833
    {
834
        if (!property_exists($classOrObject, $property)) {
835
            static::reportInvalidArgument(sprintf(
836
                $message ?: 'Expected the property %s to exist.',
837
                static::valueToString($property)
838
            ));
839
        }
840
    }
841
842
    public static function propertyNotExists($classOrObject, $property, $message = '')
843
    {
@@ 842-850 (lines=9) @@
839
        }
840
    }
841
842
    public static function propertyNotExists($classOrObject, $property, $message = '')
843
    {
844
        if (property_exists($classOrObject, $property)) {
845
            static::reportInvalidArgument(sprintf(
846
                $message ?: 'Expected the property %s to not exist.',
847
                static::valueToString($property)
848
            ));
849
        }
850
    }
851
852
    public static function methodExists($classOrObject, $method, $message = '')
853
    {