| Total Complexity | 5 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | trait SummaryExternTrait |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * todo move |
||
| 19 | * |
||
| 20 | * @param array $mapData |
||
| 21 | * |
||
| 22 | * @throws Exception |
||
| 23 | */ |
||
| 24 | protected function tagAndLog(array $mapData) |
||
| 25 | { |
||
| 26 | $this->log->debug('mapData', $mapData); |
||
| 27 | $this->summary->citationNumber = $this->summary->citationNumber ?? 0; |
||
| 28 | $this->summary->citationNumber++; |
||
| 29 | |||
| 30 | if (!isset($this->summary->memo['sites']) |
||
| 31 | || !in_array($this->externalPage->getPrettyDomainName(), $this->summary->memo['sites']) |
||
| 32 | ) { |
||
| 33 | $this->summary->memo['sites'][] = $this->externalPage->getPrettyDomainName(); // ??? |
||
| 34 | } |
||
| 35 | if (isset($mapData['accès url'])) { |
||
| 36 | $this->log->debug('accès 🔒 ' . $mapData['accès url']); |
||
| 37 | } |
||
| 38 | } |
||
| 39 | |||
| 40 | protected function addSummaryLog(array $mapData, Summary $summary) |
||
| 44 | } |
||
| 45 | } |