* clean code

* clean code
This commit is contained in:
Frédéric FRANCE 2025-09-15 16:18:01 +02:00 committed by GitHub
parent 9d3799f337
commit eda0b8950b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 17 deletions

View file

@ -9642,18 +9642,6 @@ parameters:
count: 1
path: ../../../htdocs/core/search_page.php
-
message: '#^Variable \$type2label might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/core/tpl/admin_extrafields_edit.tpl.php
-
message: '#^Variable \$type2label might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/core/tpl/admin_extrafields_view.tpl.php
-
message: '#^Property CommonObject\:\:\$lines \(array\<CommonObject\|stdClass\>\) in isset\(\) is not nullable\.$#'
identifier: isset.property

View file

@ -1,7 +1,7 @@
<?php
/* Copyright (C) 2010-2012 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2012 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2018-2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2018-2025 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2025 MDW <mdeweerd@users.noreply.github.com>
*
* This program is free software; you can redistribute it and/or modify
@ -38,6 +38,7 @@
* @var string $action
* @var string $elementtype
* @var string $textobject
* @var string[] $type2label
*/
// Protection to avoid direct call of template
if (empty($conf) || !is_object($conf)) {

View file

@ -1,8 +1,8 @@
<?php
/* Copyright (C) 2010-2018 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2012-2021 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2018-2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
/* Copyright (C) 2010-2018 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2012-2021 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2018-2025 Frédéric France <frederic.france@free.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
@ -35,6 +35,7 @@
* @var string $action
* @var string $elementtype
* @var string $textobject
* @var string[] $type2label
*/
// Protection to avoid direct call of template
if (empty($langs) || !is_object($langs)) {