Code Duplication    Length = 6-6 lines in 2 locations

Exception/FailedRDMAssertionException.php 2 locations

@@ 61-66 (lines=6) @@
58
        /** @var string $actualDescription */
59
        $actualDescription = null;
60
61
        if (is_object($actualService)) {
62
            $actualDescription = get_class($actualService) . '#' . spl_object_hash($actualService);
63
64
        } else {
65
            $actualDescription = gettype($actualService);
66
        }
67
68
        /** @var string $expectedDescription */
69
        $expectedDescription = null;
@@ 71-76 (lines=6) @@
68
        /** @var string $expectedDescription */
69
        $expectedDescription = null;
70
71
        if (is_object($expectedService)) {
72
            $expectedDescription = get_class($expectedService) . '#' . spl_object_hash($expectedService);
73
74
        } else {
75
            $expectedDescription = gettype($expectedService);
76
        }
77
78
        return new self(
79
            sprintf(