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...
8
{
9
/**
10
* @var string
11
*/
12
private $name;
13
14
/**
15
* @var string
16
*/
17
private $content;
18
19
/**
20
* @param string $name
21
* @param string $content
22
*
23
* @return MetaItem
24
*/
25
12
public static function create(string $name, string $content) : MetaItem {
26
12
return new self($name, $content);
27
}
28
29
/**
30
* @return string
31
*/
32
11
public function render(array $extra = []) : string {
33
11
$content = $this->content;
34
35
11
if ($this->isTitle() && isset($extra['title']['suffix'])) {
The function str_contains() has been deprecated with message: Str::contains() should be used directly instead. Will be removed in Laravel 5.9.
This function has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be
removed from the class and what other function to use instead.
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.