Skip to content

Commit 94029e3

Browse files
author
Nico
committed
Cleanup
1 parent 298e054 commit 94029e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nicoSWD/Rules/AST/Nodes/BaseNode.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ protected function hasMethodCall()
8585
*/
8686
public function getMethod(Tokens\BaseToken $token)
8787
{
88-
$methodName = trim($this->getMethodName());
88+
$methodName = $this->getMethodName();
8989
$methodClass = '\nicoSWD\Rules\Core\Methods\\' . ucfirst($methodName);
9090

9191
if (!class_exists($methodClass)) {
@@ -121,7 +121,7 @@ protected function getMethodName()
121121
$this->ast->next();
122122
} while ($this->ast->getStack()->current()->getOffset() < $this->methodOffset);
123123

124-
return ltrim(rtrim($this->methodName, " \r\n("), '. ');
124+
return trim(ltrim(rtrim($this->methodName, "\r\n("), '.'));
125125
}
126126

127127
/**

0 commit comments

Comments
 (0)