@@ -3,9 +3,7 @@ |
||
| 3 | 3 | namespace As3\Modlr\Search\Elastic; |
| 4 | 4 | |
| 5 | 5 | use As3\Modlr\Metadata\EntityMetadata; |
| 6 | -use As3\Modlr\Metadata\Interfaces\SearchMetadataFactoryInterface; |
|
| 7 | 6 | use As3\Modlr\Persister\PersisterInterface; |
| 8 | -use As3\Modlr\Persister\Record; |
|
| 9 | 7 | use As3\Modlr\Search\ClientInterface; |
| 10 | 8 | |
| 11 | 9 | /** |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace As3\Modlr\Search\Elastic; |
| 4 | 4 | |
| 5 | -use As3\Modlr\Util\EntityUtility; |
|
| 6 | -use As3\Modlr\Exception\MetadataException; |
|
| 7 | 5 | use As3\Modlr\Metadata\EntityMetadata; |
| 8 | 6 | use As3\Modlr\Metadata\Interfaces\StorageMetadataFactoryInterface; |
| 9 | 7 | |
@@ -264,7 +264,7 @@ |
||
| 264 | 264 | * @param EntityMetadata &$metadata |
| 265 | 265 | * @param EntityMetadata $toAdd |
| 266 | 266 | */ |
| 267 | - private function mergeMetadata(EntityMetadata &$metadata = null, EntityMetadata $toAdd) |
|
| 267 | + private function mergeMetadata(EntityMetadata & $metadata = null, EntityMetadata $toAdd) |
|
| 268 | 268 | { |
| 269 | 269 | if (null === $metadata) { |
| 270 | 270 | $metadata = clone $toAdd; |
@@ -236,8 +236,8 @@ |
||
| 236 | 236 | if (isset($mapping['calculated']) && is_array($mapping['calculated'])) { |
| 237 | 237 | $calculated = $mapping['calculated']; |
| 238 | 238 | if (isset($calculated['class']) && isset($calculated['method'])) { |
| 239 | - $attribute->calculated['class'] = $calculated['class']; |
|
| 240 | - $attribute->calculated['method'] = $calculated['method']; |
|
| 239 | + $attribute->calculated['class'] = $calculated['class']; |
|
| 240 | + $attribute->calculated['method'] = $calculated['method']; |
|
| 241 | 241 | } |
| 242 | 242 | } |
| 243 | 243 | |