These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Kunstmaan\ArticleBundle\Entity; |
||
4 | |||
5 | use Kunstmaan\ArticleBundle\PagePartAdmin\AbstractArticleOverviewPagePagePartAdminConfigurator; |
||
6 | use Kunstmaan\NodeBundle\Controller\SlugActionInterface; |
||
7 | use Kunstmaan\NodeBundle\Entity\AbstractPage; |
||
8 | use Kunstmaan\PagePartBundle\Helper\HasPagePartsInterface; |
||
9 | use Kunstmaan\PagePartBundle\PagePartAdmin\AbstractPagePartAdminConfigurator; |
||
10 | |||
11 | /** |
||
12 | * The article overview page which shows its articles |
||
13 | */ |
||
14 | abstract class AbstractArticleOverviewPage extends AbstractPage implements HasPagePartsInterface, SlugActionInterface |
||
15 | { |
||
16 | /** |
||
17 | * @return array |
||
18 | */ |
||
19 | 1 | public function getPossibleChildTypes() |
|
20 | { |
||
21 | 1 | return []; |
|
22 | } |
||
23 | |||
24 | /** |
||
25 | * @return AbstractPagePartAdminConfigurator[] |
||
0 ignored issues
–
show
|
|||
26 | */ |
||
27 | 1 | public function getPagePartAdminConfigurations() |
|
28 | { |
||
29 | 1 | return [new AbstractArticleOverviewPagePagePartAdminConfigurator()]; |
|
30 | } |
||
31 | |||
32 | /** |
||
33 | * Return the Article repository |
||
34 | * |
||
35 | * @param $em |
||
36 | * |
||
37 | * @return mixed |
||
38 | */ |
||
39 | abstract public function getArticleRepository($em); |
||
40 | |||
41 | /** |
||
42 | * @return string |
||
43 | */ |
||
44 | 1 | public function getDefaultView() |
|
45 | { |
||
46 | 1 | return '@KunstmaanArticle/AbstractArticleOverviewPage/view.html.twig'; |
|
47 | } |
||
48 | |||
49 | 1 | public function getControllerAction() |
|
50 | { |
||
51 | 1 | return 'KunstmaanArticleBundle:AbstractArticleOverviewPage:service'; |
|
52 | } |
||
53 | } |
||
54 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.