| Conditions | 9 |
| Paths | 256 |
| Total Lines | 29 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function testRuleNotAppliesToIfsWithConditionsOnly() |
||
| 24 | { |
||
| 25 | $foo = 'bar'; |
||
| 26 | |||
| 27 | if ($foo == 'bar') { // not applied |
||
| 28 | // ... |
||
| 29 | } |
||
| 30 | if ($foo === 'bar') { // not applied |
||
| 31 | // ... |
||
| 32 | } |
||
| 33 | if ($foo != 'bar') { // not applied |
||
| 34 | // ... |
||
| 35 | } |
||
| 36 | if ($foo !== 'bar') { // not applied |
||
| 37 | // ... |
||
| 38 | } |
||
| 39 | if ($foo > 1) { // not applied |
||
| 40 | // ... |
||
| 41 | } |
||
| 42 | if ($foo >= 1) { // not applied |
||
| 43 | // ... |
||
| 44 | } |
||
| 45 | if ($foo < 1) { // not applied |
||
| 46 | // ... |
||
| 47 | } |
||
| 48 | if ($foo <= 1) { // not applied |
||
| 49 | // ... |
||
| 50 | } |
||
| 51 | } |
||
| 52 | } |
||
| 53 |