Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

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