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\PagePartBundle\PagePartAdmin; |
||
4 | |||
5 | /** |
||
6 | * Builder |
||
7 | */ |
||
8 | class Builder |
||
9 | { |
||
10 | /** |
||
11 | * @return array |
||
0 ignored issues
–
show
|
|||
12 | */ |
||
13 | public function getPageParts() |
||
14 | { |
||
15 | $pageParts = array(array('name' => 'Header', 'class' => 'Kunstmaan\PagePartBundle\Entity\HeaderPagePart'), |
||
16 | array('name' => 'Text', 'class' => 'Kunstmaan\PagePartBundle\Entity\TextPagePart'), |
||
17 | array('name' => 'Link', 'class' => 'Kunstmaan\PagePartBundle\Entity\LinkPagePart'), |
||
18 | array('name' => 'Raw HTML', 'class' => 'Kunstmaan\PagePartBundle\Entity\RawHTMLPagePart'), |
||
19 | array('name' => 'Line', 'class' => 'Kunstmaan\PagePartBundle\Entity\LinePagePart'), |
||
20 | array('name' => 'TOC', 'class' => 'Kunstmaan\PagePartBundle\Entity\TocPagePart'), |
||
21 | array('name' => 'Link To Top', 'class' => 'Kunstmaan\PagePartBundle\Entity\ToTopPagePart'), ); |
||
22 | |||
23 | return $pageParts; |
||
24 | } |
||
25 | } |
||
26 |
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.