mambax7 /
adslight
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace XoopsModules\Adslight; |
||
| 6 | |||
| 7 | /* |
||
| 8 | You may not change or alter any portion of this comment or credits |
||
| 9 | of supporting developers from this source code or any supporting source code |
||
| 10 | which is considered copyrighted (c) material of the original comment or credit authors. |
||
| 11 | |||
| 12 | This program is distributed in the hope that it will be useful, |
||
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
||
| 15 | */ |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Module: Adslight |
||
| 19 | * |
||
| 20 | * @category Module |
||
| 21 | * @author XOOPS Development Team <https://xoops.org> |
||
| 22 | * @copyright {@link https://xoops.org/ XOOPS Project} |
||
| 23 | * @license GPL 2.0 or later |
||
| 24 | */ |
||
| 25 | |||
| 26 | use XoopsModules\Adslight\{ |
||
| 27 | Form |
||
| 28 | }; |
||
| 29 | |||
| 30 | |||
| 31 | //$permHelper = new \Xmf\Module\Helper\Permission(); |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Class Condition |
||
| 35 | */ |
||
| 36 | class Condition extends \XoopsObject |
||
| 37 | { |
||
| 38 | public $helper; |
||
| 39 | public $permHelper; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Constructor |
||
| 43 | * |
||
| 44 | * @param null |
||
| 45 | */ |
||
| 46 | public function __construct() |
||
| 47 | { |
||
| 48 | parent::__construct(); |
||
| 49 | // /** @var Adslight\Helper $helper */ |
||
| 50 | // $this->helper = Adslight\Helper::getInstance(); |
||
| 51 | $this->permHelper = new \Xmf\Module\Helper\Permission(); |
||
| 52 | |||
| 53 | $this->initVar('id_condition', \XOBJ_DTYPE_INT); |
||
| 54 | $this->initVar('nom_condition', \XOBJ_DTYPE_TXTBOX); |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Get form |
||
| 59 | * |
||
| 60 | * @param null |
||
| 61 | * @return Adslight\Form\ConditionForm |
||
|
0 ignored issues
–
show
|
|||
| 62 | */ |
||
| 63 | public function getForm(): Form\ConditionForm |
||
| 64 | { |
||
| 65 | $form = new Form\ConditionForm($this); |
||
| 66 | return $form; |
||
|
0 ignored issues
–
show
|
|||
| 67 | } |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @return array|null |
||
| 71 | */ |
||
| 72 | public function getGroupsRead(): ?array |
||
| 73 | { |
||
| 74 | //$permHelper = new \Xmf\Module\Helper\Permission(); |
||
| 75 | return $this->permHelper->getGroupsForItem('sbcolumns_read', $this->getVar('id_condition')); |
||
| 76 | } |
||
| 77 | |||
| 78 | /** |
||
| 79 | * @return array|null |
||
| 80 | */ |
||
| 81 | public function getGroupsSubmit(): ?array |
||
| 82 | { |
||
| 83 | //$permHelper = new \Xmf\Module\Helper\Permission(); |
||
| 84 | return $this->permHelper->getGroupsForItem('sbcolumns_submit', $this->getVar('id_condition')); |
||
| 85 | } |
||
| 86 | |||
| 87 | /** |
||
| 88 | * @return array|null |
||
| 89 | */ |
||
| 90 | public function getGroupsModeration(): ?array |
||
| 91 | { |
||
| 92 | //$permHelper = new \Xmf\Module\Helper\Permission(); |
||
| 93 | return $this->permHelper->getGroupsForItem('sbcolumns_moderation', $this->getVar('id_condition')); |
||
| 94 | } |
||
| 95 | } |
||
| 96 | |||
| 97 |
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