Code Duplication    Length = 11-11 lines in 2 locations

Bundle/BusinessPageBundle/Entity/BusinessTemplate.php 1 location

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

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"})