PerformsSearches   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 20
wmc 2
lcom 0
cbo 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A performSearch() 0 4 1
A getElasticsearchService() 0 4 1
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