Code Duplication    Length = 3-3 lines in 2 locations

Apps/Controller/Front/Content.php 1 location

@@ 204-206 (lines=3) @@
201
        $this->layout = null;
202
203
        // check if rss display allowed for this category
204
        if ((int)$model->category['configs']['showRss'] !== 1) {
205
            throw new ForbiddenException(__('Rss feed is disabled for this category'));
206
        }
207
208
        // initialize rss feed objects
209
        $feed = new Feed();

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

@@ 179-181 (lines=3) @@
176
        ];
177
178
        // check if this category is hidden
179
        if ((int)$this->category['configs']['showCategory'] !== 1) {
180
            throw new ForbiddenException(__('This category is not available to view'));
181
        }
182
183
        // make sorted tree of categories to display in breadcrumbs
184
        foreach ($this->_allCategories as $cat) {