1 | <?php |
||
2 | |||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||
3 | namespace Db3v4l\Util; |
||
4 | |||
5 | use Symfony\Component\Process\Process as BaseProcess; |
||
0 ignored issues
–
show
The type
Symfony\Component\Process\Process was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
6 | |||
7 | class Process extends BaseProcess |
||
0 ignored issues
–
show
|
|||
8 | { |
||
9 | static $forceSigchildEnabledGlobally = null; |
||
10 | protected $forceSigchildEnabledIndividually = null; |
||
11 | |||
12 | public static function forceSigchildEnabled($force) |
||
0 ignored issues
–
show
|
|||
13 | { |
||
14 | self::$forceSigchildEnabledGlobally = (bool) $force; |
||
15 | } |
||
16 | |||
17 | public function forceSigchildEnabledIndividually($force) |
||
0 ignored issues
–
show
|
|||
18 | { |
||
19 | $this->forceSigchildEnabledIndividually = (bool) $force; |
||
20 | } |
||
21 | |||
22 | protected function isSigchildEnabled() |
||
0 ignored issues
–
show
|
|||
23 | { |
||
24 | if (null !== $this->forceSigchildEnabledIndividually) { |
||
25 | return $this->forceSigchildEnabledIndividually; |
||
26 | } |
||
27 | |||
28 | if (null !== self::$forceSigchildEnabledGlobally) { |
||
29 | return self::$forceSigchildEnabledGlobally; |
||
30 | } |
||
31 | |||
32 | return parent::isSigchildEnabled(); |
||
33 | } |
||
34 | } |
||
35 |