Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 1382-1390 (lines=9) @@
1379
     * @param mixed         $method
1380
     * @param string        $message
1381
     */
1382
    public static function methodExists($classOrObject, $method, $message = '')
1383
    {
1384
        if (!\method_exists($classOrObject, $method)) {
1385
            static::reportInvalidArgument(\sprintf(
1386
                $message ?: 'Expected the method %s to exist.',
1387
                static::valueToString($method)
1388
            ));
1389
        }
1390
    }
1391
1392
    /**
1393
     * @param string|object $classOrObject
@@ 1397-1405 (lines=9) @@
1394
     * @param mixed         $method
1395
     * @param string        $message
1396
     */
1397
    public static function methodNotExists($classOrObject, $method, $message = '')
1398
    {
1399
        if (\method_exists($classOrObject, $method)) {
1400
            static::reportInvalidArgument(\sprintf(
1401
                $message ?: 'Expected the method %s to not exist.',
1402
                static::valueToString($method)
1403
            ));
1404
        }
1405
    }
1406
1407
    /**
1408
     * @param array      $array