summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2021-02-08 11:53:47 +0000
committerGreg Roach <greg@subaqua.co.uk>2021-02-08 11:53:47 +0000
commitb16bf9d4a5cf5c35ae96ea5e0c2087b1746b3d52 (patch)
tree040862d0a1239f338d1892af7393d873cf2c6a16 /resources
parent78e8481f8b7c84f66568f41c47f613604c77081f (diff)
downloadwebtrees-b16bf9d4a5cf5c35ae96ea5e0c2087b1746b3d52.tar.gz
webtrees-b16bf9d4a5cf5c35ae96ea5e0c2087b1746b3d52.tar.bz2
webtrees-b16bf9d4a5cf5c35ae96ea5e0c2087b1746b3d52.zip
CodeStyle - nested ternary operators
Diffstat (limited to 'resources')
-rw-r--r--resources/views/lists/families-table.phtml2
-rw-r--r--resources/views/lists/individuals-table.phtml2
-rw-r--r--resources/views/lists/media-table.phtml2
-rw-r--r--resources/views/lists/notes-table.phtml2
-rw-r--r--resources/views/lists/repositories-table.phtml2
-rw-r--r--resources/views/lists/sources-table.phtml2
-rw-r--r--resources/views/lists/submitters-table.phtml2
-rw-r--r--resources/views/media-page.phtml2
8 files changed, 8 insertions, 8 deletions
diff --git a/resources/views/lists/families-table.phtml b/resources/views/lists/families-table.phtml
index 3f667148ef..83b6041c93 100644
--- a/resources/views/lists/families-table.phtml
+++ b/resources/views/lists/families-table.phtml
@@ -238,7 +238,7 @@ $marriageAgeData = [
<?php $husb = $family->husband() ?? Registry::individualFactory()->new('H', '0 @H@ INDI', null, $family->tree()) ?>
<?php $wife = $family->wife() ?? Registry::individualFactory()->new('W', '0 @W@ INDI', null, $family->tree()) ?>
- <tr class="<?= $family->isPendingDeletion() ? 'wt-old' : ($family->isPendingAddition() ? 'wt-new' : '') ?>">
+ <tr class="<?= $family->isPendingAddition() ? 'wt-new' : '' ?> <?= $family->isPendingDeletion() ? 'wt-old' : '' ?>">
<!-- Husband name -->
<td colspan="2" data-sort="<?= e(str_replace([',', Individual::PRAENOMEN_NESCIO, Individual::NOMEN_NESCIO], 'AAAA', implode(',', array_reverse(explode(',', $husb->sortName()))))) ?>">
<?php foreach ($husb->getAllNames() as $num => $name) : ?>
diff --git a/resources/views/lists/individuals-table.phtml b/resources/views/lists/individuals-table.phtml
index 144f262c9a..4ee316f67e 100644
--- a/resources/views/lists/individuals-table.phtml
+++ b/resources/views/lists/individuals-table.phtml
@@ -263,7 +263,7 @@ $deathAgeData = [
<tbody>
<?php foreach ($individuals as $key => $individual) : ?>
- <tr class="<?= $individual->isPendingDeletion() ? 'wt-old' : ($individual->isPendingAddition() ? 'wt-new' : '') ?>">
+ <tr class="<?= $individual->isPendingAddition() ? 'wt-new' : '' ?> <?= $individual->isPendingDeletion() ? 'wt-old' : '' ?>">
<td colspan="2" data-sort="<?= e(str_replace([',', Individual::PRAENOMEN_NESCIO, Individual::NOMEN_NESCIO], 'AAAA', implode(',', array_reverse(explode(',', $individual->sortName()))))) ?>">
<?php foreach ($individual->getAllNames() as $num => $name) : ?>
<a title="<?= $name['type'] === 'NAME' ? '' : Registry::elementFactory()->make('INDI:NAME:' . $name['type'])->label() ?>" href="<?= e($individual->url()) ?>" class="<?= $num === $individual->getPrimaryName() ? 'name2' : '' ?>">
diff --git a/resources/views/lists/media-table.phtml b/resources/views/lists/media-table.phtml
index f306a7d28d..7acefb0da6 100644
--- a/resources/views/lists/media-table.phtml
+++ b/resources/views/lists/media-table.phtml
@@ -77,7 +77,7 @@ $count_sources = DB::table('sources')
<tbody>
<?php foreach ($media_objects as $media_object) : ?>
- <tr class="<?= $media_object->isPendingDeletion() ? 'wt-old' : ($media_object->isPendingAddition() ? 'wt-new' : '') ?>">
+ <tr class="<?= $media_object->isPendingAddition() ? 'wt-new' : '' ?> <?= $media_object->isPendingDeletion() ? 'wt-old' : '' ?>">
<!-- Thumbnails-->
<td data-sort="<?= e($media_object->sortName()) ?>">
<?php foreach ($media_object->mediaFiles() as $media_file) : ?>
diff --git a/resources/views/lists/notes-table.phtml b/resources/views/lists/notes-table.phtml
index 9c61c0aac0..2fef0c8edb 100644
--- a/resources/views/lists/notes-table.phtml
+++ b/resources/views/lists/notes-table.phtml
@@ -89,7 +89,7 @@ $count_sources = DB::table('sources')
<tbody>
<?php foreach ($notes as $note) : ?>
- <tr class="<?= $note->isPendingDeletion() ? 'wt-old' : ($note->isPendingAddition() ? 'wt-new' : '') ?>">
+ <tr class="<?= $note->isPendingAddition() ? 'wt-new' : '' ?> <?= $note->isPendingDeletion() ? 'wt-old' : '' ?>">
<!-- Title -->
<td data-sort="<?= e($note->sortName()) ?>">
<a href="<?= e($note->url()) ?>">
diff --git a/resources/views/lists/repositories-table.phtml b/resources/views/lists/repositories-table.phtml
index dd21192e7e..f190740d18 100644
--- a/resources/views/lists/repositories-table.phtml
+++ b/resources/views/lists/repositories-table.phtml
@@ -47,7 +47,7 @@ $count_sources = DB::table('sources')
<tbody>
<?php foreach ($repositories as $repository) : ?>
- <tr class="<?= $repository->isPendingDeletion() ? 'wt-old' : ($repository->isPendingAddition() ? 'wt-new' : '') ?>">
+ <tr class="<?= $repository->isPendingAddition() ? 'wt-new' : '' ?> <?= $repository->isPendingDeletion() ? 'wt-old' : '' ?>">
<!-- Repository name -->
<td data-sort="<?= e($repository->sortName()) ?>">
<a href="<?= e($repository->url()) ?>">
diff --git a/resources/views/lists/sources-table.phtml b/resources/views/lists/sources-table.phtml
index 19c5081193..d8c49adc27 100644
--- a/resources/views/lists/sources-table.phtml
+++ b/resources/views/lists/sources-table.phtml
@@ -96,7 +96,7 @@ $count_notes = DB::table('other')
<tbody>
<?php foreach ($sources as $source) : ?>
- <tr class="<?= $source->isPendingDeletion() ? 'wt-old' : ($source->isPendingAddition() ? 'wt-new' : '') ?>">
+ <tr class="<?= $source->isPendingAddition() ? 'wt-new' : '' ?> <?= $source->isPendingDeletion() ? 'wt-old' : '' ?>">
<!-- Title -->
<td data-sort="<?= e($source->sortName()) ?>">
<a href="<?= e($source->url()) ?>">
diff --git a/resources/views/lists/submitters-table.phtml b/resources/views/lists/submitters-table.phtml
index dea592f01e..07566a1eea 100644
--- a/resources/views/lists/submitters-table.phtml
+++ b/resources/views/lists/submitters-table.phtml
@@ -66,7 +66,7 @@ $count_families = DB::table('families')
<tbody>
<?php foreach ($submitters as $submitter) : ?>
- <tr class="<?= $submitter->isPendingDeletion() ? 'wt-old' : ($submitter->isPendingAddition() ? 'wt-new' : '') ?>">
+ <tr class="<?= $submitter->isPendingAddition() ? 'wt-new' : '' ?> <?= $submitter->isPendingDeletion() ? 'wt-old' : '' ?>">
<td data-sort="<?= e($submitter->sortName()) ?>">
<a href="<?= e($submitter->url()) ?>">
<?= $submitter->fullName() ?>
diff --git a/resources/views/media-page.phtml b/resources/views/media-page.phtml
index 4d3a554783..384812d773 100644
--- a/resources/views/media-page.phtml
+++ b/resources/views/media-page.phtml
@@ -91,7 +91,7 @@ use Illuminate\Support\Collection;
<div class="tab-pane active fade show" role="tabpanel" id="details">
<table class="table wt-facts-table">
<?php foreach ($media->mediaFiles() as $media_file) : ?>
- <tr class="<?= $media_file->isPendingAddition() ? 'wt-new' : '' ?><?= $media_file->isPendingDeletion() ? 'wt-old' : '' ?>">
+ <tr class="<?= $media_file->isPendingAddition() ? 'wt-new' : '' ?> <?= $media_file->isPendingDeletion() ? 'wt-old' : '' ?>">
<th scope="row">
<?= I18N::translate('Media file') ?>
<?php if ($media->canEdit()) : ?>