Smile-SA/elasticsuite

View on GitHub
src/module-elasticsuite-thesaurus/Controller/Adminhtml/Thesaurus/Delete.php

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 2 of 2 total issues

Avoid too many return statements within this method.
Open

return $resultRedirect->setPath('*/*/edit', ['thesaurus_id' => $this->getRequest()->getParam('thesaurus_id')]);

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    try {
    $this->thesaurusRepository->delete($model);
    $this->messageManager->addSuccess(__('You deleted the thesaurus %1.', $model->getName()));
     
    return $resultRedirect->setPath('*/*/index');
    src/module-elasticsuite-catalog-optimizer/Controller/Adminhtml/Optimizer/Delete.php on lines 47..56

    There are no issues that match your filters.

    Category
    Status