app/Services/CalendarService.php
private function nisanAnniversaries(Builder $query, JewishDate $anniv): void
    {
        if ($anniv->day === 1 && !$anniv->isLeapYear()) {
            $query->where(static function (Builder $query): void {
                $query->where(static function (Builder $query): void {
                    $query->where('d_day', '<=', 1)->where('d_mon', '=', 8);
                })->orWhere(static function (Builder $query): void {
                    $query->where('d_day', '=', 30)->where('d_mon', '=', 6);
                });
            });
        } else {
            $this->defaultAnniversaries($query, $anniv);
        }
    }
private function nisanAnniversaries(Builder $query, JewishDate $anniv): void
    {
        if ($anniv->day === 1 && !$anniv->isLeapYear()) {
            $query->where(static function (Builder $query): void {
                $query->where(static function (Builder $query): void {
                    $query->where('d_day', '<=', 1)->where('d_mon', '=', 8);
                })->orWhere(static function (Builder $query): void {
                    $query->where('d_day', '=', 30)->where('d_mon', '=', 6);
                });
            });
        } else {
            $this->defaultAnniversaries($query, $anniv);
        }
    }
private function nisanAnniversaries ( Builder $ query , JewishDate $ anniv ) : void { if ( $ anniv -> day === 1 && ! $ anniv -> isLeapYear ( ) ) { $ query -> where ( static function ( Builder $ query ) : void { $ query -> where ( static function ( Builder $ query ) : void { $ query -> where ( 'd_day' , '<=' , 1 ) -> where ( 'd_mon' , '=' , 8 ) ; } ) -> orWhere ( static function ( Builder $ query ) : void { $ query -> where ( 'd_day' , '=' , 30 ) -> where ( 'd_mon' , '=' , 6 ) ; } ) ; } ) ; } else { $ this -> defaultAnniversaries ( $ query , $ anniv ) ; } }
1 NSN includes 30 ADR, if this year is non-leap.

@param Builder    $query
@param JewishDate $anniv
1 NSN includes 30 ADR if this year is non - leap .