Passed
Push — main ( 611808...493269 )
by Daryl
02:40
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.",
78 78
                 E_USER_DEPRECATED
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.