@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Elastica\Exception\ResponseException; |
| 6 | 6 | use Elastica\Index\Settings as IndexSettings; |
| 7 | 7 | use Elastica\Index\Stats as IndexStats; |
| 8 | -use Elastica\ResultSet\BuilderInterface; |
|
| 9 | 8 | |
| 10 | 9 | /** |
| 11 | 10 | * Elastica index object. |
@@ -285,7 +285,7 @@ |
||
| 285 | 285 | * |
| 286 | 286 | * @throws Exception\InvalidException If offset doesn't exist |
| 287 | 287 | * |
| 288 | - * @return Result|null |
|
| 288 | + * @return Result |
|
| 289 | 289 | */ |
| 290 | 290 | public function offsetGet($offset) |
| 291 | 291 | { |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Elastica\Index; |
| 6 | 6 | use Elastica\Query\MatchAll; |
| 7 | 7 | use Elastica\ScanAndScroll; |
| 8 | -use Elastica\Search; |
|
| 9 | 8 | use Elastica\Type; |
| 10 | 9 | |
| 11 | 10 | /** |
@@ -80,12 +80,10 @@ |
||
| 80 | 80 | public function __construct(array $config = array(), $callback = null) |
| 81 | 81 | { |
| 82 | 82 | $dispatcher = isset($config['dispatcher']) ? |
| 83 | - $config['dispatcher'] : |
|
| 84 | - null; |
|
| 83 | + $config['dispatcher'] : null; |
|
| 85 | 84 | unset($config['dispatcher']); |
| 86 | 85 | $resultSetBuilder = isset($config['resultSetBuilder']) ? |
| 87 | - $config['resultSetBuilder'] : |
|
| 88 | - new Builder($dispatcher); |
|
| 86 | + $config['resultSetBuilder'] : new Builder($dispatcher); |
|
| 89 | 87 | unset($config['resultSetBuilder']); |
| 90 | 88 | |
| 91 | 89 | $this->_resultSetBuilder = $resultSetBuilder; |