@@ -112,7 +112,7 @@ |
||
| 112 | 112 | * Returns the result of associating all keys of a given traversable object |
| 113 | 113 | * or array with their corresponding values, as well as those of this map. |
| 114 | 114 | * |
| 115 | - * @param array|\Traversable $values |
|
| 115 | + * @param Map $values |
|
| 116 | 116 | * |
| 117 | 117 | * @return Map |
| 118 | 118 | */ |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | - * @return the structures growth factor. |
|
| 40 | + * @return double structures growth factor. |
|
| 41 | 41 | */ |
| 42 | 42 | protected function getGrowthFactor(): float |
| 43 | 43 | { |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | /** |
| 95 | - * @return whether capacity should be increased. |
|
| 95 | + * @return boolean capacity should be increased. |
|
| 96 | 96 | */ |
| 97 | 97 | protected function shouldDecreaseCapacity(): bool |
| 98 | 98 | { |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | /** |
| 103 | - * @return whether capacity should be increased. |
|
| 103 | + * @return boolean capacity should be increased. |
|
| 104 | 104 | */ |
| 105 | 105 | protected function shouldIncreaseCapacity(): bool |
| 106 | 106 | { |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | */ |
| 89 | 89 | protected function decreaseCapacity() |
| 90 | 90 | { |
| 91 | - $this->capacity = max(self::MIN_CAPACITY, $this->capacity * $this->getDecayFactor()); |
|
| 91 | + $this->capacity = max(self::MIN_CAPACITY, $this->capacity * $this->getDecayFactor()); |
|
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | /** |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | - * @return whether capacity should be increased. |
|
| 26 | + * @return boolean capacity should be increased. |
|
| 27 | 27 | */ |
| 28 | 28 | protected function shouldIncreaseCapacity(): bool |
| 29 | 29 | { |