| Conditions | 43 |
| Paths | 100 |
| Total Lines | 420 |
| Code Lines | 302 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.
For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.
Commonly applied refactorings include:
If many parameters/temporary variables are present:
| 1 | <?php |
||
| 176 | private function childFacts(Individual $person, Family $family, string $option, string $relation, Date $min_date, Date $max_date): Collection |
||
| 177 | { |
||
| 178 | $SHOW_RELATIVES_EVENTS = $person->tree()->getPreference('SHOW_RELATIVES_EVENTS'); |
||
| 179 | |||
| 180 | $birth_of_a_child = [ |
||
| 181 | 'INDI:BIRT' => [ |
||
| 182 | 'M' => I18N::translate('Birth of a son'), |
||
| 183 | 'F' => I18N::translate('Birth of a daughter'), |
||
| 184 | 'U' => I18N::translate('Birth of a child'), |
||
| 185 | ], |
||
| 186 | 'INDI:CHR' => [ |
||
| 187 | 'M' => I18N::translate('Christening of a son'), |
||
| 188 | 'F' => I18N::translate('Christening of a daughter'), |
||
| 189 | 'U' => I18N::translate('Christening of a child'), |
||
| 190 | ], |
||
| 191 | 'INDI:BAPM' => [ |
||
| 192 | 'M' => I18N::translate('Baptism of a son'), |
||
| 193 | 'F' => I18N::translate('Baptism of a daughter'), |
||
| 194 | 'U' => I18N::translate('Baptism of a child'), |
||
| 195 | ], |
||
| 196 | 'INDI:ADOP' => [ |
||
| 197 | 'M' => I18N::translate('Adoption of a son'), |
||
| 198 | 'F' => I18N::translate('Adoption of a daughter'), |
||
| 199 | 'U' => I18N::translate('Adoption of a child'), |
||
| 200 | ], |
||
| 201 | ]; |
||
| 202 | |||
| 203 | $birth_of_a_sibling = [ |
||
| 204 | 'INDI:BIRT' => [ |
||
| 205 | 'M' => I18N::translate('Birth of a brother'), |
||
| 206 | 'F' => I18N::translate('Birth of a sister'), |
||
| 207 | 'U' => I18N::translate('Birth of a sibling'), |
||
| 208 | ], |
||
| 209 | 'INDI:CHR' => [ |
||
| 210 | 'M' => I18N::translate('Christening of a brother'), |
||
| 211 | 'F' => I18N::translate('Christening of a sister'), |
||
| 212 | 'U' => I18N::translate('Christening of a sibling'), |
||
| 213 | ], |
||
| 214 | 'INDI:BAPM' => [ |
||
| 215 | 'M' => I18N::translate('Baptism of a brother'), |
||
| 216 | 'F' => I18N::translate('Baptism of a sister'), |
||
| 217 | 'U' => I18N::translate('Baptism of a sibling'), |
||
| 218 | ], |
||
| 219 | 'INDI:ADOP' => [ |
||
| 220 | 'M' => I18N::translate('Adoption of a brother'), |
||
| 221 | 'F' => I18N::translate('Adoption of a sister'), |
||
| 222 | 'U' => I18N::translate('Adoption of a sibling'), |
||
| 223 | ], |
||
| 224 | ]; |
||
| 225 | |||
| 226 | $birth_of_a_half_sibling = [ |
||
| 227 | 'INDI:BIRT' => [ |
||
| 228 | 'M' => I18N::translate('Birth of a half-brother'), |
||
| 229 | 'F' => I18N::translate('Birth of a half-sister'), |
||
| 230 | 'U' => I18N::translate('Birth of a half-sibling'), |
||
| 231 | ], |
||
| 232 | 'INDI:CHR' => [ |
||
| 233 | 'M' => I18N::translate('Christening of a half-brother'), |
||
| 234 | 'F' => I18N::translate('Christening of a half-sister'), |
||
| 235 | 'U' => I18N::translate('Christening of a half-sibling'), |
||
| 236 | ], |
||
| 237 | 'INDI:BAPM' => [ |
||
| 238 | 'M' => I18N::translate('Baptism of a half-brother'), |
||
| 239 | 'F' => I18N::translate('Baptism of a half-sister'), |
||
| 240 | 'U' => I18N::translate('Baptism of a half-sibling'), |
||
| 241 | ], |
||
| 242 | 'INDI:ADOP' => [ |
||
| 243 | 'M' => I18N::translate('Adoption of a half-brother'), |
||
| 244 | 'F' => I18N::translate('Adoption of a half-sister'), |
||
| 245 | 'U' => I18N::translate('Adoption of a half-sibling'), |
||
| 246 | ], |
||
| 247 | ]; |
||
| 248 | |||
| 249 | $birth_of_a_grandchild = [ |
||
| 250 | 'INDI:BIRT' => [ |
||
| 251 | 'M' => I18N::translate('Birth of a grandson'), |
||
| 252 | 'F' => I18N::translate('Birth of a granddaughter'), |
||
| 253 | 'U' => I18N::translate('Birth of a grandchild'), |
||
| 254 | ], |
||
| 255 | 'INDI:CHR' => [ |
||
| 256 | 'M' => I18N::translate('Christening of a grandson'), |
||
| 257 | 'F' => I18N::translate('Christening of a granddaughter'), |
||
| 258 | 'U' => I18N::translate('Christening of a grandchild'), |
||
| 259 | ], |
||
| 260 | 'INDI:BAPM' => [ |
||
| 261 | 'M' => I18N::translate('Baptism of a grandson'), |
||
| 262 | 'F' => I18N::translate('Baptism of a granddaughter'), |
||
| 263 | 'U' => I18N::translate('Baptism of a grandchild'), |
||
| 264 | ], |
||
| 265 | 'INDI:ADOP' => [ |
||
| 266 | 'M' => I18N::translate('Adoption of a grandson'), |
||
| 267 | 'F' => I18N::translate('Adoption of a granddaughter'), |
||
| 268 | 'U' => I18N::translate('Adoption of a grandchild'), |
||
| 269 | ], |
||
| 270 | ]; |
||
| 271 | |||
| 272 | $birth_of_a_grandchild1 = [ |
||
| 273 | 'INDI:BIRT' => [ |
||
| 274 | 'M' => I18N::translateContext('daughter’s son', 'Birth of a grandson'), |
||
| 275 | 'F' => I18N::translateContext('daughter’s daughter', 'Birth of a granddaughter'), |
||
| 276 | 'U' => I18N::translate('Birth of a grandchild'), |
||
| 277 | ], |
||
| 278 | 'INDI:CHR' => [ |
||
| 279 | 'M' => I18N::translateContext('daughter’s son', 'Christening of a grandson'), |
||
| 280 | 'F' => I18N::translateContext('daughter’s daughter', 'Christening of a granddaughter'), |
||
| 281 | 'U' => I18N::translate('Christening of a grandchild'), |
||
| 282 | ], |
||
| 283 | 'INDI:BAPM' => [ |
||
| 284 | 'M' => I18N::translateContext('daughter’s son', 'Baptism of a grandson'), |
||
| 285 | 'F' => I18N::translateContext('daughter’s daughter', 'Baptism of a granddaughter'), |
||
| 286 | 'U' => I18N::translate('Baptism of a grandchild'), |
||
| 287 | ], |
||
| 288 | 'INDI:ADOP' => [ |
||
| 289 | 'M' => I18N::translateContext('daughter’s son', 'Adoption of a grandson'), |
||
| 290 | 'F' => I18N::translateContext('daughter’s daughter', 'Adoption of a granddaughter'), |
||
| 291 | 'U' => I18N::translate('Adoption of a grandchild'), |
||
| 292 | ], |
||
| 293 | ]; |
||
| 294 | |||
| 295 | $birth_of_a_grandchild2 = [ |
||
| 296 | 'INDI:BIRT' => [ |
||
| 297 | 'M' => I18N::translateContext('son’s son', 'Birth of a grandson'), |
||
| 298 | 'F' => I18N::translateContext('son’s daughter', 'Birth of a granddaughter'), |
||
| 299 | 'U' => I18N::translate('Birth of a grandchild'), |
||
| 300 | ], |
||
| 301 | 'INDI:CHR' => [ |
||
| 302 | 'M' => I18N::translateContext('son’s son', 'Christening of a grandson'), |
||
| 303 | 'F' => I18N::translateContext('son’s daughter', 'Christening of a granddaughter'), |
||
| 304 | 'U' => I18N::translate('Christening of a grandchild'), |
||
| 305 | ], |
||
| 306 | 'INDI:BAPM' => [ |
||
| 307 | 'M' => I18N::translateContext('son’s son', 'Baptism of a grandson'), |
||
| 308 | 'F' => I18N::translateContext('son’s daughter', 'Baptism of a granddaughter'), |
||
| 309 | 'U' => I18N::translate('Baptism of a grandchild'), |
||
| 310 | ], |
||
| 311 | 'INDI:ADOP' => [ |
||
| 312 | 'M' => I18N::translateContext('son’s son', 'Adoption of a grandson'), |
||
| 313 | 'F' => I18N::translateContext('son’s daughter', 'Adoption of a granddaughter'), |
||
| 314 | 'U' => I18N::translate('Adoption of a grandchild'), |
||
| 315 | ], |
||
| 316 | ]; |
||
| 317 | |||
| 318 | $death_of_a_child = [ |
||
| 319 | 'INDI:DEAT' => [ |
||
| 320 | 'M' => I18N::translate('Death of a son'), |
||
| 321 | 'F' => I18N::translate('Death of a daughter'), |
||
| 322 | 'U' => I18N::translate('Death of a child'), |
||
| 323 | ], |
||
| 324 | 'INDI:BURI' => [ |
||
| 325 | 'M' => I18N::translate('Burial of a son'), |
||
| 326 | 'F' => I18N::translate('Burial of a daughter'), |
||
| 327 | 'U' => I18N::translate('Burial of a child'), |
||
| 328 | ], |
||
| 329 | 'INDI:CREM' => [ |
||
| 330 | 'M' => I18N::translate('Cremation of a son'), |
||
| 331 | 'F' => I18N::translate('Cremation of a daughter'), |
||
| 332 | 'U' => I18N::translate('Cremation of a child'), |
||
| 333 | ], |
||
| 334 | ]; |
||
| 335 | |||
| 336 | $death_of_a_sibling = [ |
||
| 337 | 'INDI:DEAT' => [ |
||
| 338 | 'M' => I18N::translate('Death of a brother'), |
||
| 339 | 'F' => I18N::translate('Death of a sister'), |
||
| 340 | 'U' => I18N::translate('Death of a sibling'), |
||
| 341 | ], |
||
| 342 | 'INDI:BURI' => [ |
||
| 343 | 'M' => I18N::translate('Burial of a brother'), |
||
| 344 | 'F' => I18N::translate('Burial of a sister'), |
||
| 345 | 'U' => I18N::translate('Burial of a sibling'), |
||
| 346 | ], |
||
| 347 | 'INDI:CREM' => [ |
||
| 348 | 'M' => I18N::translate('Cremation of a brother'), |
||
| 349 | 'F' => I18N::translate('Cremation of a sister'), |
||
| 350 | 'U' => I18N::translate('Cremation of a sibling'), |
||
| 351 | ], |
||
| 352 | ]; |
||
| 353 | |||
| 354 | $death_of_a_half_sibling = [ |
||
| 355 | 'INDI:DEAT' => [ |
||
| 356 | 'M' => I18N::translate('Death of a half-brother'), |
||
| 357 | 'F' => I18N::translate('Death of a half-sister'), |
||
| 358 | 'U' => I18N::translate('Death of a half-sibling'), |
||
| 359 | ], |
||
| 360 | 'INDI:BURI' => [ |
||
| 361 | 'M' => I18N::translate('Burial of a half-brother'), |
||
| 362 | 'F' => I18N::translate('Burial of a half-sister'), |
||
| 363 | 'U' => I18N::translate('Burial of a half-sibling'), |
||
| 364 | ], |
||
| 365 | 'INDI:CREM' => [ |
||
| 366 | 'M' => I18N::translate('Cremation of a half-brother'), |
||
| 367 | 'F' => I18N::translate('Cremation of a half-sister'), |
||
| 368 | 'U' => I18N::translate('Cremation of a half-sibling'), |
||
| 369 | ], |
||
| 370 | ]; |
||
| 371 | |||
| 372 | $death_of_a_grandchild = [ |
||
| 373 | 'INDI:DEAT' => [ |
||
| 374 | 'M' => I18N::translate('Death of a grandson'), |
||
| 375 | 'F' => I18N::translate('Death of a granddaughter'), |
||
| 376 | 'U' => I18N::translate('Death of a grandchild'), |
||
| 377 | ], |
||
| 378 | 'INDI:BURI' => [ |
||
| 379 | 'M' => I18N::translate('Burial of a grandson'), |
||
| 380 | 'F' => I18N::translate('Burial of a granddaughter'), |
||
| 381 | 'U' => I18N::translate('Burial of a grandchild'), |
||
| 382 | ], |
||
| 383 | 'INDI:CREM' => [ |
||
| 384 | 'M' => I18N::translate('Cremation of a grandson'), |
||
| 385 | 'F' => I18N::translate('Cremation of a granddaughter'), |
||
| 386 | 'U' => I18N::translate('Baptism of a grandchild'), |
||
| 387 | ], |
||
| 388 | ]; |
||
| 389 | |||
| 390 | $death_of_a_grandchild1 = [ |
||
| 391 | 'INDI:DEAT' => [ |
||
| 392 | 'M' => I18N::translateContext('daughter’s son', 'Death of a grandson'), |
||
| 393 | 'F' => I18N::translateContext('daughter’s daughter', 'Death of a granddaughter'), |
||
| 394 | 'U' => I18N::translate('Death of a grandchild'), |
||
| 395 | ], |
||
| 396 | 'INDI:BURI' => [ |
||
| 397 | 'M' => I18N::translateContext('daughter’s son', 'Burial of a grandson'), |
||
| 398 | 'F' => I18N::translateContext('daughter’s daughter', 'Burial of a granddaughter'), |
||
| 399 | 'U' => I18N::translate('Burial of a grandchild'), |
||
| 400 | ], |
||
| 401 | 'INDI:CREM' => [ |
||
| 402 | 'M' => I18N::translateContext('daughter’s son', 'Cremation of a grandson'), |
||
| 403 | 'F' => I18N::translateContext('daughter’s daughter', 'Cremation of a granddaughter'), |
||
| 404 | 'U' => I18N::translate('Baptism of a grandchild'), |
||
| 405 | ], |
||
| 406 | ]; |
||
| 407 | |||
| 408 | $death_of_a_grandchild2 = [ |
||
| 409 | 'INDI:DEAT' => [ |
||
| 410 | 'M' => I18N::translateContext('son’s son', 'Death of a grandson'), |
||
| 411 | 'F' => I18N::translateContext('son’s daughter', 'Death of a granddaughter'), |
||
| 412 | 'U' => I18N::translate('Death of a grandchild'), |
||
| 413 | ], |
||
| 414 | 'INDI:BURI' => [ |
||
| 415 | 'M' => I18N::translateContext('son’s son', 'Burial of a grandson'), |
||
| 416 | 'F' => I18N::translateContext('son’s daughter', 'Burial of a granddaughter'), |
||
| 417 | 'U' => I18N::translate('Burial of a grandchild'), |
||
| 418 | ], |
||
| 419 | 'INDI:CREM' => [ |
||
| 420 | 'M' => I18N::translateContext('son’s son', 'Cremation of a grandson'), |
||
| 421 | 'F' => I18N::translateContext('son’s daughter', 'Cremation of a granddaughter'), |
||
| 422 | 'U' => I18N::translate('Cremation of a grandchild'), |
||
| 423 | ], |
||
| 424 | ]; |
||
| 425 | |||
| 426 | $marriage_of_a_child = [ |
||
| 427 | 'M' => I18N::translate('Marriage of a son'), |
||
| 428 | 'F' => I18N::translate('Marriage of a daughter'), |
||
| 429 | 'U' => I18N::translate('Marriage of a child'), |
||
| 430 | ]; |
||
| 431 | |||
| 432 | $marriage_of_a_grandchild = [ |
||
| 433 | 'M' => I18N::translate('Marriage of a grandson'), |
||
| 434 | 'F' => I18N::translate('Marriage of a granddaughter'), |
||
| 435 | 'U' => I18N::translate('Marriage of a grandchild'), |
||
| 436 | ]; |
||
| 437 | |||
| 438 | $marriage_of_a_grandchild1 = [ |
||
| 439 | 'M' => I18N::translateContext('daughter’s son', 'Marriage of a grandson'), |
||
| 440 | 'F' => I18N::translateContext('daughter’s daughter', 'Marriage of a granddaughter'), |
||
| 441 | 'U' => I18N::translate('Marriage of a grandchild'), |
||
| 442 | ]; |
||
| 443 | |||
| 444 | $marriage_of_a_grandchild2 = [ |
||
| 445 | 'M' => I18N::translateContext('son’s son', 'Marriage of a grandson'), |
||
| 446 | 'F' => I18N::translateContext('son’s daughter', 'Marriage of a granddaughter'), |
||
| 447 | 'U' => I18N::translate('Marriage of a grandchild'), |
||
| 448 | ]; |
||
| 449 | |||
| 450 | $marriage_of_a_sibling = [ |
||
| 451 | 'M' => I18N::translate('Marriage of a brother'), |
||
| 452 | 'F' => I18N::translate('Marriage of a sister'), |
||
| 453 | 'U' => I18N::translate('Marriage of a sibling'), |
||
| 454 | ]; |
||
| 455 | |||
| 456 | $marriage_of_a_half_sibling = [ |
||
| 457 | 'M' => I18N::translate('Marriage of a half-brother'), |
||
| 458 | 'F' => I18N::translate('Marriage of a half-sister'), |
||
| 459 | 'U' => I18N::translate('Marriage of a half-sibling'), |
||
| 460 | ]; |
||
| 461 | |||
| 462 | $facts = new Collection(); |
||
| 463 | |||
| 464 | // Deal with recursion. |
||
| 465 | if ($option === '_CHIL') { |
||
| 466 | // Add grandchildren |
||
| 467 | foreach ($family->children() as $child) { |
||
| 468 | foreach ($child->spouseFamilies() as $cfamily) { |
||
| 469 | switch ($child->sex()) { |
||
| 470 | case 'M': |
||
| 471 | foreach ($this->childFacts($person, $cfamily, '_GCHI', 'son', $min_date, $max_date) as $fact) { |
||
| 472 | $facts[] = $fact; |
||
| 473 | } |
||
| 474 | break; |
||
| 475 | case 'F': |
||
| 476 | foreach ($this->childFacts($person, $cfamily, '_GCHI', 'dau', $min_date, $max_date) as $fact) { |
||
| 477 | $facts[] = $fact; |
||
| 478 | } |
||
| 479 | break; |
||
| 480 | default: |
||
| 481 | foreach ($this->childFacts($person, $cfamily, '_GCHI', 'chi', $min_date, $max_date) as $fact) { |
||
| 482 | $facts[] = $fact; |
||
| 483 | } |
||
| 484 | break; |
||
| 485 | } |
||
| 486 | } |
||
| 487 | } |
||
| 488 | } |
||
| 489 | |||
| 490 | // For each child in the family |
||
| 491 | foreach ($family->children() as $child) { |
||
| 492 | if ($child->xref() === $person->xref()) { |
||
| 493 | // We are not our own sibling! |
||
| 494 | continue; |
||
| 495 | } |
||
| 496 | // add child’s birth |
||
| 497 | if (str_contains($SHOW_RELATIVES_EVENTS, '_BIRT' . str_replace('_HSIB', '_SIBL', $option))) { |
||
| 498 | foreach ($child->facts(['BIRT', 'CHR', 'BAPM', 'ADOP']) as $fact) { |
||
| 499 | // Always show _BIRT_CHIL, even if the dates are not known |
||
| 500 | if ($option === '_CHIL' || $this->includeFact($fact, $min_date, $max_date)) { |
||
| 501 | switch ($option) { |
||
| 502 | case '_GCHI': |
||
| 503 | switch ($relation) { |
||
| 504 | case 'dau': |
||
| 505 | $facts[] = $this->convertEvent($fact, $birth_of_a_grandchild1[$fact->tag()], $fact->record()->sex()); |
||
| 506 | break; |
||
| 507 | case 'son': |
||
| 508 | $facts[] = $this->convertEvent($fact, $birth_of_a_grandchild2[$fact->tag()], $fact->record()->sex()); |
||
| 509 | break; |
||
| 510 | case 'chil': |
||
| 511 | $facts[] = $this->convertEvent($fact, $birth_of_a_grandchild[$fact->tag()], $fact->record()->sex()); |
||
| 512 | break; |
||
| 513 | } |
||
| 514 | break; |
||
| 515 | case '_SIBL': |
||
| 516 | $facts[] = $this->convertEvent($fact, $birth_of_a_sibling[$fact->tag()], $fact->record()->sex()); |
||
| 517 | break; |
||
| 518 | case '_HSIB': |
||
| 519 | $facts[] = $this->convertEvent($fact, $birth_of_a_half_sibling[$fact->tag()], $fact->record()->sex()); |
||
| 520 | break; |
||
| 521 | case '_CHIL': |
||
| 522 | $facts[] = $this->convertEvent($fact, $birth_of_a_child[$fact->tag()], $fact->record()->sex()); |
||
| 523 | break; |
||
| 524 | } |
||
| 525 | } |
||
| 526 | } |
||
| 527 | } |
||
| 528 | // add child’s death |
||
| 529 | if (str_contains($SHOW_RELATIVES_EVENTS, '_DEAT' . str_replace('_HSIB', '_SIBL', $option))) { |
||
| 530 | foreach ($child->facts(['DEAT', 'BURI', 'CREM']) as $fact) { |
||
| 531 | if ($this->includeFact($fact, $min_date, $max_date)) { |
||
| 532 | switch ($option) { |
||
| 533 | case '_GCHI': |
||
| 534 | switch ($relation) { |
||
| 535 | case 'dau': |
||
| 536 | $facts[] = $this->convertEvent($fact, $death_of_a_grandchild1[$fact->tag()], $fact->record()->sex()); |
||
| 537 | break; |
||
| 538 | case 'son': |
||
| 539 | $facts[] = $this->convertEvent($fact, $death_of_a_grandchild2[$fact->tag()], $fact->record()->sex()); |
||
| 540 | break; |
||
| 541 | case 'chi': |
||
| 542 | $facts[] = $this->convertEvent($fact, $death_of_a_grandchild[$fact->tag()], $fact->record()->sex()); |
||
| 543 | break; |
||
| 544 | } |
||
| 545 | break; |
||
| 546 | case '_SIBL': |
||
| 547 | $facts[] = $this->convertEvent($fact, $death_of_a_sibling[$fact->tag()], $fact->record()->sex()); |
||
| 548 | break; |
||
| 549 | case '_HSIB': |
||
| 550 | $facts[] = $this->convertEvent($fact, $death_of_a_half_sibling[$fact->tag()], $fact->record()->sex()); |
||
| 551 | break; |
||
| 552 | case '_CHIL': |
||
| 553 | $facts[] = $this->convertEvent($fact, $death_of_a_child[$fact->tag()], $fact->record()->sex()); |
||
| 554 | break; |
||
| 555 | } |
||
| 556 | } |
||
| 557 | } |
||
| 558 | } |
||
| 559 | |||
| 560 | // add child’s marriage |
||
| 561 | if (str_contains($SHOW_RELATIVES_EVENTS, '_MARR' . str_replace('_HSIB', '_SIBL', $option))) { |
||
| 562 | foreach ($child->spouseFamilies() as $sfamily) { |
||
| 563 | foreach ($sfamily->facts(['MARR']) as $fact) { |
||
| 564 | if ($this->includeFact($fact, $min_date, $max_date)) { |
||
| 565 | switch ($option) { |
||
| 566 | case '_GCHI': |
||
| 567 | switch ($relation) { |
||
| 568 | case 'dau': |
||
| 569 | $facts[] = $this->convertEvent($fact, $marriage_of_a_grandchild1, $child->sex()); |
||
| 570 | break; |
||
| 571 | case 'son': |
||
| 572 | $facts[] = $this->convertEvent($fact, $marriage_of_a_grandchild2, $child->sex()); |
||
| 573 | break; |
||
| 574 | case 'chi': |
||
| 575 | $facts[] = $this->convertEvent($fact, $marriage_of_a_grandchild, $child->sex()); |
||
| 576 | break; |
||
| 577 | } |
||
| 578 | break; |
||
| 579 | case '_SIBL': |
||
| 580 | $facts[] = $this->convertEvent($fact, $marriage_of_a_sibling, $child->sex()); |
||
| 581 | break; |
||
| 582 | case '_HSIB': |
||
| 583 | $facts[] = $this->convertEvent($fact, $marriage_of_a_half_sibling, $child->sex()); |
||
| 584 | break; |
||
| 585 | case '_CHIL': |
||
| 586 | $facts[] = $this->convertEvent($fact, $marriage_of_a_child, $child->sex()); |
||
| 587 | break; |
||
| 588 | } |
||
| 589 | } |
||
| 590 | } |
||
| 591 | } |
||
| 592 | } |
||
| 593 | } |
||
| 594 | |||
| 595 | return $facts; |
||
| 596 | } |
||
| 859 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths