some formatting and cleaning up

This commit is contained in:
Lea Haensenberger 2013-07-18 10:54:11 +02:00
parent 300d189a9d
commit 77156b35aa
4 changed files with 6 additions and 8 deletions

View file

@ -16,9 +16,9 @@ class ObjectSerializerPersister extends ObjectPersister
{
public function __construct(Type $type, ModelToElasticaTransformerInterface $transformer, $objectClass)
{
$this->type = $type;
$this->transformer = $transformer;
$this->objectClass = $objectClass;
$this->type = $type;
$this->transformer = $transformer;
$this->objectClass = $objectClass;
}
/**
@ -38,7 +38,7 @@ class ObjectSerializerPersister extends ObjectPersister
*
* @param object $object
* @return null
**/
*/
public function replaceOne($object)
{
$document = $this->transformToElasticaDocument($object);

View file

@ -113,7 +113,6 @@ class ModelToElasticaAutoTransformerTest extends \PHPUnit_Framework_TestCase
public function setUp()
{
if (!class_exists('Elastica\Document')) {
;
$this->markTestSkipped('The Elastica library classes are not available');
}
}

View file

@ -26,7 +26,6 @@ class ModelToElasticaIdentifierTransformerTest extends \PHPUnit_Framework_TestCa
public function setUp()
{
if (!class_exists('Elastica\Document')) {
;
$this->markTestSkipped('The Elastica library classes are not available');
}
}

View file

@ -5,8 +5,8 @@ namespace FOS\ElasticaBundle\Transformer;
use Elastica\Document;
/**
* Creates an elastica document with the id of
* the doctrine object as elastica document id
* Creates an Elastica document with the ID of
* the Doctrine object as Elastica document ID
*/
class ModelToElasticaIdentifierTransformer extends ModelToElasticaAutoTransformer
{