Code Duplication    Length = 11-11 lines in 2 locations

Bundle/TemplateBundle/Entity/Template.php 1 location

@@ 164-174 (lines=11) @@
161
     *
162
     * @return [Template]
163
     */
164
    public function getTemplateInheritors()
165
    {
166
        $templateInheritors = [];
167
        foreach ($this->inheritors as $inheritor) {
168
            if ($inheritor instanceof self) {
169
                $templateInheritors[] = $inheritor;
170
            }
171
        }
172
173
        return $templateInheritors;
174
    }
175
176
    /**
177
     * @Assert\Callback(groups={"victoire"})

Bundle/BusinessPageBundle/Entity/BusinessTemplate.php 1 location

@@ 150-160 (lines=11) @@
147
     *
148
     * @return [Template]
149
     */
150
    public function getTemplateInheritors()
151
    {
152
        $templateInheritors = [];
153
        foreach ($this->inheritors as $inheritor) {
154
            if ($inheritor instanceof self) {
155
                $templateInheritors[] = $inheritor;
156
            }
157
        }
158
159
        return $templateInheritors;
160
    }
161
}
162