Passed
Push — feature/optimize ( 219eef...0e0305 )
by Fu
03:34
created

ParserForceAndWhereTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 7
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A parserForceAndWhere() 0 5 1
1
<?php
2
3
4
namespace Modules\Core\Traits\Criteria;
5
6
/**
7
 * Trait ParserForceAndWhereTrait
8
 *
9
 * @property \Illuminate\Http\Request $request
10
 * @package Modules\Core\Traits\Criteria
11
 */
12
trait ParserForceAndWhereTrait
13
{
14
    protected function parserForceAndWhere()
15
    {
16
        $this->searchJoin = $this->request->get(config('repository.criteria.params.searchJoin', 'searchJoin'), null);
0 ignored issues
show
Bug Best Practice introduced by
The property searchJoin does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
17
18
        $this->modelForceAndWhere = strtolower($this->searchJoin) === 'and';
0 ignored issues
show
Bug Best Practice introduced by
The property modelForceAndWhere does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
19
    }
20
}