Conditions | 4 |
Paths | 4 |
Total Lines | 19 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function getHeader( $headerName, $regex = null ) |
||
20 | { |
||
21 | $headers = $this->getHeaders(); |
||
|
|||
22 | |||
23 | $value = null; |
||
24 | |||
25 | /** @var Google_Service_Gmail_MessagePartHeader $header */ |
||
26 | foreach ( $headers as $header ) { |
||
27 | if ( $header->getName() === $headerName ) { |
||
28 | $value = $header->getValue(); |
||
29 | if ( ! is_null( $regex ) ) { |
||
30 | preg_match_all( $regex, $header->getValue(), $value ); |
||
31 | } |
||
32 | break; |
||
33 | } |
||
34 | } |
||
35 | |||
36 | return $value; |
||
37 | } |
||
38 | |||
39 | } |
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.