Skip to content

Commit

Permalink
[TASK] Skip false positives in extension scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
georgringer committed Jul 7, 2024
1 parent 4ebec1a commit 8e6ad1a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Classes/Controller/AddressController.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ protected function getPidList(): array

// iterate through root-page ids and merge to array
foreach ($rootPIDs as $pid) {
// @extensionScannerIgnoreLine
$result = $this->queryGenerator->getTreeList($pid, (int) ($this->settings['recursive'] ?? 0));
if ($result) {
$subtreePids = explode(',', $result);
Expand Down
1 change: 1 addition & 0 deletions Classes/Database/QueryGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class QueryGenerator
* @param int $begin
* @return string comma separated list of descendant pages
*/
// @extensionScannerIgnoreLine
public function getTreeList($id, $depth, $begin = 0): string
{
$depth = (int) $depth;
Expand Down
1 change: 1 addition & 0 deletions Classes/ViewHelpers/MetaTagViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public static function renderStatic(array $arguments, \Closure $renderChildrenCl
if ($value) {
$property = $arguments['property'];
$metaTagManager = GeneralUtility::makeInstance(MetaTagManagerRegistry::class)->getManagerForProperty($property);
// @extensionScannerIgnoreLine
$metaTagManager->addProperty($property, $value);
}
}
Expand Down

0 comments on commit 8e6ad1a

Please sign in to comment.