| Total Complexity | 1 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | abstract class IblockElementTable extends ElementTable |
||
| 10 | { |
||
| 11 | const TTL = 180; |
||
| 12 | protected static $iblockCode; |
||
| 13 | protected static $iblockId; |
||
| 14 | |||
| 15 | private function __construct(string $iblockCode) { |
||
| 18 | } |
||
| 19 | |||
| 20 | public static function init(string $iblockCode) { |
||
| 21 | return new static($iblockCode); |
||
| 22 | } |
||
| 23 | |||
| 24 | public static function getList(array $parameters = []) |
||
| 25 | { |
||
| 26 | initTagCache([ |
||
| 27 | 'iblock_code_'.static::$iblockCode, |
||
| 28 | 'iblock_id_'.static::$iblockId, |
||
| 29 | ]); |
||
| 30 | $parameters['filter']['IBLOCK_ID'] = static::$iblockId; |
||
| 31 | } |
||
| 32 | |||
| 33 | public static function getMap() |
||
| 34 | { |
||
| 35 | $map = parent::getMap(); |
||
| 36 | $map['PROPERTIES'] = new Reference( |
||
| 37 | 'PROPERTIES', |
||
| 38 | static::getPropertiesClass(), |
||
| 39 | ['=this.ID' => 'ref.IBLOCK_ELEMENT_ID'], |
||
| 40 | ['join_type' => 'LEFT'] |
||
| 41 | ); |
||
| 42 | |||
| 43 | return $map; |
||
| 44 | } |
||
| 45 | |||
| 46 | private static function getPropertiesClass(): IblockPropertyTable |
||
| 50 | }; |
||
| 51 | } |
||
| 52 | } |
||
| 53 |
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