Skip to content

Commit 27055fc

Browse files
author
akos
committed
Revert 3 commits not related to this branch
This reverts commit 2a0b063.
1 parent 8b3f7e1 commit 27055fc

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

src/Application/Console/Definitions/AnalyseDefinition.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,28 @@ public static function get(): InputDefinition
2222
null,
2323
InputOption::VALUE_OPTIONAL,
2424
'Minimal Quality level to reach without throw error',
25-
'0'
25+
0
2626
),
2727
new InputOption(
2828
'min-complexity',
2929
null,
3030
InputOption::VALUE_OPTIONAL,
3131
'Minimal Complexity level to reach without throw error',
32-
'0'
32+
0
3333
),
3434
new InputOption(
3535
'min-architecture',
3636
null,
3737
InputOption::VALUE_OPTIONAL,
3838
'Minimal Architecture level to reach without throw error',
39-
'0'
39+
0
4040
),
4141
new InputOption(
4242
'min-style',
4343
null,
4444
InputOption::VALUE_OPTIONAL,
4545
'Minimal Style level to reach without throw error',
46-
'0'
46+
0
4747
),
4848
new InputOption(
4949
'disable-security-check',

tests/Domain/ConfigurationTest.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,11 @@ public function testResolveDirectoryPath(): void
8080

8181
public function testGetNumberOfThreads(): void
8282
{
83-
$sysCommand = 'nproc';
84-
8583
if (!file_exists('/usr/bin/nproc')) {
86-
$sysCommand = 'sysctl -n hw.logicalcpu';
87-
88-
if (!file_exists('/usr/sbin/sysctl')) {
89-
self::markTestSkipped('Unable to find nproc to get expected cores');
90-
}
84+
self::markTestSkipped('Unable to find nproc to get expected cores');
9185
}
9286

93-
$command = Process::fromShellCommandline($sysCommand);
87+
$command = Process::fromShellCommandline('nproc');
9488
$command->run();
9589
$expected = (int) $command->getOutput();
9690

0 commit comments

Comments
 (0)