Code Duplication    Length = 9-9 lines in 3 locations

src/Oro/Bundle/EntityExtendBundle/Tools/EntityGenerator.php 1 location

@@ 132-140 (lines=9) @@
129
     *
130
     * @return AbstractEntityGeneratorExtension[]
131
     */
132
    protected function getExtensions()
133
    {
134
        if (null === $this->sortedExtensions) {
135
            krsort($this->extensions);
136
            $this->sortedExtensions = call_user_func_array('array_merge', $this->extensions);
137
        }
138
139
        return $this->sortedExtensions;
140
    }
141
}
142

src/Oro/Component/ChainProcessor/ChainProcessorFactory.php 1 location

@@ 45-53 (lines=9) @@
42
    /**
43
     * @return ProcessorFactoryInterface[]
44
     */
45
    protected function getFactories()
46
    {
47
        if (null === $this->sortedFactories) {
48
            krsort($this->factories);
49
            $this->sortedFactories = call_user_func_array('array_merge', $this->factories);
50
        }
51
52
        return $this->sortedFactories;
53
    }
54
}
55

src/Oro/Bundle/EntityExtendBundle/Tools/ExtendConfigDumper.php 1 location

@@ 273-281 (lines=9) @@
270
     *
271
     * @return AbstractEntityConfigDumperExtension[]
272
     */
273
    protected function getExtensions()
274
    {
275
        if (null === $this->sortedExtensions) {
276
            krsort($this->extensions);
277
            $this->sortedExtensions = call_user_func_array('array_merge', $this->extensions);
278
        }
279
280
        return $this->sortedExtensions;
281
    }
282
283
    /**
284
     * Check fields parameters and update field config