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...
11
{
12
/**
13
* @var array
14
*/
15
private $profiles;
16
17
/**
18
* @var bool
19
*/
20
private $complete;
21
22
/**
23
* @param array $profiles
24
* @param bool $complete
25
*/
26
private function __construct(array $profiles, $complete)
27
{
28
$this->profiles = $profiles;
29
$this->complete = $complete;
30
}
31
32
/**
33
* @param array $data
34
*
35
* @return
36
*/
37
public static function createFromArray(array $data)
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.