Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 1546-1554 (lines=9) @@
1543
     *
1544
     * @throws InvalidArgumentException
1545
     */
1546
    public static function methodExists($classOrObject, $method, $message = '')
1547
    {
1548
        if (!\method_exists($classOrObject, $method)) {
1549
            static::reportInvalidArgument(\sprintf(
1550
                $message ?: 'Expected the method %s to exist.',
1551
                static::valueToString($method)
1552
            ));
1553
        }
1554
    }
1555
1556
    /**
1557
     * @param string|object $classOrObject
@@ 1563-1571 (lines=9) @@
1560
     *
1561
     * @throws InvalidArgumentException
1562
     */
1563
    public static function methodNotExists($classOrObject, $method, $message = '')
1564
    {
1565
        if (\method_exists($classOrObject, $method)) {
1566
            static::reportInvalidArgument(\sprintf(
1567
                $message ?: 'Expected the method %s to not exist.',
1568
                static::valueToString($method)
1569
            ));
1570
        }
1571
    }
1572
1573
    /**
1574
     * @param array      $array