| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function parse(ParserState $state) |
||
| 24 | { |
||
| 25 | $parsingKey = $state->isParsingKey(); |
||
| 26 | |||
| 27 | if ($state->getHeadCharacter() === Tokens::NEW_LINE) { |
||
| 28 | $parsingKey = true; |
||
| 29 | } |
||
| 30 | |||
| 31 | return new ParseResult( |
||
| 32 | new ParserState( |
||
| 33 | array_slice($state->getCharacters(), 1), |
||
| 34 | $state->getBraceCount(), |
||
| 35 | $state->isParsingString(), |
||
| 36 | $parsingKey |
||
| 37 | ), |
||
| 38 | null |
||
| 39 | ); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |