@@ -121,9 +121,7 @@ |
||
121 | 121 | { |
122 | 122 | $propertyName = lcfirst(str_replace(' ', '', ucwords(str_replace('_', ' ', $key)))); |
123 | 123 | |
124 | - return (property_exists($this, $propertyName)) ? $propertyName : |
|
125 | - (property_exists($this, lcfirst($propertyName)) ? lcfirst($propertyName) : |
|
126 | - preg_replace_callback('/([A-Z])/', function($match) { |
|
124 | + return (property_exists($this, $propertyName)) ? $propertyName : (property_exists($this, lcfirst($propertyName)) ? lcfirst($propertyName) : preg_replace_callback('/([A-Z])/', function ($match) { |
|
127 | 125 | return strtolower('_' . $match[1]); |
128 | 126 | }, lcfirst($propertyName)) |
129 | 127 | ); |