Code Duplication    Length = 5-5 lines in 2 locations

src/AttributesProcessor.php 2 locations

@@ 75-79 (lines=5) @@
72
                break;
73
            }
74
75
            if ($previous !== null && !$previous instanceof Attributes) {
76
                $target = $previous;
77
                $direction = self::DIRECTION_SUFFIX;
78
                break;
79
            }
80
81
            if ($next !== null && !$next instanceof Attributes) {
82
                $target = $next;
@@ 81-85 (lines=5) @@
78
                break;
79
            }
80
81
            if ($next !== null && !$next instanceof Attributes) {
82
                $target = $next;
83
                $direction = self::DIRECTION_PREFIX;
84
                break;
85
            }
86
        }
87
88
        return [$target, $direction];