mageprince /
magento2-FAQ
| 1 | <?php |
||||
| 2 | /** |
||||
| 3 | * MagePrince |
||||
| 4 | * |
||||
| 5 | * NOTICE OF LICENSE |
||||
| 6 | * |
||||
| 7 | * This source file is subject to the mageprince.com license that is |
||||
| 8 | * available through the world-wide-web at this URL: |
||||
| 9 | * https://mageprince.com/end-user-license-agreement |
||||
| 10 | * |
||||
| 11 | * DISCLAIMER |
||||
| 12 | * |
||||
| 13 | * Do not edit or add to this file if you wish to upgrade this extension to newer |
||||
| 14 | * version in the future. |
||||
| 15 | * |
||||
| 16 | * @category MagePrince |
||||
| 17 | * @package Mageprince_Faq |
||||
| 18 | * @copyright Copyright (c) MagePrince (https://mageprince.com/) |
||||
| 19 | * @license https://mageprince.com/end-user-license-agreement |
||||
| 20 | */ |
||||
| 21 | |||||
| 22 | namespace Mageprince\Faq\Controller\Adminhtml\FaqGroup; |
||||
| 23 | |||||
| 24 | use Magento\Backend\App\Action\Context; |
||||
|
0 ignored issues
–
show
|
|||||
| 25 | use Magento\Framework\Controller\ResultInterface; |
||||
|
0 ignored issues
–
show
The type
Magento\Framework\Controller\ResultInterface was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||||
| 26 | use Magento\Framework\View\Result\PageFactory; |
||||
|
0 ignored issues
–
show
The type
Magento\Framework\View\Result\PageFactory was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||||
| 27 | |||||
| 28 | class Index extends FaqGroup |
||||
| 29 | { |
||||
| 30 | /** |
||||
| 31 | * @var PageFactory |
||||
| 32 | */ |
||||
| 33 | protected $resultPageFactory; |
||||
| 34 | |||||
| 35 | /** |
||||
| 36 | * Index constructor. |
||||
| 37 | * @param Context $context |
||||
| 38 | * @param PageFactory $resultPageFactory |
||||
| 39 | */ |
||||
| 40 | public function __construct( |
||||
| 41 | Context $context, |
||||
| 42 | PageFactory $resultPageFactory |
||||
| 43 | ) { |
||||
| 44 | $this->resultPageFactory = $resultPageFactory; |
||||
| 45 | parent::__construct($context); |
||||
| 46 | } |
||||
| 47 | |||||
| 48 | /** |
||||
| 49 | * Index action |
||||
| 50 | * |
||||
| 51 | * @return ResultInterface |
||||
| 52 | */ |
||||
| 53 | public function execute() |
||||
| 54 | { |
||||
| 55 | $resultPage = $this->resultPageFactory->create(); |
||||
| 56 | $resultPage->getConfig()->getTitle()->prepend(__("FAQ Group")); |
||||
|
0 ignored issues
–
show
The function
__ was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 57 | $resultPage->setActiveMenu('Mageprince_Faq::menu'); |
||||
| 58 | return $resultPage; |
||||
| 59 | } |
||||
| 60 | } |
||||
| 61 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths