src/Json/Json5/Ast/StringNode.php
Method render
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function render(TokenInterface $token, Readable $sources): string
{
switch ($token->getName()) {
case 'T_CHAR_UTF':
return $this->renderUtfChar($token->getValue(1));
Avoid too many return
statements within this method. Open
Open
return "\u{0000}";
Avoid too many return
statements within this method. Open
Open
return "\u{000D}";
Avoid too many return
statements within this method. Open
Open
return "\u{000B}";
Avoid too many return
statements within this method. Open
Open
return $token->getValue(1);
Avoid too many return
statements within this method. Open
Open
return "\u{0008}";
Avoid too many return
statements within this method. Open
Open
return '\\';
Avoid too many return
statements within this method. Open
Open
return "'";
Avoid too many return
statements within this method. Open
Open
return "\u{0009}";
Avoid too many return
statements within this method. Open
Open
return '"';
Avoid too many return
statements within this method. Open
Open
return "\u{000C}";
Avoid too many return
statements within this method. Open
Open
return $this->unpack($token, $sources);