Code Duplication    Length = 3-3 lines in 2 locations

Apps/Controller/Front/Content.php 1 location

@@ 217-219 (lines=3) @@
214
        $this->layout = null;
215
216
        // check if rss display allowed for this category
217
        if ((int)$model->category['configs']['showRss'] !== 1) {
218
            throw new ForbiddenException(__('Rss feed is disabled for this category'));
219
        }
220
221
        // initialize rss feed objects
222
        $feed = new Feed();

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

@@ 227-229 (lines=3) @@
224
        ];
225
226
        // check if this category is hidden
227
        if ((int)$this->category['configs']['showCategory'] !== 1) {
228
            throw new ForbiddenException(__('This category is not available to view'));
229
        }
230
231
        // make sorted tree of categories to display in breadcrumbs
232
        foreach ($this->_allCategories as $cat) {