This method 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...
18
{
19
$this->redirect()->responseCode('404');
20
21
return $this->twig('errors/404.html.twig', [
22
'title' => '404 Page Not Found :: ' . $this->data('title'),
This method 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...
27
{
28
$this->redirect()->responseCode('503');
29
30
return $this->twig('errors/503.html.twig', [
31
'title' => '503 Service Unavailable :: ' . $this->data('title'),
This method 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...
36
{
37
$this->redirect()->responseCode('503');
38
39
return $this->twig('errors/503.html.twig', [
40
'title' => '503 Service Unavailable :: ' . $this->data('title'),
41
]);
42
}
43
44
/**
45
* @param null $target
46
*
47
* @return mixed
48
*/
49
public abstract function redirect($target = null);
50
51
/**
52
* @param string $template
53
* @param array $params
54
*/
55
public abstract function twig(string $template, array $params = []): void;
56
57
/**
58
* @param string $key
59
*
60
* @return string|array
61
*/
62
public abstract function data(string $key = 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.