Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 1597-1605 (lines=9) @@
1594
     *
1595
     * @throws InvalidArgumentException
1596
     */
1597
    public static function methodExists($classOrObject, $method, $message = '')
1598
    {
1599
        if (!\method_exists($classOrObject, $method)) {
1600
            static::reportInvalidArgument(\sprintf(
1601
                $message ?: 'Expected the method %s to exist.',
1602
                static::valueToString($method)
1603
            ));
1604
        }
1605
    }
1606
1607
    /**
1608
     * @param string|object $classOrObject
@@ 1614-1622 (lines=9) @@
1611
     *
1612
     * @throws InvalidArgumentException
1613
     */
1614
    public static function methodNotExists($classOrObject, $method, $message = '')
1615
    {
1616
        if (\method_exists($classOrObject, $method)) {
1617
            static::reportInvalidArgument(\sprintf(
1618
                $message ?: 'Expected the method %s to not exist.',
1619
                static::valueToString($method)
1620
            ));
1621
        }
1622
    }
1623
1624
    /**
1625
     * @param array      $array