Showing 20 of 20 total issues
Method createGrammarRules
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function createGrammarRules(): array
{
return [
new Concatenation(0, ['Value'], null),
(new Concatenation('Json', [0], 'Json'))->setDefaultId('Json'),
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 self::ERROR_MESSAGE_RECURSION;
Avoid too many return
statements within this method. Open
Open
return self::ERROR_MESSAGE_INF_OR_NAN;
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 self::ERROR_MESSAGE_UNKNOWN;
Avoid too many return
statements within this method. Open
Open
return self::ERROR_MESSAGE_UNSUPPORTED_TYPE;
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 self::ERROR_MESSAGE_UTF8;
Avoid too many return
statements within this method. Open
Open
return self::ERROR_MESSAGE_UTF16;
Avoid too many return
statements within this method. Open
Open
return self::ERROR_MESSAGE_INVALID_PROPERTY_NAME;
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);