| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function resolve(string $path): string |
||
| 40 | { |
||
| 41 | if ($this->requestStack->getCurrentRequest()) { |
||
| 42 | $request = $this->requestStack->getCurrentRequest(); |
||
| 43 | |||
| 44 | $baseUrl = rtrim($request->getSchemeAndHttpHost() . $request->getBaseUrl(), '/'); |
||
| 45 | } else { |
||
| 46 | $baseUrl = ''; |
||
| 47 | } |
||
| 48 | |||
| 49 | return $baseUrl . '/' . ltrim($path, '/'); |
||
| 50 | } |
||
| 51 | } |
||
| 52 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.