diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2020-07-03 12:13:20 +0100 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2020-07-04 09:51:06 +0100 |
| commit | dec352c1d7404cdd35c9b1a1b5d97f29e7c4ebb5 (patch) | |
| tree | 2383561d35c33f954a176d9ed00f391dc7e0303f /app/Report/ReportHtmlCell.php | |
| parent | 6f68916103931ce3f715eba5c6f55acf120c084e (diff) | |
| download | webtrees-dec352c1d7404cdd35c9b1a1b5d97f29e7c4ebb5.tar.gz webtrees-dec352c1d7404cdd35c9b1a1b5d97f29e7c4ebb5.tar.bz2 webtrees-dec352c1d7404cdd35c9b1a1b5d97f29e7c4ebb5.zip | |
Use new PHP functions - str_starts_with(), str_ends_with() and str_contains()
Diffstat (limited to 'app/Report/ReportHtmlCell.php')
| -rw-r--r-- | app/Report/ReportHtmlCell.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Report/ReportHtmlCell.php b/app/Report/ReportHtmlCell.php index 5172a4a369..9082f32c06 100644 --- a/app/Report/ReportHtmlCell.php +++ b/app/Report/ReportHtmlCell.php @@ -2,7 +2,7 @@ /** * webtrees: online genealogy - * Copyright (C) 2019 webtrees development team + * Copyright (C) 2020 webtrees development team * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or @@ -19,9 +19,9 @@ declare(strict_types=1); namespace Fisharebest\Webtrees\Report; +use function str_contains; use function str_replace; use function stripos; -use function strpos; /** * Class ReportHtmlCell @@ -37,7 +37,7 @@ class ReportHtmlCell extends ReportBaseCell */ public function render($renderer) { - if (strpos($this->text, '{{:ptp:}}') !== false) { + if (str_contains($this->text, '{{:ptp:}}')) { return; } $temptext = str_replace('#PAGENUM#', (string) $renderer->pageNo(), $this->text); |
