Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 207-209 (lines=3) @@
204
        ];
205
206
        // check if this category is hidden
207
        if ((int)$this->category['configs']['showCategory'] !== 1) {
208
            throw new ForbiddenException(__('This category is not available to view'));
209
        }
210
211
        // make sorted tree of categories to display in breadcrumbs
212
        foreach ($this->_allCategories as $cat) {

Apps/Controller/Front/Content.php 1 location

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