More QA
This commit is contained in:
parent
dd3269d1ef
commit
6a07f7b24e
|
@ -74,7 +74,7 @@ class RawPaginatorAdapter implements PaginatorAdapterInterface
|
||||||
? (integer) $this->query->getParam('size')
|
? (integer) $this->query->getParam('size')
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
if ($size && $size < $offset + $itemCountPerPage) {
|
if (null !== $size && $size < $offset + $itemCountPerPage) {
|
||||||
$itemCountPerPage = $size - $offset;
|
$itemCountPerPage = $size - $offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,8 @@ use Symfony\Component\DependencyInjection\Container;
|
||||||
|
|
||||||
class ResetCommandTest extends \PHPUnit_Framework_TestCase
|
class ResetCommandTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
|
private $command;
|
||||||
private $resetter;
|
private $resetter;
|
||||||
|
|
||||||
private $indexManager;
|
private $indexManager;
|
||||||
|
|
||||||
public function setup()
|
public function setup()
|
||||||
|
|
|
@ -272,6 +272,7 @@ namespace FOS\ElasticaBundle\Tests\Doctrine\Listener;
|
||||||
class Entity
|
class Entity
|
||||||
{
|
{
|
||||||
private $id;
|
private $id;
|
||||||
|
public $identifier;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param integer $id
|
* @param integer $id
|
||||||
|
|
Loading…
Reference in a new issue