Skip to content

Commit ec56d6e

Browse files
committed
remove defer
1 parent 35e4a12 commit ec56d6e

File tree

3 files changed

+6
-57
lines changed

3 files changed

+6
-57
lines changed

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"composer/composer": "^2.8",
2222
"composer/xdebug-handler": "^3.0.5",
2323
"nikic/php-parser": "^5.1",
24-
"php-defer/php-defer": "^5.0",
2524
"savinmikhail/primitive_wrappers": "^1.2",
2625
"symfony/cache": "^7.2",
2726
"symfony/cache-contracts": "^3.5",

composer.lock

Lines changed: 3 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/AnalyzeComments/Analyzer/Analyzer.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,9 @@ public function analyze(): Report
6868
$commentStatistics = $this->statisticsAggregator->calculateCommentStatistics($comments);
6969
$report = $this->createReport($comments, $commentStatistics, $filesAnalyzed, $totalLinesOfCode);
7070

71-
$config = $this->config;
72-
defer($_, static function () use ($report, $config): void { // todo figure out how much sense it makes
73-
foreach ($config->plugins as $plugin) {
74-
$plugin->handle($report, $config);
75-
}
76-
});
71+
foreach ($this->config->plugins as $plugin) { // todo make it async
72+
$plugin->handle($report, $this->config);
73+
}
7774

7875
return $report;
7976
}

0 commit comments

Comments
 (0)