Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

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