Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 800-808 (lines=9) @@
797
        }
798
    }
799
800
    public static function keyExists($array, $key, $message = '')
801
    {
802
        if (!array_key_exists($key, $array)) {
803
            static::reportInvalidArgument(sprintf(
804
                $message ?: 'Expected the key %s to exist.',
805
                static::valueToString($key)
806
            ));
807
        }
808
    }
809
810
    public static function keyNotExists($array, $key, $message = '')
811
    {
@@ 810-818 (lines=9) @@
807
        }
808
    }
809
810
    public static function keyNotExists($array, $key, $message = '')
811
    {
812
        if (array_key_exists($key, $array)) {
813
            static::reportInvalidArgument(sprintf(
814
                $message ?: 'Expected the key %s to not exist.',
815
                static::valueToString($key)
816
            ));
817
        }
818
    }
819
820
    public static function count($array, $number, $message = '')
821
    {