| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 11 |
| Ratio | 100 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | 1 | View Code Duplication | public function getRoutingKeyFromHeader() |
| 39 | { |
||
| 40 | 1 | $headers = $this->getHeaders(); |
|
| 41 | |||
| 42 | 1 | if(! array_key_exists('routing_key', $headers)) |
|
| 43 | 1 | { |
|
| 44 | 1 | return null; |
|
| 45 | } |
||
| 46 | |||
| 47 | 1 | return $headers['routing_key']; |
|
| 48 | } |
||
| 49 | } |
||
| 50 |
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.