Code Duplication    Length = 3-3 lines in 2 locations

Apps/Controller/Front/Content.php 1 location

@@ 184-186 (lines=3) @@
181
        $this->layout = null;
182
183
        // check if rss display allowed for this category
184
        if ((int)$model->category['configs']['showRss'] !== 1) {
185
            throw new ForbiddenException(__('Rss feed is disabled for this category'));
186
        }
187
188
        // initialize rss feed objects
189
        $feed = new Feed();

Apps/Model/Front/Content/EntityCategoryList.php 1 location

@@ 171-173 (lines=3) @@
168
        ];
169
170
        // check if this category is hidden
171
        if ((int)$this->category['configs']['showCategory'] !== 1) {
172
            throw new ForbiddenException(__('This category is not available to view'));
173
        }
174
175
        // make sorted tree of categories to display in breadcrumbs
176
        foreach ($this->_allCategories as $cat) {