| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | public function isCanonical(Property $property, Request $request): bool |
||
| 23 | { |
||
| 24 | $citySlug = $request->attributes->get('citySlug', ''); |
||
| 25 | $slug = $request->attributes->get('slug', ''); |
||
| 26 | |||
| 27 | if ($property->getCity()->getSlug() !== $citySlug || $property->getSlug() !== $slug) { |
||
| 28 | return false; |
||
| 29 | } |
||
| 30 | |||
| 31 | return true; |
||
| 32 | } |
||
| 54 |