app/Statistics/Repository/IndividualRepository.php
private function totalDeceasedQuery(): int
    {
        return DB::table('individuals')
            ->where('i_file', '=', $this->tree->id())
            ->where(static function (Builder $query): void {
                foreach (Gedcom::DEATH_EVENTS as $death_event) {
                    $query->orWhere('i_gedcom', 'LIKE', "%\n1 " . $death_event . '%');
                }
            })
            ->count();
    }
private function totalDeceasedQuery(): int
    {
        return DB::table('individuals')
            ->where('i_file', '=', $this->tree->id())
            ->where(static function (Builder $query): void {
                foreach (Gedcom::DEATH_EVENTS as $death_event) {
                    $query->orWhere('i_gedcom', 'LIKE', "%\n1 " . $death_event . '%');
                }
            })
            ->count();
    }
private function totalDeceasedQuery ( ) : int { return DB :: table ( 'individuals' ) -> where ( 'i_file' , '=' , $ this -> tree -> id ( ) ) -> where ( static function ( Builder $ query ) : void { foreach ( Gedcom :: DEATH_EVENTS as $ death_event ) { $ query -> orWhere ( 'i_gedcom' , 'LIKE' , "%\n1 " . $ death_event . '%' ) ; } } ) -> count ( ) ; }
Count the number of dead individuals.

@return int
Count the number of dead individuals .