Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

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