Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

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