@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | // This helps encourage developers to use explicit getter methods |
| 73 | 73 | $commonMethods = ['id', 'name', 'description']; |
| 74 | 74 | if (in_array(strtolower($name), $commonMethods)) { |
| 75 | - $methodName = 'get' . ucfirst($name); |
|
| 75 | + $methodName = 'get'.ucfirst($name); |
|
| 76 | 76 | trigger_error( |
| 77 | 77 | "Magic method $name() is deprecated. Use explicit method $methodName() instead for better IDE support and type safety.", |
| 78 | 78 | E_USER_DEPRECATED |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | */ |
| 148 | 148 | public function getName(): string |
| 149 | 149 | { |
| 150 | - return (string)$this->get('Name', $this->get('name', '')); |
|
| 150 | + return (string) $this->get('Name', $this->get('name', '')); |
|
| 151 | 151 | } |
| 152 | 152 | |
| 153 | 153 | /** |
@@ -157,6 +157,6 @@ discard block |
||
| 157 | 157 | */ |
| 158 | 158 | public function getDescription(): string |
| 159 | 159 | { |
| 160 | - return (string)$this->get('Description', $this->get('description', '')); |
|
| 160 | + return (string) $this->get('Description', $this->get('description', '')); |
|
| 161 | 161 | } |
| 162 | 162 | } |