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

ParserForceAndWhereTrait::parserForceAndWhere()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
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
}