Suppress PhanEmptyForeachBody on TODO code

This commit is contained in:
MDW
2024-03-15 18:21:57 +01:00
parent c9135d0c33
commit df591e8c15

View File

@@ -1,6 +1,7 @@
<?php
/* Copyright (C) 2007-2018 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -218,6 +219,7 @@ if (empty($conf->use_javascript_ajax) || getDolGlobalString('MAIN_ECM_DISABLE_JS
// We removed all expanded sections that are child of the closed section
$oldexpandedsectionarray = $expandedsectionarray;
$expandedsectionarray = array(); // Reset
// @phan-suppress-next-line PhanEmptyForeachBody
foreach ($oldexpandedsectionarray as $sectioncursor) {
// TODO is_in_subtree(fulltree,sectionparent,sectionchild) does nox exists. Enable or remove this...
//if ($sectioncursor && ! is_in_subtree($sqltree,$section,$sectioncursor)) $expandedsectionarray[]=$sectioncursor;