Executor   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
dl 0
loc 11
rs 10
c 2
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 5 1
1
<?php
2
3
4
namespace Tohidplus\Paravel\Console\Commands;
5
6
use Tohidplus\Paravel\Facades\Serializer;
7
use Tohidplus\Paravel\ProcessHandler;
0 ignored issues
show
Bug introduced by
The type Tohidplus\Paravel\ProcessHandler 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...
8
use Illuminate\Console\Command;
0 ignored issues
show
Bug introduced by
The type Illuminate\Console\Command 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...
9
10
class Executor extends Command
11
{
12
    protected $signature = "parallel:run {process}";
13
    protected $description = "Runs parallel processes";
14
15
16
    public function handle()
17
    {
18
        /** @var ProcessHandler $process */
19
        $process = Serializer::base64_unserialize($this->argument('process'));
20
        echo Serializer::base64_serialize($process->handle());
21
    }
22
}
23