@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | $data .= self::printNoteRecord($tree, null, $nrec); |
| 139 | 139 | } else { |
| 140 | 140 | $note = Registry::noteFactory()->make($nmatch[1], $tree); |
| 141 | - $data .= self::printNoteRecord($tree, $note); |
|
| 141 | + $data .= self::printNoteRecord($tree, $note); |
|
| 142 | 142 | } |
| 143 | 143 | } |
| 144 | 144 | |
@@ -352,7 +352,7 @@ discard block |
||
| 352 | 352 | if (preg_match_all('/\n3 (?:_HEB|ROMN) (.+)/', $placerec, $matches)) { |
| 353 | 353 | foreach ($matches[1] as $match) { |
| 354 | 354 | $wt_place = new Place($match, $tree); |
| 355 | - $html .= ' - ' . $wt_place->fullName(); |
|
| 355 | + $html .= ' - ' . $wt_place->fullName(); |
|
| 356 | 356 | } |
| 357 | 357 | } |
| 358 | 358 | |
@@ -366,7 +366,7 @@ discard block |
||
| 366 | 366 | // Links to external maps |
| 367 | 367 | $html .= app(ModuleService::class) |
| 368 | 368 | ->findByInterface(ModuleMapLinkInterface::class) |
| 369 | - ->map(fn (ModuleMapLinkInterface $module): string => ' ' . $module->mapLink($event)) |
|
| 369 | + ->map(fn(ModuleMapLinkInterface $module): string => ' ' . $module->mapLink($event)) |
|
| 370 | 370 | ->implode(''); |
| 371 | 371 | } |
| 372 | 372 | |
@@ -465,13 +465,13 @@ discard block |
||
| 465 | 465 | } |
| 466 | 466 | |
| 467 | 467 | // Filter existing tags |
| 468 | - $filter_fn = static fn (string $tag): bool => !in_array($tag, $unique_facts, true) || $record->facts([$tag])->isEmpty(); |
|
| 468 | + $filter_fn = static fn(string $tag): bool => !in_array($tag, $unique_facts, true) || $record->facts([$tag])->isEmpty(); |
|
| 469 | 469 | |
| 470 | 470 | $quick_facts = array_filter($quick_facts, $filter_fn); |
| 471 | 471 | |
| 472 | 472 | |
| 473 | 473 | // Create a label for a subtag |
| 474 | - $label_fn = static fn (string $subtag): string => Registry::elementFactory()->make($record->tag() . ':' . $subtag)->label(); |
|
| 474 | + $label_fn = static fn(string $subtag): string => Registry::elementFactory()->make($record->tag() . ':' . $subtag)->label(); |
|
| 475 | 475 | |
| 476 | 476 | $quick_facts = array_combine($quick_facts, array_map($label_fn, $quick_facts)); |
| 477 | 477 | $add_facts = array_combine($add_facts, array_map($label_fn, $add_facts)); |
@@ -71,7 +71,8 @@ |
||
| 71 | 71 | // Obey FORMAT_TEXT option strictly. To restore previous behaviour whereby |
| 72 | 72 | // text containing markdown tables is always interpreted as markdown |
| 73 | 73 | // uncomment the end of the next line |
| 74 | - if ($this->tree()->getPreference('FORMAT_TEXT') === 'markdown') { // || preg_match('/\| ? -{3,}/', $text) === 1) { |
|
| 74 | + if ($this->tree()->getPreference('FORMAT_TEXT') === 'markdown') { |
|
| 75 | +// || preg_match('/\| ? -{3,}/', $text) === 1) { |
|
| 75 | 76 | $paragraphs = ''; |
| 76 | 77 | // Split on "\n" except where the line is part of a markdown table (starts and ends with |) |
| 77 | 78 | $note_paras = preg_split('/(?<!^\|)(?<!\|)\n/', $text); |