Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 984-992 (lines=9) @@
981
        }
982
    }
983
984
    public static function methodExists($classOrObject, $method, $message = '')
985
    {
986
        if (!method_exists($classOrObject, $method)) {
987
            static::reportInvalidArgument(sprintf(
988
                $message ?: 'Expected the method %s to exist.',
989
                static::valueToString($method)
990
            ));
991
        }
992
    }
993
994
    public static function methodNotExists($classOrObject, $method, $message = '')
995
    {
@@ 994-1002 (lines=9) @@
991
        }
992
    }
993
994
    public static function methodNotExists($classOrObject, $method, $message = '')
995
    {
996
        if (method_exists($classOrObject, $method)) {
997
            static::reportInvalidArgument(sprintf(
998
                $message ?: 'Expected the method %s to not exist.',
999
                static::valueToString($method)
1000
            ));
1001
        }
1002
    }
1003
1004
    public static function keyExists($array, $key, $message = '')
1005
    {