Code Duplication    Length = 8-8 lines in 2 locations

src/Oro/Bundle/DashboardBundle/Provider/Converters/WidgetItemsChoiceTypeConverter.php 1 location

@@ 14-21 (lines=8) @@
11
    /**
12
     * {@inheritdoc}
13
     */
14
    public function getConvertedValue(array $widgetConfig, $value = null, array $config = [], array $options = [])
15
    {
16
        if ($value === null) {
17
            return $this->getDefaultChoices($config);
18
        }
19
20
        return parent::getConvertedValue($widgetConfig, $value, $config, $options);
21
    }
22
23
    /**
24
     * {@inheritdoc}

src/Oro/Bundle/DashboardBundle/Provider/Converters/WidgetBusinessUnitSelectConverter.php 1 location

@@ 45-52 (lines=8) @@
42
    /**
43
     * {@inheritdoc}
44
     */
45
    public function getConvertedValue(array $widgetConfig, $value = null, array $config = [], array $options = [])
46
    {
47
        if ($value === null) {
48
            return $this->getBusinessUnitList($config);
49
        }
50
51
        return parent::getConvertedValue($widgetConfig, $value, $config, $options);
52
    }
53
54
    /**
55
     * {@inheritdoc}