Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 740-748 (lines=9) @@
737
        }
738
    }
739
740
    public static function propertyExists($classOrObject, $property, $message = '')
741
    {
742
        if (!property_exists($classOrObject, $property)) {
743
            throw new InvalidArgumentException(sprintf(
744
                $message ?: 'Expected the property %s to exist.',
745
                self::valueToString($property)
746
            ));
747
        }
748
    }
749
750
    public static function propertyNotExists($classOrObject, $property, $message = '')
751
    {
@@ 750-758 (lines=9) @@
747
        }
748
    }
749
750
    public static function propertyNotExists($classOrObject, $property, $message = '')
751
    {
752
        if (property_exists($classOrObject, $property)) {
753
            throw new InvalidArgumentException(sprintf(
754
                $message ?: 'Expected the property %s to not exist.',
755
                self::valueToString($property)
756
            ));
757
        }
758
    }
759
760
    public static function methodExists($classOrObject, $method, $message = '')
761
    {