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...
9
{
10
/** @var Composer */
11
private $composer;
12
13
/** @var string */
14
private $output;
15
16
public function __construct(Composer $composer)
17
{
18
$this->composer = $composer;
19
$this->composer->setWorkingPath(base_path());
20
}
21
22
/**
23
* The name of the check.
24
*
25
* @return string
26
*/
27
public function name(): string
28
{
29
return 'Composer dependencies (without dev) are up to date';
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.