Issues (1426)

app/src/Util/Process.php (6 issues)

1
<?php
2
0 ignored issues
show
Missing file doc comment
Loading history...
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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
7
class Process extends BaseProcess
0 ignored issues
show
Missing doc comment for class Process
Loading history...
8
{
9
    static $forceSigchildEnabledGlobally = null;
10
    protected $forceSigchildEnabledIndividually = null;
11
12
    public static function forceSigchildEnabled($force)
0 ignored issues
show
Missing doc comment for function forceSigchildEnabled()
Loading history...
13
    {
14
        self::$forceSigchildEnabledGlobally = (bool) $force;
15
    }
16
17
    public function forceSigchildEnabledIndividually($force)
0 ignored issues
show
Missing doc comment for function forceSigchildEnabledIndividually()
Loading history...
18
    {
19
        $this->forceSigchildEnabledIndividually = (bool) $force;
20
    }
21
22
    protected function isSigchildEnabled()
0 ignored issues
show
Missing doc comment for function isSigchildEnabled()
Loading history...
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