Code Duplication    Length = 10-10 lines in 3 locations

src/OroCRM/Bundle/MagentoBundle/Tests/Functional/Fixture/CopyCustomerAddressToContact/LoadMagentoChannel.php 1 location

@@ 113-122 (lines=10) @@
110
     *
111
     * @return array
112
     */
113
    protected function loadStructure($table, $method)
114
    {
115
        $result   = [];
116
        $response = $this->em->getRepository($table)->findAll();
117
        foreach ($response as $row) {
118
            $result[call_user_func([$row, $method])] = $row;
119
        }
120
121
        return $result;
122
    }
123
    /**
124
     * @return $this
125
     */

src/OroCRM/Bundle/MagentoBundle/Tests/Functional/Fixture/LoadMagentoChannel.php 1 location

@@ 237-246 (lines=10) @@
234
     *
235
     * @return array
236
     */
237
    protected function loadStructure($table, $method)
238
    {
239
        $result   = [];
240
        $response = $this->em->getRepository($table)->findAll();
241
        foreach ($response as $row) {
242
            $result[call_user_func([$row, $method])] = $row;
243
        }
244
245
        return $result;
246
    }
247
248
    /**
249
     * @return $this

src/OroCRM/Bundle/MagentoBundle/Tests/Functional/Fixture/ResyncMagentoCustomerAddresses/LoadMagentoChannel.php 1 location

@@ 158-167 (lines=10) @@
155
     *
156
     * @return array
157
     */
158
    protected function loadStructure($table, $method)
159
    {
160
        $result   = [];
161
        $response = $this->em->getRepository($table)->findAll();
162
        foreach ($response as $row) {
163
            $result[call_user_func([$row, $method])] = $row;
164
        }
165
166
        return $result;
167
    }
168
169
    /**
170
     * @return $this