Code Duplication    Length = 7-7 lines in 2 locations

src/Entities/Pointcuts/PointcutFactory.php 2 locations

@@ 109-115 (lines=7) @@
106
            }
107
108
            // now check if we do have any "and" connectors here
109
            if (strpos($expression, AndPointcut::CONNECTOR) !== false) {
110
                $class = '\AppserverIo\Doppelgaenger\Entities\Pointcuts\AndPointcut';
111
                $tmp = $this->findConnectorPointcut($expression, $class);
112
                if ($tmp !== false) {
113
                    return $tmp;
114
                }
115
            }
116
117
            // or-connection comes second
118
            if (strpos($expression, OrPointcut::CONNECTOR) !== false) {
@@ 118-124 (lines=7) @@
115
            }
116
117
            // or-connection comes second
118
            if (strpos($expression, OrPointcut::CONNECTOR) !== false) {
119
                $class = '\AppserverIo\Doppelgaenger\Entities\Pointcuts\OrPointcut';
120
                $tmp = $this->findConnectorPointcut($expression, $class);
121
                if ($tmp !== false) {
122
                    return $tmp;
123
                }
124
            }
125
126
            // trim the expression from containing brackets first
127
            while ($expression[0] === '(' && $expression[strlen($expression) - 1] === ')') {