@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | // This helps encourage developers to use explicit getter methods |
| 39 | 39 | $commonMethods = ['id', 'name', 'description']; |
| 40 | 40 | if (in_array(strtolower($name), $commonMethods)) { |
| 41 | - $methodName = 'get' . ucfirst($name); |
|
| 41 | + $methodName = 'get'.ucfirst($name); |
|
| 42 | 42 | trigger_error( |
| 43 | 43 | "Magic method $name() is deprecated. Use explicit method $methodName() instead for better IDE support and type safety.", |
| 44 | 44 | E_USER_DEPRECATED |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | */ |
| 104 | 104 | public function getName(): string |
| 105 | 105 | { |
| 106 | - return (string)$this->get('Name', $this->get('name', '')); |
|
| 106 | + return (string) $this->get('Name', $this->get('name', '')); |
|
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | /** |
@@ -113,6 +113,6 @@ discard block |
||
| 113 | 113 | */ |
| 114 | 114 | public function getDescription(): string |
| 115 | 115 | { |
| 116 | - return (string)$this->get('Description', $this->get('description', '')); |
|
| 116 | + return (string) $this->get('Description', $this->get('description', '')); |
|
| 117 | 117 | } |
| 118 | 118 | } |
| 119 | 119 | \ No newline at end of file |