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 | //$permHelper = new \Xmf\Module\Helper\Permission(); |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Class Itemvotes |
||
| 34 | */ |
||
| 35 | class Itemvotes extends \XoopsObject |
||
| 36 | { |
||
| 37 | public $helper; |
||
| 38 | public $permHelper; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Constructor |
||
| 42 | * |
||
| 43 | * @param null |
||
| 44 | */ |
||
| 45 | public function __construct() |
||
| 46 | { |
||
| 47 | parent::__construct(); |
||
| 48 | // /** @var Adslight\Helper $helper */ |
||
| 49 | // $this->helper = Adslight\Helper::getInstance(); |
||
| 50 | $this->permHelper = new \Xmf\Module\Helper\Permission(); |
||
| 51 | |||
| 52 | $this->initVar('ratingid', \XOBJ_DTYPE_INT); |
||
| 53 | $this->initVar('lid', \XOBJ_DTYPE_INT); |
||
| 54 | $this->initVar('ratinguser', \XOBJ_DTYPE_INT); |
||
| 55 | $this->initVar('rating', \XOBJ_DTYPE_INT); |
||
| 56 | $this->initVar('ratinghostname', \XOBJ_DTYPE_TXTBOX); |
||
| 57 | $this->initVar('ratingtimestamp', \XOBJ_DTYPE_INT); |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Get form |
||
| 62 | * |
||
| 63 | * @param null |
||
| 64 | * @return Adslight\Form\ItemvotesForm |
||
|
0 ignored issues
–
show
|
|||
| 65 | */ |
||
| 66 | public function getForm(): Form\ItemvotesForm |
||
| 67 | { |
||
| 68 | $form = new Form\ItemvotesForm($this); |
||
| 69 | return $form; |
||
|
0 ignored issues
–
show
|
|||
| 70 | } |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @return array|null |
||
| 74 | */ |
||
| 75 | public function getGroupsRead(): ?array |
||
| 76 | { |
||
| 77 | //$permHelper = new \Xmf\Module\Helper\Permission(); |
||
| 78 | return $this->permHelper->getGroupsForItem('sbcolumns_read', $this->getVar('ratingid')); |
||
| 79 | } |
||
| 80 | |||
| 81 | /** |
||
| 82 | * @return array|null |
||
| 83 | */ |
||
| 84 | public function getGroupsSubmit(): ?array |
||
| 85 | { |
||
| 86 | //$permHelper = new \Xmf\Module\Helper\Permission(); |
||
| 87 | return $this->permHelper->getGroupsForItem('sbcolumns_submit', $this->getVar('ratingid')); |
||
| 88 | } |
||
| 89 | |||
| 90 | /** |
||
| 91 | * @return array|null |
||
| 92 | */ |
||
| 93 | public function getGroupsModeration(): ?array |
||
| 94 | { |
||
| 95 | //$permHelper = new \Xmf\Module\Helper\Permission(); |
||
| 96 | return $this->permHelper->getGroupsForItem('sbcolumns_moderation', $this->getVar('ratingid')); |
||
| 97 | } |
||
| 98 | } |
||
| 99 | |||
| 100 |
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