Skip to content

Commit

Permalink
Still battling format issues in TreePrivacyAction.php
Browse files Browse the repository at this point in the history
Replaced tab stops with spaces on lines 116,117, 127, and 128.

Removed extra tab stops on line 118
  • Loading branch information
dbq-andersons committed Feb 6, 2023
1 parent 99ae784 commit 7c75893
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/Http/RequestHandlers/TreePrivacyAction.php
Expand Up @@ -113,9 +113,9 @@ public function handle(ServerRequestInterface $request): ResponseInterface
$show_dead_people = Validator::parsedBody($request)->string('SHOW_DEAD_PEOPLE');
$show_living_names = Validator::parsedBody($request)->string('SHOW_LIVING_NAMES');
$show_private_relationships = Validator::parsedBody($request)->string('SHOW_PRIVATE_RELATIONSHIPS');
$show_source_detail_toggles = Validator::parsedBody($request)->string('SHOW_SOURCE_DETAIL_TOGGLES');
$show_source_titles = Validator::parsedBody($request)->string('SHOW_SOURCE_TITLES');
$show_source_detail_toggles = Validator::parsedBody($request)->string('SHOW_SOURCE_DETAIL_TOGGLES');
$show_source_titles = Validator::parsedBody($request)->string('SHOW_SOURCE_TITLES');

Check warning on line 117 in app/Http/RequestHandlers/TreePrivacyAction.php

View check run for this annotation

Codecov / codecov/patch

app/Http/RequestHandlers/TreePrivacyAction.php#L116-L117

Added lines #L116 - L117 were not covered by tests

$tree->setPreference('HIDE_LIVE_PEOPLE', $hide_live_people);
$tree->setPreference('KEEP_ALIVE_YEARS_BIRTH', (string) $keep_alive_years_birth);
$tree->setPreference('KEEP_ALIVE_YEARS_DEATH', (string) $keep_alive_years_death);
Expand All @@ -124,8 +124,8 @@ public function handle(ServerRequestInterface $request): ResponseInterface
$tree->setPreference('SHOW_DEAD_PEOPLE', $show_dead_people);
$tree->setPreference('SHOW_LIVING_NAMES', $show_living_names);
$tree->setPreference('SHOW_PRIVATE_RELATIONSHIPS', $show_private_relationships);
$tree->setPreference('SHOW_SOURCE_DETAIL_TOGGLES', $show_source_detail_toggles);
$tree->setPreference('SHOW_SOURCE_TITLES', $show_source_titles);
$tree->setPreference('SHOW_SOURCE_DETAIL_TOGGLES', $show_source_detail_toggles);
$tree->setPreference('SHOW_SOURCE_TITLES', $show_source_titles);

Check warning on line 128 in app/Http/RequestHandlers/TreePrivacyAction.php

View check run for this annotation

Codecov / codecov/patch

app/Http/RequestHandlers/TreePrivacyAction.php#L127-L128

Added lines #L127 - L128 were not covered by tests

FlashMessages::addMessage(I18N::translate('The preferences for the family tree “%s” have been updated.', e($tree->title())), 'success');

Expand Down

0 comments on commit 7c75893

Please sign in to comment.