Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 962-970 (lines=9) @@
959
        }
960
    }
961
962
    public static function methodExists($classOrObject, $method, $message = '')
963
    {
964
        if (!method_exists($classOrObject, $method)) {
965
            static::reportInvalidArgument(sprintf(
966
                $message ?: 'Expected the method %s to exist.',
967
                static::valueToString($method)
968
            ));
969
        }
970
    }
971
972
    public static function methodNotExists($classOrObject, $method, $message = '')
973
    {
@@ 972-980 (lines=9) @@
969
        }
970
    }
971
972
    public static function methodNotExists($classOrObject, $method, $message = '')
973
    {
974
        if (method_exists($classOrObject, $method)) {
975
            static::reportInvalidArgument(sprintf(
976
                $message ?: 'Expected the method %s to not exist.',
977
                static::valueToString($method)
978
            ));
979
        }
980
    }
981
982
    public static function keyExists($array, $key, $message = '')
983
    {