Code Duplication    Length = 8-8 lines in 2 locations

Bundle/SeoBundle/Helper/PageSeoHelper.php 1 location

@@ 116-123 (lines=8) @@
113
     *
114
     * @return mixed
115
     */
116
    protected function getEntityAttributeValue($entity, $field)
117
    {
118
        $functionName = 'get'.ucfirst($field);
119
120
        $fieldValue = call_user_func([$entity, $functionName]);
121
122
        return $fieldValue;
123
    }
124
125
    /**
126
     * Update the value of the entity.

Bundle/BusinessPageBundle/Builder/BusinessPageBuilder.php 1 location

@@ 188-195 (lines=8) @@
185
     *
186
     * @return mixed
187
     */
188
    protected function getEntityAttributeValue($entity, $field)
189
    {
190
        $functionName = 'get'.ucfirst($field);
191
192
        $fieldValue = call_user_func([$entity, $functionName]);
193
194
        return $fieldValue;
195
    }
196
197
    /**
198
     * Update the value of the entity.