2
0
forked from Wavyzz/dolibarr
* 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
3 changed files with 7 additions and 17 deletions

View File

@@ -9642,18 +9642,6 @@ parameters:
count: 1 count: 1
path: ../../../htdocs/core/search_page.php 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\.$#' message: '#^Property CommonObject\:\:\$lines \(array\<CommonObject\|stdClass\>\) in isset\(\) is not nullable\.$#'
identifier: isset.property identifier: isset.property

View File

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

View File

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