Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

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