| @@ -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 | |
| @@ -45,7 +45,6 @@ | ||
| 45 | 45 | /** | 
| 46 | 46 | * Returns a set of autocomplete results for a model type, attribute key, and search value. | 
| 47 | 47 | * | 
| 48 | - * @param string $typeKey | |
| 49 | 48 | * @param string $attributeKey | 
| 50 | 49 | * @param string $searchValue | 
| 51 | 50 | * @return AutocompleteResult[] | 
| @@ -22,7 +22,7 @@ discard block | ||
| 22 | 22 | * Adds an event listener. | 
| 23 | 23 | * | 
| 24 | 24 | * @param string|array $eventNames The event name(s) to listen for. | 
| 25 | - * @param object $listener The event listener object. | |
| 25 | + * @param EventSubscriberInterface $listener The event listener object. | |
| 26 | 26 | * @return self | 
| 27 | 27 | * @throws \InvalidArgumentException If the listener does not contain the event method. | 
| 28 | 28 | */ | 
| @@ -111,7 +111,7 @@ discard block | ||
| 111 | 111 | * Removes an event listener, if registered. | 
| 112 | 112 | * | 
| 113 | 113 | * @param string|array $eventNames The event name(s) to listen for. | 
| 114 | - * @param object $listener The event listener object. | |
| 114 | + * @param EventSubscriberInterface $listener The event listener object. | |
| 115 | 115 | * @return self | 
| 116 | 116 | */ | 
| 117 | 117 | public function removeListener($eventNames, $listener) | 
| @@ -167,6 +167,7 @@ discard block | ||
| 167 | 167 | * | 
| 168 | 168 | * Overloaded to support relationships. | 
| 169 | 169 | * | 
| 170 | + * @param string $key | |
| 170 | 171 | */ | 
| 171 | 172 | public function get($key) | 
| 172 | 173 |      { | 
| @@ -412,6 +413,7 @@ discard block | ||
| 412 | 413 | * Sets a model property: an attribute value, a has-one model, or an entire has-many model collection. | 
| 413 | 414 | * Note: To push/remove a single Model into a has-many collection, or clear a collection, use @see push(), remove() and clear(). | 
| 414 | 415 | * | 
| 416 | + * @param Model|null $value | |
| 415 | 417 | */ | 
| 416 | 418 | public function set($key, $value) | 
| 417 | 419 |      { | 
| @@ -108,7 +108,7 @@ discard block | ||
| 108 | 108 | * @todo Add sorting and pagination (limit/skip). | 
| 109 | 109 | * @todo Handle find all with identifiers. | 
| 110 | 110 | * @param string $typeKey The model type. | 
| 111 | - * @param array $idenitifiers The model identifiers (optional). | |
| 111 | + * @param array $identifiers The model identifiers (optional). | |
| 112 | 112 | * @param array $fields | 
| 113 | 113 | * @param array $sort | 
| 114 | 114 | * @param int $offset | 
| @@ -394,7 +394,6 @@ discard block | ||
| 394 | 394 | /** | 
| 395 | 395 | * Loads a has-many embed collection. | 
| 396 | 396 | * | 
| 397 | - * @param EmbeddedPropMetadata $relMeta | |
| 398 | 397 | * @param array|null $embedDocs | 
| 399 | 398 | * @return Collections\EmbedCollection | 
| 400 | 399 | */ | 
| @@ -645,7 +644,7 @@ discard block | ||
| 645 | 644 | /** | 
| 646 | 645 | * Converts the id value to a normalized string. | 
| 647 | 646 | * | 
| 648 | - * @param mixed $identenfier The identifier to convert. | |
| 647 | + * @param mixed $identifier The identifier to convert. | |
| 649 | 648 | * @return string | 
| 650 | 649 | */ | 
| 651 | 650 | protected function convertId($identifier) |