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...
14
{
15
use LocaleAwareMessageTrait;
16
17
/**
18
* @var string
19
*/
20
private $title;
21
22
/**
23
* @var string|null
24
*/
25
private $openingHours;
26
27
/**
28
* @param LocationTranslation $translation
29
*
30
* @return self
31
*/
32
public static function createFromLocationTranslation(LocationTranslation $translation): self
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.