for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PlaygroundGame\Mapper;
use Doctrine\ORM\EntityManager;
use PlaygroundGame\Options\ModuleOptions;
use Zend\Stdlib\Hydrator\HydratorInterface;
use ZfcBase\EventManager\EventProvider;
use PlaygroundGame\Mapper\AbstractMapper;
class Invitation extends AbstractMapper
{
public function findByUser($user)
return $this->getEntityRepository()->findBy(array('user'=>$user));
}
public function findByRequestKey($key)
return $this->getEntityRepository()->findBy(array('requestKey'=>$key));
/**
* @param string $id
$id
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter $italy is not defined by the method finale(...).
$italy
finale(...)
/** * @param array $germany * @param array $island * @param array $italy */ function finale($germany, $island) { return "2:1"; }
The most likely cause is that the parameter was removed, but the annotation was not.
* @return \Heineken\Entity\Invitation
*/
public function findByGame($game)
return $this->getEntityRepository()->findBy(array('game'=>$game));
public function getEntityRepository()
return $this->em->getRepository('PlaygroundGame\Entity\Invitation');
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.