File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed
src/Application/Console/Definitions Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -22,28 +22,28 @@ public static function get(): InputDefinition
22
22
null ,
23
23
InputOption::VALUE_OPTIONAL ,
24
24
'Minimal Quality level to reach without throw error ' ,
25
- ' 0 '
25
+ 0
26
26
),
27
27
new InputOption (
28
28
'min-complexity ' ,
29
29
null ,
30
30
InputOption::VALUE_OPTIONAL ,
31
31
'Minimal Complexity level to reach without throw error ' ,
32
- ' 0 '
32
+ 0
33
33
),
34
34
new InputOption (
35
35
'min-architecture ' ,
36
36
null ,
37
37
InputOption::VALUE_OPTIONAL ,
38
38
'Minimal Architecture level to reach without throw error ' ,
39
- ' 0 '
39
+ 0
40
40
),
41
41
new InputOption (
42
42
'min-style ' ,
43
43
null ,
44
44
InputOption::VALUE_OPTIONAL ,
45
45
'Minimal Style level to reach without throw error ' ,
46
- ' 0 '
46
+ 0
47
47
),
48
48
new InputOption (
49
49
'disable-security-check ' ,
Original file line number Diff line number Diff line change @@ -80,17 +80,11 @@ public function testResolveDirectoryPath(): void
80
80
81
81
public function testGetNumberOfThreads (): void
82
82
{
83
- $ sysCommand = 'nproc ' ;
84
-
85
83
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 ' );
91
85
}
92
86
93
- $ command = Process::fromShellCommandline ($ sysCommand );
87
+ $ command = Process::fromShellCommandline (' nproc ' );
94
88
$ command ->run ();
95
89
$ expected = (int ) $ command ->getOutput ();
96
90
You can’t perform that action at this time.
0 commit comments