Code Duplication    Length = 13-13 lines in 2 locations

Bundle/BusinessPageBundle/Builder/BusinessPageBuilder.php 1 location

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

Bundle/BusinessPageBundle/Helper/BusinessPageHelper.php 1 location

@@ 137-149 (lines=13) @@
134
     *
135
     * @return BusinessProperty[] The list of business properties
136
     */
137
    public function getBusinessProperties(BusinessEntity $businessEntity)
138
    {
139
        //the business properties usable in a url
140
        $businessProperties = $businessEntity->getBusinessPropertiesByType('businessParameter');
141
142
        //the business properties usable in a url
143
        $seoBusinessProps = $businessEntity->getBusinessPropertiesByType('seoable');
144
145
        //the business properties are the identifier and the seoables properties
146
        $businessProperties = array_merge($businessProperties, $seoBusinessProps);
147
148
        return $businessProperties;
149
    }
150
151
    /**
152
     * Get the position of the identifier in the url of a business entity page pattern.