Skip to content

Commit 0234890

Browse files
committed
Fix some documentation & spacing issues
1 parent 0df1d73 commit 0234890

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/ElasticquentCollectionTrait.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ trait ElasticquentCollectionTrait
1313
/**
1414
* Add To Index
1515
*
16-
* Add all documents in this collection to
17-
* to the Elasticsearch document index.
16+
* Add all documents in this collection to to the Elasticsearch document index.
1817
*
19-
* @return mixed
18+
* @return null|array
2019
*/
2120
public function addToIndex()
2221
{

src/ElasticquentConfigTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ protected function getConfigHelper()
5454
*/
5555
protected function getConfigFile()
5656
{
57-
return __DIR__.'/config/elasticquent.php';
57+
return __DIR__ . '/config/elasticquent.php';
5858
}
5959
}

src/ElasticquentPaginator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ public function __construct($items, $hits, $total, $perPage, $currentPage = null
2424
$this->perPage = $perPage;
2525
$this->lastPage = (int) ceil($total / $perPage);
2626
$this->currentPage = $this->setCurrentPage($currentPage, $this->lastPage);
27-
$this->path = $this->path != '/' ? rtrim($this->path, '/').'/' : $this->path;
27+
$this->path = $this->path != '/' ? rtrim($this->path, '/') . '/' : $this->path;
2828
$this->items = $items instanceof Collection ? $items : Collection::make($items);
2929
$this->hits = $hits;
3030
}
31+
3132
/**
3233
* Get the instance as an array.
3334
*

src/ElasticquentTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ trait ElasticquentTrait
6363
* New Collection
6464
*
6565
* @param array $models
66-
* @return Collection
66+
* @return ElasticquentCollection
6767
*/
6868
public function newCollection(array $models = array())
6969
{

src/EloquentMethods.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ abstract public function getTable();
2525
* @param array $attributes
2626
* @param bool $exists
2727
*/
28-
abstract public function newInstance($attributes =[], $exists = false);
28+
abstract public function newInstance($attributes = [], $exists = false);
2929

3030
/**
3131
* Get a new query builder for the model's table.

0 commit comments

Comments
 (0)