summaryrefslogtreecommitdiff
path: root/app/Report
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2021-11-05 14:35:05 +0000
committerGreg Roach <greg@subaqua.co.uk>2021-11-05 14:36:34 +0000
commit5183874f79e6c96ed7a5a66bc6a021feaad4d6f6 (patch)
tree8d1d3fb4523faf5f33cf964dd0cd2ba31dfa958e /app/Report
parenta9d9975cb8891e43f3aeecf15ca705843d2ef9cc (diff)
downloadwebtrees-5183874f79e6c96ed7a5a66bc6a021feaad4d6f6.tar.gz
webtrees-5183874f79e6c96ed7a5a66bc6a021feaad4d6f6.tar.bz2
webtrees-5183874f79e6c96ed7a5a66bc6a021feaad4d6f6.zip
Move RTL report support functions to reports folder/namespace
Diffstat (limited to 'app/Report')
-rw-r--r--app/Report/ReportPdfCell.php4
-rw-r--r--app/Report/ReportPdfText.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/app/Report/ReportPdfCell.php b/app/Report/ReportPdfCell.php
index 67330b9ddd..417dd12fc2 100644
--- a/app/Report/ReportPdfCell.php
+++ b/app/Report/ReportPdfCell.php
@@ -19,7 +19,7 @@ declare(strict_types=1);
namespace Fisharebest\Webtrees\Report;
-use Fisharebest\Webtrees\Functions\FunctionsRtl;
+use Fisharebest\Webtrees\Reports\RightToLeftSupport;
use function hexdec;
use function is_array;
@@ -130,7 +130,7 @@ class ReportPdfCell extends ReportBaseCell
if ($renderer->checkPageBreakPDF($cHT)) {
$this->top = $renderer->tcpdf->GetY();
}
- $temptext = FunctionsRtl::spanLtrRtl($temptext);
+ $temptext = RightToLeftSupport::spanLtrRtl($temptext);
}
// HTML ready - last value is true
$renderer->tcpdf->MultiCell(
diff --git a/app/Report/ReportPdfText.php b/app/Report/ReportPdfText.php
index 40b28306d2..6c7188d2d3 100644
--- a/app/Report/ReportPdfText.php
+++ b/app/Report/ReportPdfText.php
@@ -19,7 +19,7 @@ declare(strict_types=1);
namespace Fisharebest\Webtrees\Report;
-use Fisharebest\Webtrees\Functions\FunctionsRtl;
+use Fisharebest\Webtrees\Reports\RightToLeftSupport;
use function count;
use function explode;
@@ -66,7 +66,7 @@ class ReportPdfText extends ReportBaseText
} else {
$renderer->tcpdf->SetTextColor(0, 0, 0);
}
- $temptext = FunctionsRtl::spanLtrRtl($temptext);
+ $temptext = RightToLeftSupport::spanLtrRtl($temptext);
$temptext = str_replace(
[
'<br><span dir="rtl">',