Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 748-756 (lines=9) @@
745
        }
746
    }
747
748
    public static function propertyExists($classOrObject, $property, $message = '')
749
    {
750
        if (!property_exists($classOrObject, $property)) {
751
            throw new InvalidArgumentException(sprintf(
752
                $message ?: 'Expected the property %s to exist.',
753
                static::valueToString($property)
754
            ));
755
        }
756
    }
757
758
    public static function propertyNotExists($classOrObject, $property, $message = '')
759
    {
@@ 758-766 (lines=9) @@
755
        }
756
    }
757
758
    public static function propertyNotExists($classOrObject, $property, $message = '')
759
    {
760
        if (property_exists($classOrObject, $property)) {
761
            throw new InvalidArgumentException(sprintf(
762
                $message ?: 'Expected the property %s to not exist.',
763
                static::valueToString($property)
764
            ));
765
        }
766
    }
767
768
    public static function methodExists($classOrObject, $method, $message = '')
769
    {