| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | 34 | private function buildConditionString(): string |
|
| 47 | { |
||
| 48 | 34 | $whereConditions = array(); |
|
| 49 | 34 | foreach($this->conditions as $condition) |
|
| 50 | { |
||
| 51 | 28 | $conditionString = $condition->toString($this->escaper); |
|
| 52 | 28 | if(! empty($conditionString)) |
|
| 53 | { |
||
| 54 | 27 | $whereConditions[] = $conditionString; |
|
| 55 | } |
||
| 56 | } |
||
| 57 | |||
| 58 | 34 | return implode(' AND ', $whereConditions); |
|
| 59 | } |
||
| 60 | |||
| 66 |
The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using
the property is implicitly global.
To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.