| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | private static function haveConflicts(MappingInterface $subject, MappingInterface $opponent): bool |
||
| 26 | { |
||
| 27 | if (static::haveTypeConflict($subject, $opponent)) { |
||
| 28 | return true; |
||
| 29 | } |
||
| 30 | if (static::haveParameterConflicts($subject, $opponent)) { |
||
| 31 | return true; |
||
| 32 | } |
||
| 33 | return static::havePropertyConflicts($subject, $opponent); |
||
| 34 | } |
||
| 61 |
If the size of the collection does not change during the iteration, it is generally a good practice to compute it beforehand, and not on each iteration: