Skip to content

Commit 61f9b06

Browse files
authored
Upd. Scan. Improve flow to reduce gathering unneeded data. (#703)
* Upd. Scan. Improve flow to reduce gathering unneeded data. * redel
1 parent 2eeeed9 commit 61f9b06

3 files changed

Lines changed: 0 additions & 59 deletions

File tree

lib/CleantalkSP/SpbctWP/Scanner/Stages/DTO/SendFilesDTO.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,6 @@ class SendFilesDTO extends DTO
9999
*/
100100
public $suspicious = [];
101101

102-
/**
103-
* @var array
104-
*/
105-
public $unknown = [];
106-
107102
/**
108103
* @var string
109104
*/

lib/CleantalkSP/SpbctWP/Scanner/Stages/Repositories/UnknownRepository.php

Lines changed: 0 additions & 50 deletions
This file was deleted.

lib/CleantalkSP/SpbctWP/Scanner/Stages/SendResultsStage.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use CleantalkSP\SpbctWP\Scanner\Stages\Repositories\CriticalRepository;
1414
use CleantalkSP\SpbctWP\Scanner\Stages\Repositories\LinksRepository;
1515
use CleantalkSP\SpbctWP\Scanner\Stages\Repositories\SuspiciousRepository;
16-
use CleantalkSP\SpbctWP\Scanner\Stages\Repositories\UnknownRepository;
1716
use CleantalkSP\SpbctWP\Scanner\Surface;
1817
use CleantalkSP\Variables\Request;
1918

@@ -121,9 +120,6 @@ private function gatherFileData($dto)
121120
$suspicious = new SuspiciousRepository();
122121
$dto->suspicious = $suspicious->getResultData();
123122

124-
$unknown = new UnknownRepository();
125-
$dto->unknown = $unknown->getResultData();
126-
127123
if ( ! empty($dto->critical)) {
128124
$dto->failed_files = json_encode($dto->critical);
129125
$dto->failed_files_rows = count($dto->critical);

0 commit comments

Comments
 (0)