Conditions | 2 |
Paths | 4 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | public function afterExecute(\Magento\User\Controller\Adminhtml\User\Save $subject) |
||
39 | { |
||
40 | $userId = (int)$subject->getRequest()->getParam('user_id'); |
||
41 | $data = $subject->getRequest()->getPostValue(); |
||
42 | $data = $this->_filterData($data); |
||
43 | |||
44 | try { |
||
45 | |||
46 | /** @var \Firegento\DevDashboard\Model\Config $model */ |
||
47 | $model = $this->_configRepository->getByUserId($userId); |
||
48 | $model->setData($data); |
||
49 | $this->_configRepository->save($model); |
||
50 | |||
51 | } catch (\Exception $e) { |
||
52 | $this->_messageManager->addErrorMessage($e->getMessage()); |
||
53 | } |
||
54 | return []; |
||
55 | } |
||
70 | } |
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