Executor   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A send() 0 3 1
1
<?php
2
3
namespace DeGraciaMathieu\Nero;
4
5
class Executor {
6
7
    /**
8
     * handle the death
9
     * @param  string|null $message
10
     * @param  string $parameter
11
     * @param  string $file
12
     * @param  integer $line
13
     * @return exit
0 ignored issues
show
Bug introduced by
The type DeGraciaMathieu\Nero\exit 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...
14
     */
15
    public function send($message, $parameter, $file, $line)
16
    {
17
        exit(sprintf($message, $parameter, $file, $line));
0 ignored issues
show
Best Practice introduced by
Using exit here is not recommended.

In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.

Loading history...
18
    }
19
}
20