Skip to content

Commit f470d16

Browse files
committed
misc
1 parent 73619bf commit f470d16

File tree

4 files changed

+8
-18
lines changed

4 files changed

+8
-18
lines changed

.github/workflows/code_analysis.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ jobs:
3232
name: 'Jack: Outdated Breakpoint'
3333
run: ./bin/jack breakpoint --limit 3
3434

35+
-
36+
name: "Commented Code"
37+
run: vendor/bin/swiss-knife check-commented-code src tests --ansi
38+
3539
-
3640
name: 'Jack: Open Versions'
3741
run: ./bin/jack open-versions --dry-run
@@ -45,7 +49,7 @@ jobs:
4549
run: vendor/bin/class-leak check bin src tests --ansi --skip-type="\Entropy\Console\Contract\CommandInterface"
4650

4751
-
48-
name: 'Unusued check'
52+
name: 'Composer Dependency Analyser'
4953
run: vendor/bin/composer-dependency-analyser
5054

5155
name: ${{ matrix.actions.name }}

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414
"webmozart/assert": "^2.0"
1515
},
1616
"require-dev": {
17+
"phpecs/phpecs": "^2.2",
1718
"phpstan/extension-installer": "^1.4",
1819
"phpstan/phpstan": "^2.1",
1920
"phpunit/phpunit": "^12.5",
2021
"rector/rector": "^2.2",
22+
"rector/swiss-knife": "^2.3",
2123
"shipmonk/composer-dependency-analyser": "^1.8",
22-
"phpecs/phpecs": "^2.2",
2324
"symplify/phpstan-extensions": "^12.0",
2425
"tomasvotruba/class-leak": "^2.1",
2526
"tracy/tracy": "^2.11"

src/Command/OpenVersionsCommand.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,7 @@ public function run(int $limit = 5, bool $dryRun = false, bool $dev = false, ?st
8080
$outdatedComposer->getDevPackagesCount() === 1 ? '' : 's'
8181
), 1);
8282

83-
// @todo
84-
// $this->outputPrinter->title('Opening version constraints in "composer.json"');
85-
86-
// $limit = (int) $input->getOption('limit');
87-
// $dryRun = (bool) $input->getOption('dry-run');
88-
// $onlyDev = (bool) $input->getOption('dev');
89-
// $packagePrefix = $input->getOption('package-prefix');
83+
$this->outputPrinter->writeln('Opening version constraints in "composer.json"');
9084

9185
$composerJsonContents = FileSystem::read($composerJsonFilePath);
9286

src/DependencyInjection/ContainerFactory.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,11 @@
88

99
final class ContainerFactory
1010
{
11-
/**
12-
* @api used in bin and tests
13-
*/
1411
public function create(): Container
1512
{
1613
$container = new Container();
17-
1814
$container->autodiscover(__DIR__ . '/../../src');
1915

20-
// $container->service(CommandRegistry::class, function (Container $container): CommandRegistry {
21-
// $commands = $container->findByContract(CommandInterface::class);
22-
// return new CommandRegistry($commands);
23-
// });
24-
2516
return $container;
2617
}
2718
}

0 commit comments

Comments
 (0)