| Conditions | 2 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | 5 | public function __invoke(?Order $order): string |
|
| 13 | { |
||
| 14 | 5 | $result = '<ul>'; |
|
| 15 | 5 | $result .= '<li>' . $this->view->escapeHtml($order->getFirstName()) . '</li>'; |
|
| 16 | 5 | $result .= '<li>' . $this->view->escapeHtml($order->getLastName()) . '</li>'; |
|
| 17 | 5 | $result .= '<li>' . $this->view->escapeHtml($order->getStreet()) . '</li>'; |
|
| 18 | 5 | $result .= '<li>' . $this->view->escapeHtml($order->getPostcode()) . '</li>'; |
|
| 19 | 5 | $result .= '<li>' . $this->view->escapeHtml($order->getLocality()) . '</li>'; |
|
| 20 | 5 | $result .= '<li>' . $this->view->escapeHtml($order->getCountry() ? $order->getCountry()->getName() : '') . '</li>'; |
|
| 21 | 5 | $result .= '</ul>'; |
|
| 22 | |||
| 23 | 5 | return $result; |
|
| 24 | } |
||
| 26 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.