| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | 19 | public function exists(TranslationInterface $translation): bool |
|
| 16 | { |
||
| 17 | 19 | return $this->query() |
|
|
|
|||
| 18 | ->where(static function ($q) use ($translation) { |
||
| 19 | 19 | $q->where('group', $translation->getGroup()) |
|
| 20 | 19 | ->where('key', $translation->getKey()); |
|
| 21 | 19 | }) |
|
| 22 | 19 | ->orWhere('id', $translation->getId()) |
|
| 23 | 19 | ->exists(); |
|
| 24 | } |
||
| 25 | } |
||
| 26 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.