Skip to content
This repository was archived by the owner on Nov 4, 2021. It is now read-only.

Commit 60f5528

Browse files
committed
More fixes
1 parent 41f226e commit 60f5528

16 files changed

+65
-13
lines changed

src/Builders/FilterBuilder.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class FilterBuilder extends Builder
99
{
1010
/**
1111
* The condition array.
12+
*
1213
* @var array
1314
*/
1415
public $wheres = [
@@ -39,6 +40,7 @@ class FilterBuilder extends Builder
3940

4041
/**
4142
* The select array.
43+
*
4244
* @var array
4345
*/
4446
public $select = [];
@@ -424,6 +426,7 @@ public function profile()
424426

425427
/**
426428
* Build the payload.
429+
*
427430
* @return array
428431
*/
429432
public function buildPayload()
@@ -448,6 +451,7 @@ public function with($relations)
448451

449452
/**
450453
* Set the query offset.
454+
*
451455
* @param int $offset
452456
* @return $this
453457
*/

src/Console/ElasticIndexUpdateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ protected function updateIndex()
8383

8484
/**
8585
* Create a write alias.
86+
*
8687
* @return void
8788
*/
8889
protected function createWriteAlias()
@@ -116,7 +117,6 @@ protected function createWriteAlias()
116117
));
117118
}
118119

119-
120120
/**
121121
* Handle the command.
122122
*

src/Console/ElasticMigrateCommand.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class ElasticMigrateCommand extends Command
3030

3131
/**
3232
* Get the command arguments.
33+
*
3334
* @return array
3435
*/
3536
protected function getArguments()
@@ -60,6 +61,7 @@ protected function isTargetIndexExists()
6061

6162
/**
6263
* Create a target index
64+
*
6365
* @return void
6466
*/
6567
protected function createTargetIndex()
@@ -86,6 +88,7 @@ protected function createTargetIndex()
8688

8789
/**
8890
* Update the target index.
91+
*
8992
* @throws \Exception
9093
* @return void
9194
*/
@@ -139,6 +142,7 @@ protected function updateTargetIndex()
139142

140143
/**
141144
* Update the target index mapping.
145+
*
142146
* @return void
143147
*/
144148
protected function updateTargetIndexMapping()
@@ -196,6 +200,7 @@ protected function isAliasExists($name)
196200

197201
/**
198202
* Get an alias
203+
*
199204
* @param string $name
200205
* @return array
201206
*/
@@ -211,6 +216,7 @@ protected function getAlias($name)
211216

212217
/**
213218
* Delete an alias.
219+
*
214220
* @param string $name
215221
* @return void
216222
*/
@@ -241,6 +247,7 @@ protected function deleteAlias($name)
241247

242248
/**
243249
* Create an alias for the target index
250+
*
244251
* @param string $name
245252
* @return void
246253
*/
@@ -269,6 +276,7 @@ protected function createAliasForTargetIndex($name)
269276

270277
/**
271278
* Import the documents to the target index.
279+
*
272280
* @return void
273281
*
274282
*/
@@ -284,6 +292,7 @@ protected function importDocumentsToTargetIndex()
284292

285293
/**
286294
* Delete the source index.
295+
*
287296
* @return void
288297
*/
289298
protected function deleteSourceIndex()

src/Console/SearchableModelMakeCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ protected function getOptions()
5151

5252
/**
5353
* Get the index configurator.
54+
*
5455
* @return string
5556
*/
5657
protected function getIndexConfigurator()
@@ -60,6 +61,7 @@ protected function getIndexConfigurator()
6061

6162
/**
6263
* Get the search rule.
64+
*
6365
* @return string
6466
*/
6567
protected function getSearchRule()
@@ -69,6 +71,7 @@ protected function getSearchRule()
6971

7072
/**
7173
* Build the class.
74+
*
7275
* @param string $name
7376
* @return string
7477
*/

src/ElasticEngine.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,27 @@
1515

