Code Duplication    Length = 3-3 lines in 2 locations

src/TwoMartens/Bundle/CoreBundle/Group/GroupService.php 2 locations

@@ 159-161 (lines=3) @@
156
        $categories = $options->getCategories();
157
        foreach ($categories as $category) {
158
            $name = $category->getName();
159
            if (!isset($this->options[$groupRoleName][$name])) {
160
                $this->options[$groupRoleName][$name] = [];
161
            }
162
163
            $_categories = $category->getCategories();
164
            foreach ($_categories as $_category) {
@@ 166-168 (lines=3) @@
163
            $_categories = $category->getCategories();
164
            foreach ($_categories as $_category) {
165
                $_name = $_category->getName();
166
                if (!isset($this->options[$groupRoleName][$name][$_name])) {
167
                    $this->options[$groupRoleName][$name][$_name] = [];
168
                }
169
                $_options = $_category->getOptions();
170
                foreach ($_options as $_option) {
171
                    $this->options[$groupRoleName][$name][$_name]