Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 774-782 (lines=9) @@
771
        }
772
    }
773
774
    public static function methodExists($classOrObject, $method, $message = '')
775
    {
776
        if (!method_exists($classOrObject, $method)) {
777
            static::reportInvalidArgument(sprintf(
778
                $message ?: 'Expected the method %s to exist.',
779
                static::valueToString($method)
780
            ));
781
        }
782
    }
783
784
    public static function methodNotExists($classOrObject, $method, $message = '')
785
    {
@@ 784-792 (lines=9) @@
781
        }
782
    }
783
784
    public static function methodNotExists($classOrObject, $method, $message = '')
785
    {
786
        if (method_exists($classOrObject, $method)) {
787
            static::reportInvalidArgument(sprintf(
788
                $message ?: 'Expected the method %s to not exist.',
789
                static::valueToString($method)
790
            ));
791
        }
792
    }
793
794
    public static function keyExists($array, $key, $message = '')
795
    {