@@ -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 |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | * @todo Add sorting and pagination (limit/skip). |
97 | 97 | * @todo Handle find all with identifiers. |
98 | 98 | * @param string $typeKey The model type. |
99 | - * @param array $idenitifiers The model identifiers (optional). |
|
99 | + * @param array $identifiers The model identifiers (optional). |
|
100 | 100 | * @return Collection |
101 | 101 | */ |
102 | 102 | public function findAll($typeKey, array $identifiers = []) |
@@ -526,7 +526,7 @@ discard block |
||
526 | 526 | /** |
527 | 527 | * Converts the id value to a normalized string. |
528 | 528 | * |
529 | - * @param mixed $identenfier The identifier to convert. |
|
529 | + * @param mixed $identifier The identifier to convert. |
|
530 | 530 | * @return string |
531 | 531 | */ |
532 | 532 | protected function convertId($identifier) |
@@ -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 |
@@ -24,7 +24,7 @@ |
||
24 | 24 | * |
25 | 25 | * @var string |
26 | 26 | */ |
27 | - private $prefix = 'ModlrData'; |
|
27 | + private $prefix = 'ModlrData'; |
|
28 | 28 | |
29 | 29 | /** |
30 | 30 | * Constructor. |