@@ -50,7 +50,7 @@ |
||
| 50 | 50 | $target = $node->next(); |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | - if ($target && ($parent = $target->parent()) instanceof ListItem && $parent->parent() instanceof ListBlock && $parent->parent()->isTight()) { |
|
| 53 | + if ($target && ($parent = $target->parent()) instanceof ListItem && $parent->parent() instanceof ListBlock && $parent->parent()->isTight()) { |
|
| 54 | 54 | $target = $parent; |
| 55 | 55 | } |
| 56 | 56 | |
@@ -39,9 +39,9 @@ discard block |
||
| 39 | 39 | $actualResult = $this->converter->convertToHtml($markdown); |
| 40 | 40 | |
| 41 | 41 | $failureMessage = sprintf('Unexpected result for "%s" test', $testName); |
| 42 | - $failureMessage .= "\n=== markdown ===============\n".$markdown; |
|
| 43 | - $failureMessage .= "\n=== expected ===============\n".$html; |
|
| 44 | - $failureMessage .= "\n=== got ====================\n".$actualResult; |
|
| 42 | + $failureMessage .= "\n=== markdown ===============\n" . $markdown; |
|
| 43 | + $failureMessage .= "\n=== expected ===============\n" . $html; |
|
| 44 | + $failureMessage .= "\n=== got ====================\n" . $actualResult; |
|
| 45 | 45 | |
| 46 | 46 | $this->assertEquals($html, $actualResult, $failureMessage); |
| 47 | 47 | } |
@@ -52,10 +52,10 @@ discard block |
||
| 52 | 52 | public function dataProvider() |
| 53 | 53 | { |
| 54 | 54 | $ret = []; |
| 55 | - foreach (glob(__DIR__.'/data/*.md') as $markdownFile) { |
|
| 55 | + foreach (glob(__DIR__ . '/data/*.md') as $markdownFile) { |
|
| 56 | 56 | $testName = basename($markdownFile, '.md'); |
| 57 | 57 | $markdown = file_get_contents($markdownFile); |
| 58 | - $html = file_get_contents(__DIR__.'/data/'.$testName.'.html'); |
|
| 58 | + $html = file_get_contents(__DIR__ . '/data/' . $testName . '.html'); |
|
| 59 | 59 | |
| 60 | 60 | $ret[] = [$markdown, $html, $testName]; |
| 61 | 61 | } |