Conditions | 5 |
Paths | 5 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 5.9256 |
Changes | 3 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
30 | 2 | public function addFlushedPagesToCrawlerQueue(array $parameters, \TYPO3\CMS\Core\DataHandling\DataHandler $dataHandler): void |
|
|
|||
31 | { |
||
32 | 2 | $pageIdsToBeFlushedFromCache = $parameters['pageIdArray']; |
|
33 | 2 | if (empty($pageIdsToBeFlushedFromCache)) { |
|
34 | return; |
||
35 | } |
||
36 | 2 | foreach ($pageIdsToBeFlushedFromCache as $pageId) { |
|
37 | 2 | $pageId = (int) $pageId; |
|
38 | 2 | if ($pageId < 1) { |
|
39 | 2 | continue; |
|
40 | } |
||
41 | 2 | if ($this->getQueueRepository()->isPageInQueue($pageId)) { |
|
42 | 2 | continue; |
|
43 | } |
||
44 | 2 | $this->getCrawlerApi()->addPageToQueue($pageId); |
|
45 | } |
||
58 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.