for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Kunstmaan\ArticleBundle\Entity;
use Kunstmaan\ArticleBundle\PagePartAdmin\AbstractArticleOverviewPagePagePartAdminConfigurator;
use Kunstmaan\NodeBundle\Controller\SlugActionInterface;
use Kunstmaan\NodeBundle\Entity\AbstractPage;
use Kunstmaan\PagePartBundle\Helper\HasPagePartsInterface;
use Kunstmaan\PagePartBundle\PagePartAdmin\AbstractPagePartAdminConfigurator;
/**
* The article overview page which shows its articles
*/
abstract class AbstractArticleOverviewPage extends AbstractPage implements HasPagePartsInterface, SlugActionInterface
{
* @return array
public function getPossibleChildTypes()
return array();
}
* @return AbstractPagePartAdminConfigurator[]
AbstractArticleOverviewP...PartAdminConfigurator[]
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.
array
public function getPagePartAdminConfigurations()
return array(new AbstractArticleOverviewPagePagePartAdminConfigurator());
* Return the Article repository
*
* @param $em
* @return mixed
abstract public function getArticleRepository($em);
* @return string
public function getDefaultView()
return 'KunstmaanArticleBundle:AbstractArticleOverviewPage:view.html.twig';
public function getControllerAction()
return 'KunstmaanArticleBundle:AbstractArticleOverviewPage:service';
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.