Skip to content

Commit b8ac809

Browse files
committed
CS fixes
1 parent 1704f5a commit b8ac809

File tree

4 files changed

+4
-11
lines changed

4 files changed

+4
-11
lines changed

src/Command/CheckDocsCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use Symfony\CodeBlockChecker\Issue\IssueCollection;
1414
use Symfony\CodeBlockChecker\Listener\CodeNodeCollector;
1515
use Symfony\CodeBlockChecker\Service\Baseline;
16-
use Symfony\CodeBlockChecker\Service\CodeNodeRunner;
1716
use Symfony\CodeBlockChecker\Service\CodeRunner;
1817
use Symfony\CodeBlockChecker\Service\CodeValidator;
1918
use Symfony\Component\Console\Command\Command;

src/Service/CodeRunner.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
use Doctrine\RST\Nodes\CodeNode;
88
use Symfony\CodeBlockChecker\Issue\IssueCollection;
99
use Symfony\CodeBlockChecker\Service\CodeRunner\Runner;
10-
use Symfony\CodeBlockChecker\Service\CodeValidator\Validator;
1110

1211
/**
13-
* Run a Code Node inside a real application
12+
* Run a Code Node inside a real application.
1413
*
1514
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
1615
*/

src/Service/CodeRunner/ClassExist.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
use Doctrine\RST\Nodes\CodeNode;
66
use Symfony\CodeBlockChecker\Issue\Issue;
77
use Symfony\CodeBlockChecker\Issue\IssueCollection;
8-
use Symfony\CodeBlockChecker\Service\CodeRunner\Runner;
9-
use Symfony\Component\Filesystem\Filesystem;
108
use Symfony\Component\Process\Process;
119

1210
/**
@@ -29,9 +27,6 @@ public function run(array $nodes, IssueCollection $issues, string $applicationDi
2927
$this->testClasses($classes, $issues, $applicationDirectory);
3028
}
3129

32-
/**
33-
* @param list<string> $codeBlock
34-
*/
3530
private function getClasses(CodeNode $node): array
3631
{
3732
$language = $node->getLanguage() ?? 'php';
@@ -74,11 +69,11 @@ private function getClasses(CodeNode $node): array
7469
*
7570
* @param array{int, array{ class: string, line: int, node: CodeNode } } $classes
7671
*/
77-
private function testClasses(array $classes, IssueCollection $issues,string $applicationDirectory): void
72+
private function testClasses(array $classes, IssueCollection $issues, string $applicationDirectory): void
7873
{
7974
$fileBody = '';
8075
foreach ($classes as $i => $data) {
81-
$fileBody .= sprintf('%s => isLoaded("%s"),', $i, $data['class']) . "\n";
76+
$fileBody .= sprintf('%s => isLoaded("%s"),', $i, $data['class'])."\n";
8277
}
8378

8479
file_put_contents($applicationDirectory.'/class_exist.php', strtr('<?php

src/Service/CodeRunner/CodeNodeRunner.php renamed to src/Service/CodeRunner/ConfigurationRunner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
1515
*/
16-
class CodeNodeRunner
16+
class ConfigurationRunner
1717
{
1818
/**
1919
* @param list<CodeNode> $nodes

0 commit comments

Comments
 (0)