We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 298e054 commit 94029e3Copy full SHA for 94029e3
src/nicoSWD/Rules/AST/Nodes/BaseNode.php
@@ -85,7 +85,7 @@ protected function hasMethodCall()
85
*/
86
public function getMethod(Tokens\BaseToken $token)
87
{
88
- $methodName = trim($this->getMethodName());
+ $methodName = $this->getMethodName();
89
$methodClass = '\nicoSWD\Rules\Core\Methods\\' . ucfirst($methodName);
90
91
if (!class_exists($methodClass)) {
@@ -121,7 +121,7 @@ protected function getMethodName()
121
$this->ast->next();
122
} while ($this->ast->getStack()->current()->getOffset() < $this->methodOffset);
123
124
- return ltrim(rtrim($this->methodName, " \r\n("), '. ');
+ return trim(ltrim(rtrim($this->methodName, "\r\n("), '.'));
125
}
126
127
/**
0 commit comments