fix: [internal] Remove duplicate code that cause error in PHP 7.4
fix: [internal] Remove duplicate code that cause error in PHP 7.4

MISP/MISP,MISP/MISP,SteveClement/MISP,MISP/MISP,SteveClement/MISP,SteveClement/MISP,SteveClement/MISP,MISP/MISP,MISP/MISP,SteveClement/MISP