PerformsSearches::getElasticsearchService()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Nord\Lumen\Core\Traits;
4
5
use Nord\Lumen\Elasticsearch\Contracts\ElasticsearchService;
6
7
trait PerformsSearches
8
{
9
    /**
10
     * @param array $params
11
     *
12
     * @return array
13
     */
14
    private function performSearch(array $params = [])
0 ignored issues
show
Unused Code introduced by
This method is not used, and could be removed.
Loading history...
15
    {
16
        return $this->getElasticsearchService()->search($params);
17
    }
18
19
    /**
20
     * @return ElasticsearchService
21
     */
22
    private function getElasticsearchService()
23
    {
24
        return app(ElasticsearchService::class);
25
    }
26
}
27