Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 816-824 (lines=9) @@
813
        }
814
    }
815
816
    public static function methodExists($classOrObject, $method, $message = '')
817
    {
818
        if (!method_exists($classOrObject, $method)) {
819
            static::reportInvalidArgument(sprintf(
820
                $message ?: 'Expected the method %s to exist.',
821
                static::valueToString($method)
822
            ));
823
        }
824
    }
825
826
    public static function methodNotExists($classOrObject, $method, $message = '')
827
    {
@@ 826-834 (lines=9) @@
823
        }
824
    }
825
826
    public static function methodNotExists($classOrObject, $method, $message = '')
827
    {
828
        if (method_exists($classOrObject, $method)) {
829
            static::reportInvalidArgument(sprintf(
830
                $message ?: 'Expected the method %s to not exist.',
831
                static::valueToString($method)
832
            ));
833
        }
834
    }
835
836
    public static function keyExists($array, $key, $message = '')
837
    {