@@ -7,7 +7,7 @@ |
||
| 7 | 7 | |
| 8 | 8 | // Create a simple "default" Doctrine ORM configuration for Annotations |
| 9 | 9 | $isDevMode = true; |
| 10 | -$config = Setup::createAnnotationMetadataConfiguration(array(__DIR__."/entities"), $isDevMode, null,null,false); |
|
| 10 | +$config = Setup::createAnnotationMetadataConfiguration(array(__DIR__ . "/entities"), $isDevMode, null, null, false); |
|
| 11 | 11 | |
| 12 | 12 | // database configuration parameters |
| 13 | 13 | $conn = array( |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | { |
| 49 | 49 | // If an old version has saved data, these fields won't be available |
| 50 | 50 | // Default to the only services available in V0.1 |
| 51 | - if(!isset($data['serializer'])) { |
|
| 51 | + if (!isset($data['serializer'])) { |
|
| 52 | 52 | return new self( |
| 53 | 53 | $data['classname'], |
| 54 | 54 | $data['data'], |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | if ( |
| 79 | 79 | !$original->needsReencryption($this->encryptor->getIdentifier(), $this->serializer->getIdentifier()) |
| 80 | 80 | ) { |
| 81 | - return $original; |
|
| 81 | + return $original; |
|
| 82 | 82 | } |
| 83 | 83 | } |
| 84 | 84 | |
@@ -109,7 +109,7 @@ |
||
| 109 | 109 | $serializer = $this->serializers->get($value->getSerializerIdentifier()->toString()); |
| 110 | 110 | $encryptor = $this->encryptors->get($value->getEncryptorIdentifier()->toString()); |
| 111 | 111 | |
| 112 | - return function (& $wrappedObject, LazyLoadingInterface $proxy, $method, array $parameters, & $initializer) use ($serializer, $encryptor, $value) { |
|
| 112 | + return function(& $wrappedObject, LazyLoadingInterface $proxy, $method, array $parameters, & $initializer) use ($serializer, $encryptor, $value) { |
|
| 113 | 113 | $initializer = null; |
| 114 | 114 | $wrappedObject = $serializer->unserialize($encryptor->decrypt($value->getData())); |
| 115 | 115 | |