Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

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