Code Duplication    Length = 13-13 lines in 2 locations

Bundle/BusinessPageBundle/Builder/BusinessPageBuilder.php 1 location

@@ 144-156 (lines=13) @@
141
     *
142
     * @return BusinessProperty[] The list of business properties
143
     */
144
    public function getBusinessProperties(BusinessEntity $businessEntity)
145
    {
146
        //the business properties usable in a url
147
        $businessProperties = $businessEntity->getBusinessPropertiesByType('businessParameter');
148
149
        //the business properties usable in a url
150
        $seoBusinessProps = $businessEntity->getBusinessPropertiesByType('seoable');
151
152
        //the business properties are the identifier and the seoables properties
153
        $businessProperties = array_merge($businessProperties->toArray(), $seoBusinessProps->toArray());
154
155
        return $businessProperties;
156
    }
157
158
    /**
159
     * Generate update the page parameters with the entity.

Bundle/BusinessPageBundle/Helper/BusinessPageHelper.php 1 location

@@ 160-172 (lines=13) @@
157
     *
158
     * @return BusinessProperty[] The list of business properties
159
     */
160
    public function getBusinessProperties(BusinessEntity $businessEntity)
161
    {
162
        //the business properties usable in a url
163
        $businessProperties = $businessEntity->getBusinessPropertiesByType('businessParameter');
164
165
        //the business properties usable in a url
166
        $seoBusinessProps = $businessEntity->getBusinessPropertiesByType('seoable');
167
168
        //the business properties are the identifier and the seoables properties
169
        $businessProperties = array_merge($businessProperties->toArray(), $seoBusinessProps->toArray());
170
171
        return $businessProperties;
172
    }
173
174
    /**
175
     * Get the position of the identifier in the url of a business entity page pattern.