| Conditions | 6 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function match(\ReflectionProperty $property, $givenName) |
||
| 19 | { |
||
| 20 | $propertyName = $property->getName(); |
||
| 21 | if ($propertyName === $givenName |
||
| 22 | || $propertyName === $this->camelize($givenName) //ErrorCode = error_code |
||
| 23 | || $propertyName === lcfirst($this->camelize($givenName)) // errorCode => error_code |
||
| 24 | || $propertyName === strtolower($this->camelize($givenName)) // errorcode => error_code |
||
| 25 | || strtolower($propertyName) === strtolower($givenName) // errorCode => ErroRCODe |
||
| 26 | ) { |
||
| 27 | return true; |
||
| 28 | } |
||
| 29 | |||
| 30 | return false; |
||
| 31 | } |
||
| 32 | |||
| 43 |