summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2021-06-25 10:15:39 +0100
committerGreg Roach <greg@subaqua.co.uk>2021-06-25 11:46:53 +0100
commit4a329a6c01c20d02be68ca91d0a95e583f97cbe1 (patch)
tree9a104cc03619c3ea677065b266e7551b9da378c2
parent8c3813717cf92d740bcd8270fbe7baab9cfbe721 (diff)
downloadwebtrees-4a329a6c01c20d02be68ca91d0a95e583f97cbe1.tar.gz
webtrees-4a329a6c01c20d02be68ca91d0a95e583f97cbe1.tar.bz2
webtrees-4a329a6c01c20d02be68ca91d0a95e583f97cbe1.zip
Remove unused imports
-rw-r--r--app/GedcomRecord.php9
-rw-r--r--phpstan-baseline.neon6
2 files changed, 6 insertions, 9 deletions
diff --git a/app/GedcomRecord.php b/app/GedcomRecord.php
index e9a32d088b..8ddebdde83 100644
--- a/app/GedcomRecord.php
+++ b/app/GedcomRecord.php
@@ -34,21 +34,16 @@ use Illuminate\Support\Collection;
use function addcslashes;
use function app;
use function array_combine;
-use function array_filter;
use function array_keys;
use function array_map;
-use function array_merge;
use function array_search;
use function array_shift;
-use function array_values;
use function assert;
use function count;
use function date;
use function e;
use function explode;
-use function implode;
use function in_array;
-use function max;
use function md5;
use function preg_match;
use function preg_match_all;
@@ -59,13 +54,9 @@ use function range;
use function route;
use function str_contains;
use function str_pad;
-use function str_repeat;
-use function str_starts_with;
use function strtoupper;
-use function substr_count;
use function trim;
-use const ARRAY_FILTER_USE_KEY;
use const PHP_INT_MAX;
use const PREG_SET_ORDER;
use const STR_PAD_LEFT;
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
index edb86f2ee1..b5ba0e5f12 100644
--- a/phpstan-baseline.neon
+++ b/phpstan-baseline.neon
@@ -16,6 +16,11 @@ parameters:
path: app/Date/AbstractCalendarDate.php
-
+ message: "#^Method Fisharebest\\\\Webtrees\\\\Elements\\\\AgeAtEvent\\:\\:value\\(\\) should return string but returns string\\|null\\.$#"
+ count: 1
+ path: app/Elements/AgeAtEvent.php
+
+ -
message: "#^Method Fisharebest\\\\Webtrees\\\\Elements\\\\DateValue\\:\\:escape\\(\\) should return string but returns string\\|null\\.$#"
count: 1
path: app/Elements/DateValue.php
@@ -2043,3 +2048,4 @@ parameters:
message: "#^Ternary operator condition is always true\\.$#"
count: 1
path: app/Webtrees.php
+