| Conditions | 5 |
| Paths | 4 |
| Total Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 13 |
| CRAP Score | 5.1647 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | 30 | public function parse(ContextInterface $context, Cursor $cursor) |
|
| 33 | { |
||
| 34 | 30 | if ($cursor->getNextNonSpaceCharacter() !== 'A' || |
|
| 35 | 30 | $cursor->getCharacter($cursor->getNextNonSpacePosition() + 1) !== '>') { |
|
| 36 | 30 | return false; |
|
| 37 | } |
||
| 38 | |||
| 39 | 7 | $cursor->advanceToNextNonSpaceOrNewline(); |
|
| 40 | 7 | if ($cursor->peek() === '>') { |
|
| 41 | 7 | $cursor->advanceBy(2); |
|
| 42 | 7 | if ($cursor->getCharacter() === ' ') { |
|
| 43 | 7 | $cursor->advance(); |
|
| 44 | 7 | } |
|
| 45 | 7 | } |
|
| 46 | |||
| 47 | 7 | $context->addBlock(new Aside()); |
|
| 48 | |||
| 49 | 7 | return true; |
|
| 50 | } |
||
| 51 | } |
||
| 52 |