Code Duplication    Length = 16-17 lines in 2 locations

module/Jobs/src/Jobs/Factory/Form/BaseFieldsetFactory.php 1 location

@@ 22-38 (lines=17) @@
19
 *
20
 * @author Carsten Bleek <[email protected]>
21
 */
22
class BaseFieldsetFactory implements FactoryInterface
23
{
24
    /**
25
     * Creates the multiposting select box.
26
     */
27
    public function createService(ServiceLocatorInterface $serviceLocator)
28
    {
29
        /* @var $serviceLocator \Zend\ServiceManager\AbstractPluginManager */
30
31
        $services = $serviceLocator->getServiceLocator();
32
        /* @var \Geo\Options\ModuleOptions $options */
33
        $options = $services->get('Geo/Options');
34
        $fs = new BaseFieldset();
35
        $fs->setLocationEngineType($options->getPlugin());
36
        return $fs;
37
    }
38
}
39

module/Jobs/src/Jobs/Factory/Form/ListFilterLocationFieldsetFactory.php 1 location

@@ 22-37 (lines=16) @@
19
 *
20
 * @author Carsten Bleek <[email protected]>
21
 */
22
class ListFilterLocationFieldsetFactory implements FactoryInterface
23
{
24
    /**
25
     * Creates the multiposting select box.
26
     */
27
    public function createService(ServiceLocatorInterface $serviceLocator)
28
    {
29
        /* @var $serviceLocator \Zend\ServiceManager\AbstractPluginManager */
30
31
        $services = $serviceLocator->getServiceLocator();
32
        /* @var \Geo\Options\ModuleOptions $options */
33
        $options = $services->get('Geo/Options');
34
        $fs = new ListFilterLocationFieldset(['location_engine_type' => $options->getPlugin()]);
35
        return $fs;
36
    }
37
}
38