@@ -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.", |
78 | 78 | E_USER_DEPRECATED |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | public function getName(): string |
138 | 138 | { |
139 | 139 | $name = $this->extraArgs()['name'] ?? ''; |
140 | - return (string)$name; |
|
140 | + return (string) $name; |
|
141 | 141 | } |
142 | 142 | |
143 | 143 | /** |
@@ -148,6 +148,6 @@ discard block |
||
148 | 148 | public function getDescription(): string |
149 | 149 | { |
150 | 150 | $description = $this->extraArgs()['description'] ?? ''; |
151 | - return (string)$description; |
|
151 | + return (string) $description; |
|
152 | 152 | } |
153 | 153 | } |