Completed
Pull Request — master (#1863)
by Rico
46:59 queued 36:45
created
app/Date/CalendarDate.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 
108 108
         // Construct from an array (of three gedcom-style strings: "1900", "FEB", "4")
109 109
         if (is_array($date)) {
110
-            $this->d = (int)$date[2];
110
+            $this->d = (int) $date[2];
111 111
             if (array_key_exists($date[1], static::$MONTH_ABBREV)) {
112 112
                 $this->m = static::$MONTH_ABBREV[$date[1]];
113 113
             } else {
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
             $jd    = $date->calendar->ymdToJd($today[0], $date->m, $date->d == 0 ? $today[2] : $date->d);
155 155
         } else {
156 156
             // Complete date
157
-            $jd = (int)(($date->maxJD + $date->minJD) / 2);
157
+            $jd = (int) (($date->maxJD + $date->minJD) / 2);
158 158
         }
159 159
         list($this->y, $this->m, $this->d) = $this->calendar->jdToYmd($jd);
160 160
         // New date has same precision as original date
@@ -961,7 +961,7 @@  discard block
 block discarded – undo
961 961
     {
962 962
         if ($number < 1) {
963 963
             // Cannot convert zero/negative numbers
964
-            return (string)$number;
964
+            return (string) $number;
965 965
         }
966 966
         $roman = '';
967 967
         foreach (self::$roman_numerals as $key => $value) {
@@ -986,7 +986,7 @@  discard block
 block discarded – undo
986 986
         $num = 0;
987 987
         foreach (self::$roman_numerals as $key => $value) {
988 988
             if (strpos($roman, $value) === 0) {
989
-                $num   += $key;
989
+                $num += $key;
990 990
                 $roman = substr($roman, strlen($value));
991 991
             }
992 992
         }
Please login to merge, or discard this patch.
app/Module/YahrzeitModule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
         $calendar_service = new CalendarService();
70 70
 
71
-        $days      = (int)$this->getBlockSetting($block_id, 'days', self::DEFAULT_DAYS);
71
+        $days      = (int) $this->getBlockSetting($block_id, 'days', self::DEFAULT_DAYS);
72 72
         $infoStyle = $this->getBlockSetting($block_id, 'infoStyle', self::DEFAULT_STYLE);
73 73
         $calendar  = $this->getBlockSetting($block_id, 'calendar', self::DEFAULT_CALENDAR);
74 74
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
                         }
123 123
                         $yahrzeit_date = new Date($yahrzeit_date->format('%@ %A %O %E'));
124 124
 
125
-                        $yahrzeits[] = (object)[
125
+                        $yahrzeits[] = (object) [
126 126
                             'individual'    => $fact->getParent(),
127 127
                             'fact_date'     => $fact->getDate(),
128 128
                             'fact'          => $fact,
Please login to merge, or discard this patch.
app/Module/UpcomingAnniversariesModule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         $default_events = implode(',', self::DEFAULT_EVENTS);
119 119
 
120 120
         $days      = $this->getBlockSetting($block_id, 'days', self::DEFAULT_DAYS);
121
-        $filter    = (bool)$this->getBlockSetting($block_id, 'filter', self::DEFAULT_FILTER);
121
+        $filter    = (bool) $this->getBlockSetting($block_id, 'filter', self::DEFAULT_FILTER);
122 122
         $infoStyle = $this->getBlockSetting($block_id, 'infoStyle', self::DEFAULT_STYLE);
123 123
         $sortStyle = $this->getBlockSetting($block_id, 'sortStyle', self::DEFAULT_SORT);
124 124
         $events    = $this->getBlockSetting($block_id, 'events', $default_events);
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
         $events_filter = implode('|', $event_array);
137 137
 
138 138
         $startjd = WT_CLIENT_JD + 1;
139
-        $endjd   = WT_CLIENT_JD + (int)$days;
139
+        $endjd   = WT_CLIENT_JD + (int) $days;
140 140
 
141 141
         $facts = $calendar_service->getEventsList($startjd, $endjd, $events_filter, $filter, $sortStyle, $tree);
142 142
 
Please login to merge, or discard this patch.
app/Tree.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -294,7 +294,7 @@
 block discarded – undo
294 294
     public static function getAll(): array
295 295
     {
296 296
         if (empty(self::$trees)) {
297
-            $rows        = Database::prepare(
297
+            $rows = Database::prepare(
298 298
                 "SELECT g.gedcom_id AS tree_id, g.gedcom_name AS tree_name, gs1.setting_value AS tree_title" .
299 299
                 " FROM `##gedcom` g" .
300 300
                 " LEFT JOIN `##gedcom_setting`      gs1 ON (g.gedcom_id=gs1.gedcom_id AND gs1.setting_name='title')" .
Please login to merge, or discard this patch.
app/Services/CalendarService.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -327,9 +327,9 @@
 block discarded – undo
327 327
 
328 328
             // Now fetch these anniversaries
329 329
             foreach ([
330
-                         'INDI' => $ind_sql . $where . $order_by,
331
-                         'FAM'  => $fam_sql . $where . $order_by,
332
-                     ] as $type => $sql) {
330
+                            'INDI' => $ind_sql . $where . $order_by,
331
+                            'FAM'  => $fam_sql . $where . $order_by,
332
+                        ] as $type => $sql) {
333 333
                 $rows = Database::prepare($sql)->execute($args)->fetchAll();
334 334
                 foreach ($rows as $row) {
335 335
                     if ($type === 'INDI') {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
                 "SELECT DISTINCT f_id AS xref, f_gedcom AS gedcom, d_type, d_day, d_month, d_year, d_fact" .
184 184
                 " FROM `##dates` JOIN `##families` ON d_gid = f_id AND d_file = f_file" .
185 185
                 " WHERE d_type = :type AND d_file = :tree_id";
186
-            $args    = [
186
+            $args = [
187 187
                 'type'    => $anniv->format('%@'),
188 188
                 'tree_id' => $tree->getTreeId(),
189 189
             ];
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
                     $where       .= " AND d_day = :day";
214 214
                     $args['day'] = $anniv->d;
215 215
                 }
216
-                $where         .= " AND d_mon = :month";
216
+                $where .= " AND d_mon = :month";
217 217
                 $args['month'] = $anniv->m;
218 218
             } else {
219 219
                 // SPECIAL CASES:
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
                         } elseif ($anniv->d === 29 && $anniv->daysInMonth() === 29) {
228 228
                             $where .= " AND (d_day = 29 OR d_day > 30) AND d_mon = 2";
229 229
                         } else {
230
-                            $where       .= " AND d_day = :day AND d_mon = 2";
230
+                            $where .= " AND d_day = :day AND d_mon = 2";
231 231
                             $args['day'] = $anniv->d;
232 232
                         }
233 233
                         break;
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
                         } elseif ($anniv->d == 29 && $anniv->daysInMonth() === 29) {
251 251
                             $where .= " AND (d_day = 29 OR d_day > 30) AND d_mon = 3";
252 252
                         } else {
253
-                            $where       .= " AND d_day = :day AND d_mon = 3";
253
+                            $where .= " AND d_day = :day AND d_mon = 3";
254 254
                             $args['day'] = $anniv->d;
255 255
                         }
256 256
                         break;
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
                 }
306 306
             }
307 307
             // Only events in the past (includes dates without a year)
308
-            $where        .= " AND d_year <= :year";
308
+            $where .= " AND d_year <= :year";
309 309
             $args['year'] = $anniv->y;
310 310
 
311 311
             if ($facts) {
Please login to merge, or discard this patch.
app/Module/InteractiveTree/TreeView.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
         // Fixing the width for td to the box initial width when the person is the root person fix a rare bug that happen when a person without child and without known parents is the root person : an unwanted white rectangle appear at the right of the person’s boxes, otherwise.
255 255
         $html .= '<td' . ($isRoot ? ' style="width:1px"' : '') . '><div class="tv_box' . ($isRoot ? ' rootPerson' : '') . '" dir="' . I18N::direction() . '" style="text-align: ' . (I18N::direction() === 'rtl' ? 'right' : 'left') . '; direction: ' . I18N::direction() . '" abbr="' . $person->getXref() . '" onclick="' . $this->name . 'Handler.expandBox(this, event);">';
256 256
         $html .= $this->drawPersonName($person);
257
-        $fop  = []; // $fop is fathers of partners
257
+        $fop = []; // $fop is fathers of partners
258 258
         if ($partner !== null) {
259 259
             $dashed = '';
260 260
             foreach ($person->getSpouseFamilies() as $family) {
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
                             $spouse_parents,
273 273
                         ];
274 274
                     }
275
-                    $html   .= $this->drawPersonName($spouse, $dashed);
275
+                    $html .= $this->drawPersonName($spouse, $dashed);
276 276
                     $dashed = 'dashed';
277 277
                 }
278 278
             }
@@ -292,9 +292,9 @@  discard block
 block discarded – undo
292 292
         /* draw the parents */
293 293
         if ($state >= 0 && (!empty($parent) || count($fop))) {
294 294
             $unique = (empty($parent) || count($fop) == 0);
295
-            $html   .= '<td align="left"><table class="tv_tree"><tbody>';
295
+            $html .= '<td align="left"><table class="tv_tree"><tbody>';
296 296
             if (!empty($parent)) {
297
-                $u    = $unique ? 'c' : 't';
297
+                $u = $unique ? 'c' : 't';
298 298
                 $html .= '<tr><td ' . ($gen == 0 ? ' abbr="p' . $primaryChildFamily->getXref() . '@' . $u . '"' : '') . '>';
299 299
                 $html .= $this->drawPerson($parent, $gen - 1, 1, $primaryChildFamily, $u);
300 300
                 $html .= '</td></tr>';
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
                 $nb = count($fop);
305 305
                 foreach ($fop as $p) {
306 306
                     $n++;
307
-                    $u    = $unique ? 'c' : ($n == $nb || empty($p[1]) ? 'b' : 'h');
307
+                    $u = $unique ? 'c' : ($n == $nb || empty($p[1]) ? 'b' : 'h');
308 308
                     $html .= '<tr><td ' . ($gen == 0 ? ' abbr="p' . $p[1]->getXref() . '@' . $u . '"' : '') . '>' . $this->drawPerson($p[0], $gen - 1, 1, $p[1], $u) . '</td></tr>';
309 309
                 }
310 310
             }
Please login to merge, or discard this patch.
app/Module/ReviewChangesModule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
         if ($changes === '1' && $sendmail === '1') {
75 75
             // There are pending changes - tell moderators/managers/administrators about them.
76
-            if (WT_TIMESTAMP - (int)Site::getPreference('LAST_CHANGE_EMAIL') > (60 * 60 * 24 * $days)) {
76
+            if (WT_TIMESTAMP - (int) Site::getPreference('LAST_CHANGE_EMAIL') > (60 * 60 * 24 * $days)) {
77 77
                 // Which users have pending changes?
78 78
                 foreach (User::all() as $user) {
79 79
                     if ($user->getPreference('contactmethod') !== 'none') {
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
                                 I18N::init($user->getPreference('language'));
83 83
 
84 84
                                 $sender = new User(
85
-                                    (object)[
85
+                                    (object) [
86 86
                                         'user_id'   => null,
87 87
                                         'user_name' => '',
88 88
                                         'real_name' => $tmp_tree->getTitle(),
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
             }
120 120
             if ($sendmail === '1') {
121 121
                 $content .= I18N::translate('Last email reminder was sent ') . FunctionsDate::formatTimestamp(Site::getPreference('LAST_CHANGE_EMAIL')) . '<br>';
122
-                $content .= I18N::translate('Next email reminder will be sent after ') . FunctionsDate::formatTimestamp((int)Site::getPreference('LAST_CHANGE_EMAIL') + (60 * 60 * 24 * $days)) . '<br><br>';
122
+                $content .= I18N::translate('Next email reminder will be sent after ') . FunctionsDate::formatTimestamp((int) Site::getPreference('LAST_CHANGE_EMAIL') + (60 * 60 * 24 * $days)) . '<br><br>';
123 123
             }
124 124
             $content .= '<ul>';
125 125
             $changes = Database::prepare(
Please login to merge, or discard this patch.
app/Http/Controllers/AdminMediaController.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -119,8 +119,8 @@  discard block
 block discarded – undo
119 119
         $files  = $request->get('files'); // local|external|unused
120 120
         $search = $request->get('search');
121 121
         $search = $search['value'];
122
-        $start  = (int)$request->get('start');
123
-        $length = (int)$request->get('length');
122
+        $start  = (int) $request->get('start');
123
+        $length = (int) $request->get('length');
124 124
 
125 125
         // family tree setting MEDIA_DIRECTORY
126 126
         $media_folders = $this->allMediaFolders();
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
                     "  OR   descriptive_title LIKE CONCAT('%', :search_2, '%'))" .
157 157
                     " AND   multimedia_file_refn NOT LIKE 'http://%'" .
158 158
                     " AND   multimedia_file_refn NOT LIKE 'https://%'";
159
-                $ARGS1   = [
159
+                $ARGS1 = [
160 160
                     'media_path_1' => $media_path,
161 161
                     'media_folder' => $media_folder,
162 162
                     'media_path_2' => Database::escapeLike($media_path),
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
                     " AND   multimedia_file_refn LIKE CONCAT(:media_path_3, '%')" .
174 174
                     " AND   multimedia_file_refn NOT LIKE 'http://%'" .
175 175
                     " AND   multimedia_file_refn NOT LIKE 'https://%'";
176
-                $ARGS2   = [
176
+                $ARGS2 = [
177 177
                     'media_folder' => $media_folder,
178 178
                     'media_path_3' => $media_path,
179 179
                 ];
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
                     $ARGS2['media_path_4'] = Database::escapeLike($media_path);
186 186
                 }
187 187
 
188
-                $order   = $request->get('order', []);
188
+                $order = $request->get('order', []);
189 189
                 $SELECT1 .= " ORDER BY ";
190 190
                 if ($order) {
191 191
                     foreach ($order as $key => $value) {
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
                 }
210 210
 
211 211
                 if ($length > 0) {
212
-                    $SELECT1         .= " LIMIT :length OFFSET :start";
212
+                    $SELECT1 .= " LIMIT :length OFFSET :start";
213 213
                     $ARGS1['length'] = $length;
214 214
                     $ARGS1['start']  = $start;
215 215
                 }
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
                     " JOIN  `##media_file` USING (m_id, m_file)" .
243 243
                     " WHERE (multimedia_file_refn LIKE 'http://%' OR multimedia_file_refn LIKE 'https://%')" .
244 244
                     " AND   (multimedia_file_refn LIKE CONCAT('%', :search_1, '%') OR descriptive_title LIKE CONCAT('%', :search_2, '%'))";
245
-                $ARGS1   = [
245
+                $ARGS1 = [
246 246
                     'search_1' => Database::escapeLike($search),
247 247
                     'search_2' => Database::escapeLike($search),
248 248
                 ];
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
                 }
279 279
 
280 280
                 if ($length > 0) {
281
-                    $SELECT1         .= " LIMIT :length OFFSET :start";
281
+                    $SELECT1 .= " LIMIT :length OFFSET :start";
282 282
                     $ARGS1['length'] = $length;
283 283
                     $ARGS1['start']  = $start;
284 284
                 }
@@ -578,7 +578,7 @@  discard block
 block discarded – undo
578 578
 
579 579
         // $dir comes from the database. The actual folder may not exist.
580 580
         if (is_dir($dir)) {
581
-            foreach (scandir($dir,SCANDIR_SORT_NONE) as $path) {
581
+            foreach (scandir($dir, SCANDIR_SORT_NONE) as $path) {
582 582
                 if (is_dir($dir . $path)) {
583 583
                     // What if there are user-defined subfolders “thumbs” or “watermarks”?
584 584
                     if ($path != '.' && $path != '..' && $path != 'thumbs' && $path != 'watermark' && $recursive) {
@@ -660,7 +660,7 @@  discard block
 block discarded – undo
660 660
         $full_path = WT_DATA_DIR . $media_folder . $media_path . $file;
661 661
         try {
662 662
             $size = filesize($full_path);
663
-            $size = (int)(($size + 1023) / 1024); // Round up to next KB
663
+            $size = (int) (($size + 1023) / 1024); // Round up to next KB
664 664
             /* I18N: size of file in KB */
665 665
             $size = I18N::translate('%s KB', I18N::number($size));
666 666
             $html .= '<dt>' . I18N::translate('File size') . '</dt>';
Please login to merge, or discard this patch.
app/Http/Controllers/PedigreeChartController.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -92,8 +92,8 @@  discard block
 block discarded – undo
92 92
 
93 93
         $this->checkIndividualAccess($individual);
94 94
 
95
-        $orientation = (int)$request->get('orientation', self::LANDSCAPE);
96
-        $generations = (int)$request->get('generations', self::DEFAULT_GENERATIONS);
95
+        $orientation = (int) $request->get('orientation', self::LANDSCAPE);
96
+        $generations = (int) $request->get('generations', self::DEFAULT_GENERATIONS);
97 97
 
98 98
         $generations = min(self::MAX_GENERATIONS, $generations);
99 99
         $generations = max(self::MIN_GENERATIONS, $generations);
@@ -129,8 +129,8 @@  discard block
 block discarded – undo
129 129
 
130 130
         $this->checkIndividualAccess($individual);
131 131
 
132
-        $this->orientation = (int)$request->get('orientation');
133
-        $this->generations = (int)$request->get('generations');
132
+        $this->orientation = (int) $request->get('orientation');
133
+        $this->generations = (int) $request->get('generations');
134 134
         $bxspacing         = Theme::theme()->parameter('chart-spacing-x');
135 135
         $byspacing         = Theme::theme()->parameter('chart-spacing-y');
136 136
         $curgen            = 1; // -- track which generation the algorithm is currently working on
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         }, array_values($this->sosaStradonitzAncestors($individual, $this->generations)));
156 156
 
157 157
         //check earliest generation for any ancestors
158
-        for ($i = (int)($this->treesize / 2); $i < $this->treesize; $i++) {
158
+        for ($i = (int) ($this->treesize / 2); $i < $this->treesize; $i++) {
159 159
             $this->chartHasAncestors = $this->chartHasAncestors || ($this->nodes[$i]['indi'] && $this->nodes[$i]['indi']->getChildFamilies());
160 160
         }
161 161
 
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 
190 190
         for ($i = ($this->treesize - 1); $i >= 0; $i--) {
191 191
             // -- check to see if we have moved to the next generation
192
-            if ($i < (int)($this->treesize / (2 ** $curgen))) {
192
+            if ($i < (int) ($this->treesize / (2 ** $curgen))) {
193 193
                 $curgen++;
194 194
             }
195 195
 
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
                         } else {
221 221
                             $yoffset = $yoffset + (($boxspacing / 2) * ($curgen - 1));
222 222
                         }
223
-                        $parent = (int)(($i - 1) / 2);
223
+                        $parent = (int) (($i - 1) / 2);
224 224
                         $pgen   = $curgen;
225 225
                         while ($parent > 0) {
226 226
                             if ($parent % 2 == 0) {
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
                                     $yoffset = $yoffset + (($boxspacing / 2) * $temp);
241 241
                                 }
242 242
                             }
243
-                            $parent = (int)(($parent - 1) / 2);
243
+                            $parent = (int) (($parent - 1) / 2);
244 244
                         }
245 245
                         if ($curgen > 3) {
246 246
                             $temp = 0;
@@ -276,8 +276,8 @@  discard block
 block discarded – undo
276 276
                     }
277 277
                     break;
278 278
             }
279
-            $this->nodes[$i]['x'] = (int)$xoffset;
280
-            $this->nodes[$i]['y'] = (int)$yoffset;
279
+            $this->nodes[$i]['x'] = (int) $xoffset;
280
+            $this->nodes[$i]['y'] = (int) $yoffset;
281 281
         }
282 282
 
283 283
         // find the minimum x & y offsets and deduct that number from
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
         $canvas_width   = $max_xoffset + $bxspacing + Theme::theme()->parameter('chart-box-x') + $addoffset['x'];
307 307
         $canvas_height  = $max_yoffset + $byspacing + Theme::theme()->parameter('chart-box-y') + $addoffset['y'];
308 308
         $posn           = I18N::direction() === 'rtl' ? 'right' : 'left';
309
-        $last_gen_start = (int)floor($this->treesize / 2);
309
+        $last_gen_start = (int) floor($this->treesize / 2);
310 310
         if ($this->orientation === self::OLDEST_AT_TOP || $this->orientation === self::OLDEST_AT_BOTTOM) {
311 311
             $flex_direction = ' flex-column';
312 312
         } else {
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
             $html = sprintf('<div id="childarrow"><a href="#" class="menuselect %s"></a><div id="childbox-pedigree">', $this->arrows->menu);
356 356
 
357 357
             foreach ($families as $family) {
358
-                $html   .= '<span class="name1">' . I18N::translate('Family') . '</span>';
358
+                $html .= '<span class="name1">' . I18N::translate('Family') . '</span>';
359 359
                 $spouse = $family->getSpouse($this->root);
360 360
                 if ($spouse) {
361 361
                     $html .= '<a class="name1" href="' . e(route('pedigree', [
@@ -416,9 +416,9 @@  discard block
 block discarded – undo
416 416
         $html = '';
417 417
         if ($this->chartHasAncestors) {
418 418
             if ($this->nodes[$index]['indi'] && $this->nodes[$index]['indi']->getChildFamilies()) {
419
-                $html         .= '<div class="ancestorarrow">';
419
+                $html .= '<div class="ancestorarrow">';
420 420
                 $rootParentId = 1;
421
-                if ($index > (int)($this->treesize / 2) + (int)($this->treesize / 4)) {
421
+                if ($index > (int) ($this->treesize / 2) + (int) ($this->treesize / 4)) {
422 422
                     $rootParentId++;
423 423
                 }
424 424
                 $html .= '<a class="' . $this->arrows->prevGen . '" href="' . e(route('pedigree', [
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
     private function generationOptions(Tree $tree): array
446 446
     {
447 447
         // @TODO - do we need this config setting, given that we cannot show more than 8 generations?
448
-        $max_generations = min(self::MAX_GENERATIONS, (int)$tree->getPreference('MAX_PEDIGREE_GENERATIONS'));
448
+        $max_generations = min(self::MAX_GENERATIONS, (int) $tree->getPreference('MAX_PEDIGREE_GENERATIONS'));
449 449
 
450 450
         return FunctionsEdit::numericOptions(range(self::MIN_GENERATIONS, $max_generations));
451 451
     }
Please login to merge, or discard this patch.