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...
12
{
13
/**
14
* @param Undefined $undefined
15
* @param Enabled $enabled
16
* @param Message $warningMessage
17
*
18
* @return PhpUnitGuardCoverage
19
*/
20
public static function create(Undefined $undefined, Enabled $enabled, Message $warningMessage)
21
{
22
return new PhpUnitGuardCoverage($undefined, $enabled, $warningMessage);
23
}
24
25
/**
26
* @return PhpUnitGuardCoverage
27
*/
28
public static function random()
29
{
30
return self::create(
31
new Undefined(false),
32
EnabledStub::random(),
33
MessageStub::random()
34
);
35
}
36
37
/**
38
* @param string|null $message
39
* @return PhpUnitGuardCoverage
40
*/
41
public static function createEnabled($message = null)
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.