Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

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