Code Duplication    Length = 13-13 lines in 2 locations

src/TreeHouse/IoBundle/Command/ExportCacheClearCommand.php 1 location

@@ 69-81 (lines=13) @@
66
     *
67
     * @return FeedTypeInterface[]
68
     */
69
    protected function getTypes(array $types)
70
    {
71
        if (empty($types)) {
72
            return $this->exporter->getTypes();
73
        }
74
75
        $result = [];
76
        foreach ($types as &$type) {
77
            $result[] = $this->exporter->getType($type);
78
        }
79
80
        return $result;
81
    }
82
83
    /**
84
     * @param object $item

src/TreeHouse/IoBundle/Command/ExportCreateCommand.php 1 location

@@ 105-117 (lines=13) @@
102
     *
103
     * @return FeedTypeInterface[]
104
     */
105
    protected function getTypes(array $types)
106
    {
107
        if (empty($types)) {
108
            return $this->exporter->getTypes();
109
        }
110
111
        $result = [];
112
        foreach ($types as &$type) {
113
            $result[] = $this->exporter->getType($type);
114
        }
115
116
        return $result;
117
    }
118
}
119