@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * webtrees: online genealogy |
| 5 | 5 | * Copyright (C) 2018 webtrees development team |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | |
| 109 | 109 | $default_events = implode(',', self::DEFAULT_EVENTS); |
| 110 | 110 | |
| 111 | - $filter = (bool)$this->getBlockSetting($block_id, 'filter', '1'); |
|
| 111 | + $filter = (bool) $this->getBlockSetting($block_id, 'filter', '1'); |
|
| 112 | 112 | $infoStyle = $this->getBlockSetting($block_id, 'infoStyle', 'table'); |
| 113 | 113 | $sortStyle = $this->getBlockSetting($block_id, 'sortStyle', 'alpha'); |
| 114 | 114 | $events = $this->getBlockSetting($block_id, 'events', $default_events); |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * webtrees: online genealogy |
| 5 | 5 | * Copyright (C) 2018 webtrees development team |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | } else { |
| 62 | 62 | $title = I18N::translate('Sign in'); |
| 63 | 63 | $content = view('modules/login_block/sign-in', [ |
| 64 | - 'allow_register' => (bool)Site::getPreference('USE_REGISTRATION_MODULE'), |
|
| 64 | + 'allow_register' => (bool) Site::getPreference('USE_REGISTRATION_MODULE'), |
|
| 65 | 65 | ]); |
| 66 | 66 | } |
| 67 | 67 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * webtrees: online genealogy |
| 5 | 5 | * Copyright (C) 2018 webtrees development team |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | " ORDER BY page_count DESC LIMIT :limit" |
| 78 | 78 | )->execute([ |
| 79 | 79 | 'tree_id' => $tree->getTreeId(), |
| 80 | - 'limit' => (int)$num, |
|
| 80 | + 'limit' => (int) $num, |
|
| 81 | 81 | ])->fetchAssoc(); |
| 82 | 82 | |
| 83 | 83 | $content = '<table>'; |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * webtrees: online genealogy |
| 5 | 5 | * Copyright (C) 2018 webtrees development team |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | $this->checkModuleAccess($tree); |
| 161 | 161 | |
| 162 | 162 | $privatize_export = $request->get('privatize_export'); |
| 163 | - $convert = (bool)$request->get('convert'); |
|
| 163 | + $convert = (bool) $request->get('convert'); |
|
| 164 | 164 | |
| 165 | 165 | $cart = Session::get('cart', []); |
| 166 | 166 | |
@@ -273,7 +273,7 @@ discard block |
||
| 273 | 273 | |
| 274 | 274 | // Create a source, to indicate the source of the data. |
| 275 | 275 | $filetext .= "0 @WEBTREES@ SOUR\n1 TITL " . WT_BASE_URL . "\n"; |
| 276 | - $author = User::find($tree->getPreference('CONTACT_EMAIL')); |
|
| 276 | + $author = User::find($tree->getPreference('CONTACT_EMAIL')); |
|
| 277 | 277 | if ($author !== null) { |
| 278 | 278 | $filetext .= '1 AUTH ' . $author->getRealName() . "\n"; |
| 279 | 279 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * webtrees: online genealogy |
| 5 | 5 | * Copyright (C) 2018 webtrees development team |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | $days = (int) $this->getBlockSetting($block_id, 'days', self::DEFAULT_DAYS); |
| 59 | 59 | $infoStyle = $this->getBlockSetting($block_id, 'infoStyle', self::DEFAULT_INFO_STYLE); |
| 60 | 60 | $sortStyle = $this->getBlockSetting($block_id, 'sortStyle', self::DEFAULT_SORT_STYLE); |
| 61 | - $show_user = (bool)$this->getBlockSetting($block_id, 'show_user', self::DEFAULT_SHOW_USER); |
|
| 61 | + $show_user = (bool) $this->getBlockSetting($block_id, 'show_user', self::DEFAULT_SHOW_USER); |
|
| 62 | 62 | |
| 63 | 63 | extract($cfg, EXTR_OVERWRITE); |
| 64 | 64 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * webtrees: online genealogy |
| 5 | 5 | * Copyright (C) 2018 webtrees development team |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | public function getOptions(Request $request) |
| 63 | 63 | { |
| 64 | - $this->chan = (bool)$request->get('chan'); |
|
| 64 | + $this->chan = (bool) $request->get('chan'); |
|
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | /** |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * webtrees: online genealogy |
| 5 | 5 | * Copyright (C) 2018 webtrees development team |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | 'words' => I18N::translate('Match the exact text, unless it occurs in the middle of a word.'), |
| 177 | 177 | 'wildcards' => I18N::translate('Use a “?” to match a single character, use “*” to match zero or more characters.'), |
| 178 | 178 | /* I18N: http://en.wikipedia.org/wiki/Regular_expression */ |
| 179 | - 'regex' => I18N::translate('Regular expressions are an advanced pattern matching technique.') . '<br>' . I18N::translate('See %s for more information.', '<a href="http://php.net/manual/regexp.reference.php">php.net/manual/regexp.reference.php</a>'), |
|
| 179 | + 'regex' => I18N::translate('Regular expressions are an advanced pattern matching technique.') . '<br>' . I18N::translate('See %s for more information.', '<a href="http://php.net/manual/regexp.reference.php">php.net/manual/regexp.reference.php</a>'), |
|
| 180 | 180 | ]; |
| 181 | 181 | |
| 182 | 182 | return |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * webtrees: online genealogy |
| 5 | 5 | * Copyright (C) 2018 webtrees development team |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | 'generations' => 3, |
| 86 | 86 | 'layout' => PedigreeChartController::PORTRAIT, |
| 87 | 87 | ]); |
| 88 | - $content = view('modules/charts/chart', [ |
|
| 88 | + $content = view('modules/charts/chart', [ |
|
| 89 | 89 | 'block_id' => $block_id, |
| 90 | 90 | 'chart_url' => $chart_url, |
| 91 | 91 | ]); |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | 'generations' => 2, |
| 99 | 99 | 'chart_style' => 0, |
| 100 | 100 | ]); |
| 101 | - $content = view('modules/charts/chart', [ |
|
| 101 | + $content = view('modules/charts/chart', [ |
|
| 102 | 102 | 'block_id' => $block_id, |
| 103 | 103 | 'chart_url' => $chart_url, |
| 104 | 104 | ]); |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | 'generations' => 2, |
| 112 | 112 | 'layout' => PedigreeChartController::PORTRAIT, |
| 113 | 113 | ]); |
| 114 | - $content = view('modules/charts/chart', [ |
|
| 114 | + $content = view('modules/charts/chart', [ |
|
| 115 | 115 | 'block_id' => $block_id, |
| 116 | 116 | 'chart_url' => $chart_url, |
| 117 | 117 | ]); |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * webtrees: online genealogy |
| 5 | 5 | * Copyright (C) 2018 webtrees development team |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | public function postDeleteMessageAction(Request $request, Tree $tree): Response |
| 58 | 58 | { |
| 59 | - $message_ids = (array)$request->get('message_id', []); |
|
| 59 | + $message_ids = (array) $request->get('message_id', []); |
|
| 60 | 60 | |
| 61 | 61 | $stmt = Database::prepare("DELETE FROM `##message` WHERE user_id = :user_id AND message_id = :message_id"); |
| 62 | 62 | |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | |
| 102 | 102 | $content = ''; |
| 103 | 103 | if (!empty($users)) { |
| 104 | - $url = route('user-page', ['ged' => $tree->getName()]); |
|
| 104 | + $url = route('user-page', ['ged' => $tree->getName()]); |
|
| 105 | 105 | $content .= '<form onsubmit="return $("#to").val() !== """>'; |
| 106 | 106 | $content .= '<input type="hidden" name="route" value="message">'; |
| 107 | 107 | $content .= '<input type="hidden" name="ged" value="' . e($tree->getName()) . '">'; |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | $content .= '<td class="list_value_wrap"><a href="#" onclick="return expand_layer(\'message' . $message->message_id . '\');"><i id="message' . $message->message_id . '_img" class="icon-plus"></i> <b dir="auto">' . e($message->subject) . '</b></a></td>'; |
| 138 | 138 | $content .= '<td class="list_value_wrap">' . FunctionsDate::formatTimestamp($message->created + WT_TIMESTAMP_OFFSET) . '</td>'; |
| 139 | 139 | $content .= '<td class="list_value_wrap">'; |
| 140 | - $user = User::findByIdentifier($message->sender); |
|
| 140 | + $user = User::findByIdentifier($message->sender); |
|
| 141 | 141 | if ($user) { |
| 142 | 142 | $content .= '<span dir="auto">' . e($user->getRealName()) . '</span> - <span dir="auto">' . $user->getEmail() . '</span>'; |
| 143 | 143 | } else { |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | 'subject' => $message->subject, |
| 160 | 160 | 'ged' => $tree->getName(), |
| 161 | 161 | ]); |
| 162 | - $content .= '<a class="btn btn-primary" href="' . e($reply_url) . '" title="' . I18N::translate('Reply') . '">' . I18N::translate('Reply') . '</a> '; |
|
| 162 | + $content .= '<a class="btn btn-primary" href="' . e($reply_url) . '" title="' . I18N::translate('Reply') . '">' . I18N::translate('Reply') . '</a> '; |
|
| 163 | 163 | } |
| 164 | 164 | $content .= '<button type="button" class="btn btn-danger" data-confirm="' . I18N::translate('Are you sure you want to delete this message? It cannot be retrieved later.') . '" onclick="if (confirm(this.dataset.confirm)) {$(\'#messageform :checkbox\').prop(\'checked\', false); $(\'#cb_message' . $message->message_id . '\').prop(\'checked\', true); document.messageform.submit();}">' . I18N::translate('Delete') . '</button></div></td></tr>'; |
| 165 | 165 | } |