It seems like the GitHub access token used for retrieving details about this repository from
GitHub became invalid. This might prevent certain types of inspections from being run (in
particular,
everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
23
{
24
use AccessorTrait;
25
26
/**
27
* Identifier of the module.
28
*
29
* @var string
30
*/
31
private $module_id;
32
33
/**
34
* @return string
35
*/
36
protected function get_module_id()
37
{
38
return $this->module_id;
39
}
40
41
/**
42
* @param string $module_id
43
* @param int $code
44
* @param \Exception|null $previous
45
*/
46
public function __construct($module_id, $code = Status::INTERNAL_SERVER_ERROR, \Exception $previous = null)
47
{
48
$this->module_id = $module_id;
49
50
parent::__construct(\ICanBoogie\format('Module is not defined: %module_id', [
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.