Code Duplication    Length = 9-9 lines in 2 locations

src/Entities/Definitions/Advice.php 1 location

@@ 126-134 (lines=9) @@
123
     *
124
     * @return string
125
     */
126
    public function getQualifiedName()
127
    {
128
        if (empty($this->aspectName)) {
129
            return $this->name;
130
131
        } else {
132
            return $this->aspectName . '->' . $this->name;
133
        }
134
    }
135
136
    /**
137
     * Setter for the $aspectName property

src/Entities/Definitions/Pointcut.php 1 location

@@ 97-105 (lines=9) @@
94
     *
95
     * @return string
96
     */
97
    public function getQualifiedName()
98
    {
99
        if (empty($this->aspectName)) {
100
            return $this->name;
101
102
        } else {
103
            return $this->aspectName . '->' . $this->name;
104
        }
105
    }
106
107
    /**
108
     * Setter for the $aspectName property