Test Failed
Pull Request — main (#12)
by Daryl
02:36
created
src/Base/Base.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.