Code Duplication    Length = 5-5 lines in 2 locations

src/AttributesProcessor.php 2 locations

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