1616
class ElasticEngine extends Engine
1717
{
18-
1918
/**
2019
* The indexer interface.
20+
*
2121
* @var \ScoutElastic\Indexers\IndexerInterface
2222
*/
2323
protected $indexer;
2424

2525
/**
2626
* Should the mapping be updated.
27+
*
2728
* @var bool
2829
*/
2930
protected $updateMapping;
3031

3132
/**
3233
* The updated mappings.
34+
*
3335
* @var array
3436
*/
3537
static protected $updatedMappings = [];
3638

37-
3839
/**
3940
* ElasticEngine constructor.
4041
*
@@ -86,9 +87,9 @@ public function delete($models)
8687
$this->indexer->delete($models);
8788
}
8889

89-
9090
/**
9191
* Build the payload collection.
92+
*
9293
* @param \Laravel\Scout\Builder $builder
9394
* @param array $options
9495
* @return \Illuminate\Support\Collection
@@ -157,6 +158,7 @@ public function buildSearchQueryPayloadCollection(Builder $builder, array $optio
157158

158159
/**
159160
* Perform the search.
161+
*
160162
* @param \Laravel\Scout\Builder $builder
161163
* @param array $options
162164
* @return array|mixed
@@ -211,6 +213,7 @@ public function paginate(Builder $builder, $perPage, $page)
211213

212214
/**
213215
* Explain the search.
216+
*
214217
* @param \Laravel\Scout\Builder $builder
215218
* @return array|mixed
216219
*/
@@ -223,6 +226,7 @@ public function explain(Builder $builder)
223226

224227
/**
225228
* Profile the search
229+
*
226230
* @param \Laravel\Scout\Builder $builder
227231
* @return array|mixed
228232
*/
@@ -233,9 +237,9 @@ public function profile(Builder $builder)
233237
]);
234238
}
235239

236-
237240
/**
238241
* Return the number of documents found.
242+
*
239243
* @param \Laravel\Scout\Builder $builder
240244
* @return int
241245
*/
@@ -260,6 +264,7 @@ public function count(Builder $builder)
260264

261265
/**
262266
* Make a raw search.
267+
*
263268
* @param \Illuminate\Database\Eloquent\Model $model
264269
* @param array $query
265270
* @return mixed

src/Facades/ElasticClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
class ElasticClient extends Facade
88
{
99
/**
10-
1110
* Get the facade.
11+
*
1212
* @return string
1313
*/
1414
protected static function getFacadeAccessor()

src/Highlight.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class Highlight
66
{
77
/**
88
* The highlight array.
9+
*
910
* @var array
1011
*/
1112
private $highlight;
@@ -21,9 +22,9 @@ public function __construct(array $highlight)
2122
$this->highlight = $highlight;
2223
}
2324

24-
2525
/**
2626
* Get a value.
27+
*
2728
* @param string $key
2829
* @return mixed|string|null
2930
*/

src/IndexConfigurator.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,28 @@ abstract class IndexConfigurator
88
{
99
/**
1010
* The name
11+
*
1112
* @var string
1213
*/
1314
protected $name;
1415

1516
/**
1617
* The settings
18+
*
1719
* @var array
1820
*/
1921
protected $settings = [];
2022

2123
/**
2224
* The default mapping
25+
*
2326
* @var array
2427
*/
2528
protected $defaultMapping = [];
2629

2730
/**
2831
* Get th name
32+
*
2933
* @return string
3034
*/
3135
public function getName()
@@ -36,6 +40,7 @@ public function getName()
3640

3741
/**
3842
* Get the settings.
43+
*
3944
* @return array
4045
*/
4146
public function getSettings()

src/Indexers/IndexerInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ interface IndexerInterface
88
{
99
/**
1010
* Update documents.
11+
*
1112
* @param \Illuminate\Database\Eloquent\Collection $models
1213
* @return array
1314
*/
1415
public function update(Collection $models);
1516

1617
/**
1718
* Delete documents.
19+
*
1820
* @param \Illuminate\Database\Eloquent\Collection $models
1921
* @return array
2022
*/

src/Migratable.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ trait Migratable
66
{
77
/**
88
* Get the write alias.
9+
*
910
* @return string
1011
*/
1112
public function getWriteAlias()

0 commit comments

Comments
 (0)