Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2.0078 |
Changes | 0 |
1 | <?php |
||
46 | 8 | protected function getFindQuery() { |
|
47 | 8 | if ($this->query !== null) { |
|
48 | return $this->query; |
||
49 | } |
||
50 | |||
51 | 8 | $this->query = new Query(); |
|
52 | 8 | $this->query->custom(function (Token $token) { |
|
53 | 8 | return (boolean) preg_match(LineEndingAbstract::REGEX, $token->getValue()); |
|
54 | 8 | }); |
|
55 | |||
56 | 8 | return $this->query; |
|
57 | } |
||
58 | |||
69 | } |