@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | /** |
| 16 | 16 | * @param string $key The field on which to filter |
| 17 | 17 | * @param array|string $location Location as coordinates array or geohash string ['lat' => 40.3, 'lon' => 45.2] |
| 18 | - * @param string|int $precision Integer length of geohash prefix or distance (3, or "50m") |
|
| 18 | + * @param integer $precision Integer length of geohash prefix or distance (3, or "50m") |
|
| 19 | 19 | * @param bool $neighbors If true, filters cells next to the given cell. |
| 20 | 20 | */ |
| 21 | 21 | public function __construct($key, $location, $precision = -1, $neighbors = false) |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | /** |
| 29 | 29 | * Set the precision for this filter. |
| 30 | 30 | * |
| 31 | - * @param string|int $precision Integer length of geohash prefix or distance (3, or "50m") |
|
| 31 | + * @param integer $precision Integer length of geohash prefix or distance (3, or "50m") |
|
| 32 | 32 | * |
| 33 | 33 | * @return $this |
| 34 | 34 | */ |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | * Construct HasParent filter. |
| 17 | 17 | * |
| 18 | 18 | * @param string|\Elastica\Query|\Elastica\Filter\AbstractFilter $query Query string or a Query object or a filter |
| 19 | - * @param string|\Elastica\Type $type Parent document type |
|
| 19 | + * @param string $type Parent document type |
|
| 20 | 20 | */ |
| 21 | 21 | public function __construct($query, $type) |
| 22 | 22 | { |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | { |
| 17 | 17 | /** |
| 18 | 18 | * @param AbstractFilter $filter filter which will be applied to docs in the specified indices |
| 19 | - * @param mixed[] $indices |
|
| 19 | + * @param string[] $indices |
|
| 20 | 20 | */ |
| 21 | 21 | public function __construct(AbstractFilter $filter, array $indices) |
| 22 | 22 | { |
@@ -79,6 +79,9 @@ |
||
| 79 | 79 | } |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | + /** |
|
| 83 | + * @param string $key |
|
| 84 | + */ |
|
| 82 | 85 | private function getConfig(Connection $conn, $key, $default = null) |
| 83 | 86 | { |
| 84 | 87 | return $conn->hasConfig($key) |