Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 766-774 (lines=9) @@
763
        }
764
    }
765
766
    public static function propertyExists($classOrObject, $property, $message = '')
767
    {
768
        if (!property_exists($classOrObject, $property)) {
769
            static::reportInvalidArgument(sprintf(
770
                $message ?: 'Expected the property %s to exist.',
771
                static::valueToString($property)
772
            ));
773
        }
774
    }
775
776
    public static function propertyNotExists($classOrObject, $property, $message = '')
777
    {
@@ 776-784 (lines=9) @@
773
        }
774
    }
775
776
    public static function propertyNotExists($classOrObject, $property, $message = '')
777
    {
778
        if (property_exists($classOrObject, $property)) {
779
            static::reportInvalidArgument(sprintf(
780
                $message ?: 'Expected the property %s to not exist.',
781
                static::valueToString($property)
782
            ));
783
        }
784
    }
785
786
    public static function methodExists($classOrObject, $method, $message = '')
787
    {