some formatting and cleaning up
This commit is contained in:
parent
300d189a9d
commit
77156b35aa
|
@ -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);
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue