@@ -74,7 +74,7 @@ |
||
74 | 74 | $content = $stats->embedTags($content); |
75 | 75 | |
76 | 76 | if ($show_timestamp === '1') { |
77 | - $content .= '<br>' . FunctionsDate::formatTimestamp((int)$this->getBlockSetting($block_id, 'timestamp', WT_TIMESTAMP) + WT_TIMESTAMP_OFFSET); |
|
77 | + $content .= '<br>' . FunctionsDate::formatTimestamp((int) $this->getBlockSetting($block_id, 'timestamp', WT_TIMESTAMP) + WT_TIMESTAMP_OFFSET); |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | if ($template) { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | |
64 | 64 | switch ($infoStyle) { |
65 | 65 | case 'list': |
66 | - $males = $stats->commonGivenMaleTotals([ |
|
66 | + $males = $stats->commonGivenMaleTotals([ |
|
67 | 67 | 1, |
68 | 68 | $num, |
69 | 69 | 'rcount', |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | break; |
81 | 81 | default: |
82 | 82 | case 'table': |
83 | - $males = $stats->commonGivenMaleTable([ |
|
83 | + $males = $stats->commonGivenMaleTable([ |
|
84 | 84 | 1, |
85 | 85 | $num, |
86 | 86 | 'rcount', |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | $this->checkModuleAccess($tree); |
162 | 162 | |
163 | 163 | $privatize_export = $request->get('privatize_export'); |
164 | - $convert = (bool)$request->get('convert'); |
|
164 | + $convert = (bool) $request->get('convert'); |
|
165 | 165 | |
166 | 166 | $cart = Session::get('cart', []); |
167 | 167 | |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | |
275 | 275 | // Create a source, to indicate the source of the data. |
276 | 276 | $filetext .= "0 @WEBTREES@ SOUR\n1 TITL " . WT_BASE_URL . "\n"; |
277 | - $author = User::find($tree->getPreference('CONTACT_EMAIL')); |
|
277 | + $author = User::find($tree->getPreference('CONTACT_EMAIL')); |
|
278 | 278 | if ($author !== null) { |
279 | 279 | $filetext .= '1 AUTH ' . $author->getRealName() . "\n"; |
280 | 280 | } |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | { |
67 | 67 | global $ctype; |
68 | 68 | |
69 | - $days = (int)$this->getBlockSetting($block_id, 'days', self::DEFAULT_DAYS); |
|
69 | + $days = (int) $this->getBlockSetting($block_id, 'days', self::DEFAULT_DAYS); |
|
70 | 70 | $infoStyle = $this->getBlockSetting($block_id, 'infoStyle', self::DEFAULT_STYLE); |
71 | 71 | $calendar = $this->getBlockSetting($block_id, 'calendar', self::DEFAULT_CALENDAR); |
72 | 72 | |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | } |
122 | 122 | $yahrzeit_date = new Date($yahrzeit_date->format('%@ %A %O %E')); |
123 | 123 | |
124 | - $yahrzeits[] = (object)[ |
|
124 | + $yahrzeits[] = (object) [ |
|
125 | 125 | 'individual' => $fact->getParent(), |
126 | 126 | 'fact_date' => $fact->getDate(), |
127 | 127 | 'fact' => $fact, |
@@ -110,8 +110,8 @@ discard block |
||
110 | 110 | public function postAdminAction(Request $request): RedirectResponse |
111 | 111 | { |
112 | 112 | foreach (Tree::getAll() as $tree) { |
113 | - $include_in_sitemap = (bool)$request->get('sitemap' . $tree->getTreeId()); |
|
114 | - $tree->setPreference('include_in_sitemap', (string)$include_in_sitemap); |
|
113 | + $include_in_sitemap = (bool) $request->get('sitemap' . $tree->getTreeId()); |
|
114 | + $tree->setPreference('include_in_sitemap', (string) $include_in_sitemap); |
|
115 | 115 | } |
116 | 116 | |
117 | 117 | FlashMessages::addMessage(I18N::translate('The preferences for the module “%s” have been updated.', $this->getTitle()), 'success'); |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | */ |
127 | 127 | public function getIndexAction(Request $request): Response |
128 | 128 | { |
129 | - $timestamp = (int)$this->getPreference('sitemap.timestamp'); |
|
129 | + $timestamp = (int) $this->getPreference('sitemap.timestamp'); |
|
130 | 130 | |
131 | 131 | if ($timestamp > WT_TIMESTAMP - self::CACHE_LIFE) { |
132 | 132 | $content = $this->getPreference('sitemap.xml'); |
@@ -183,12 +183,12 @@ discard block |
||
183 | 183 | throw new NotFoundHttpException('Bad sitemap file'); |
184 | 184 | } |
185 | 185 | |
186 | - $timestamp = (int)$this->getPreference('sitemap-' . $file . '.timestamp'); |
|
186 | + $timestamp = (int) $this->getPreference('sitemap-' . $file . '.timestamp'); |
|
187 | 187 | |
188 | 188 | if ($timestamp > WT_TIMESTAMP - self::CACHE_LIFE) { |
189 | 189 | $content = $this->getPreference('sitemap-' . $file . '.xml'); |
190 | 190 | } else { |
191 | - $tree = Tree::findById((int)$match[1]); |
|
191 | + $tree = Tree::findById((int) $match[1]); |
|
192 | 192 | |
193 | 193 | if ($tree === null) { |
194 | 194 | throw new NotFoundHttpException('No such tree'); |
@@ -59,7 +59,7 @@ |
||
59 | 59 | } else { |
60 | 60 | $title = I18N::translate('Sign in'); |
61 | 61 | $content = view('modules/login_block/sign-in', [ |
62 | - 'allow_register' => (bool)Site::getPreference('USE_REGISTRATION_MODULE'), |
|
62 | + 'allow_register' => (bool) Site::getPreference('USE_REGISTRATION_MODULE'), |
|
63 | 63 | ]); |
64 | 64 | } |
65 | 65 |
@@ -57,7 +57,7 @@ |
||
57 | 57 | $days = $this->getBlockSetting($block_id, 'days', self::DEFAULT_DAYS); |
58 | 58 | $infoStyle = $this->getBlockSetting($block_id, 'infoStyle', self::DEFAULT_INFO_STYLE); |
59 | 59 | $sortStyle = $this->getBlockSetting($block_id, 'sortStyle', self::DEFAULT_SORT_STYLE); |
60 | - $show_user = (bool)$this->getBlockSetting($block_id, 'show_user', self::DEFAULT_SHOW_USER); |
|
60 | + $show_user = (bool) $this->getBlockSetting($block_id, 'show_user', self::DEFAULT_SHOW_USER); |
|
61 | 61 | |
62 | 62 | extract($cfg, EXTR_OVERWRITE); |
63 | 63 |
@@ -105,7 +105,7 @@ |
||
105 | 105 | |
106 | 106 | $default_events = implode(',', self::DEFAULT_EVENTS); |
107 | 107 | |
108 | - $filter = (bool)$this->getBlockSetting($block_id, 'filter', '1'); |
|
108 | + $filter = (bool) $this->getBlockSetting($block_id, 'filter', '1'); |
|
109 | 109 | $infoStyle = $this->getBlockSetting($block_id, 'infoStyle', 'table'); |
110 | 110 | $sortStyle = $this->getBlockSetting($block_id, 'sortStyle', 'alpha'); |
111 | 111 | $events = $this->getBlockSetting($block_id, 'events', $default_events); |
@@ -76,7 +76,7 @@ |
||
76 | 76 | " ORDER BY page_count DESC LIMIT :limit" |
77 | 77 | )->execute([ |
78 | 78 | 'tree_id' => $tree->getTreeId(), |
79 | - 'limit' => (int)$num, |
|
79 | + 'limit' => (int) $num, |
|
80 | 80 | ])->fetchAssoc(); |
81 | 81 | |
82 | 82 | $content = '<table>'; |