-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33134 from mdeweerd/fix/phan.theme
Qual: Fix phan notices (theme)
- Loading branch information
Showing
12 changed files
with
130 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?php | ||
/* Copyright (C) 2024 MDW <[email protected]> | ||
/* Copyright (C) 2024-2025 MDW <[email protected]> | ||
* Copyright (C) 2024 Frédéric France <[email protected]> | ||
*/ | ||
if (!defined('ISLOADEDBYSTEELSHEET')) { | ||
|
@@ -254,6 +254,8 @@ | |
* @param string $commentLabel a comment label | ||
* @param string $cssPrefix a css prefix | ||
* @return void | ||
* | ||
* @phan-suppress PhanRedefineFunction | ||
*/ | ||
function _createStatusBadgeCss($statusName, $statusVarNamePrefix = '', $commentLabel = '', $cssPrefix = '') | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<?php | ||
/* Copyright (C) 2024 Frédéric France <[email protected]> | ||
* Copyright (C) 2025 MDW <[email protected]> | ||
*/ | ||
if (!defined('ISLOADEDBYSTEELSHEET')) { | ||
die('Must be call by steelsheet'); | ||
|
@@ -12,9 +13,21 @@ | |
* @var string $colortextlink | ||
* @var int $dol_optimize_smallscreen | ||
* @var string $textbutaction | ||
* @var int<0,max> $nbtopmenuentries | ||
* @var string $right | ||
* @var string $left | ||
*/ | ||
|
||
' | ||
@phan-var-force string $butactionbg | ||
@phan-var-force string $colortextlink | ||
@phan-var-force int<0,1> $dol_optimize_smallscreen | ||
@phan-var-force string $fontlist | ||
@phan-var-force string $left | ||
@phan-var-force int<0,max> $nbtopmenuentries | ||
@phan-var-force string $right | ||
@phan-var-force string $textbutaction | ||
'; | ||
?> | ||
|
||
/* IDE Hack <style type="text/css"> */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,28 @@ | ||
<?php | ||
/* Copyright (C) 2025 MDW <[email protected]> | ||
*/ | ||
if (!defined('ISLOADEDBYSTEELSHEET')) { | ||
die('Must be call by steelsheet'); | ||
} | ||
include_once DOL_DOCUMENT_ROOT."/core/lib/functions2.lib.php"; | ||
/** | ||
* @var string $colorbackhmenu1 | ||
* @var string $colorbacklinepair1 | ||
* @var string $colortextbackhmenu | ||
* @var string $colortextlink | ||
* @var int<0,1> $disableimages | ||
* @var string $left | ||
* @var string $right | ||
*/ | ||
' | ||
@phan-var-force string $colorbackhmenu1 | ||
@phan-var-force string $colorbacklinepair1 | ||
@phan-var-force string $colortextbackhmenu | ||
@phan-var-force string $colortextlink | ||
@phan-var-force int<0,1> $disableimages | ||
@phan-var-force string $left | ||
@phan-var-force string $right | ||
'; | ||
?> | ||
|
||
/* IDE Hack <style type="text/css"> */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
/* | ||
/* Copyright (C) 2004-2017 Laurent Destailleur <[email protected]> | ||
* Copyright (C) 2024 Frédéric France <[email protected]> | ||
* Copyright (C) 2025 MDW <[email protected]> | ||
* | ||
* 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 | ||
|
@@ -27,6 +27,9 @@ | |
/** | ||
* @var string $path | ||
*/ | ||
' | ||
@phan-var-force string $path | ||
'; | ||
?> | ||
/* IDE Hack <style type="text/css"> */ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
/* | ||
/* Copyright (C) 2004-2017 Laurent Destailleur <[email protected]> | ||
* Copyright (C) 2024 Frédéric France <[email protected]> | ||
* Copyright (C) 2025 MDW <[email protected]> | ||
* | ||
* 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 | ||
|
@@ -24,6 +24,22 @@ | |
if (!defined('ISLOADEDBYSTEELSHEET')) { | ||
die('Must be call by stylesheet'); | ||
} | ||
/** | ||
* @var string $badgeDanger | ||
* @var string $badgeSuccess | ||
* @var string $badgeWarning | ||
* @var string $colorblind_deuteranopes_badgeDanger | ||
* @var string $colorblind_deuteranopes_badgeSuccess | ||
* @var string $topMenuFontSize | ||
*/ | ||
' | ||
@phan-var-force string $badgeDanger | ||
@phan-var-force string $badgeSuccess | ||
@phan-var-force string $badgeWarning | ||
@phan-var-force string $colorblind_deuteranopes_badgeDanger | ||
@phan-var-force string $colorblind_deuteranopes_badgeSuccess | ||
@phan-var-force string $topMenuFontSize | ||
'; | ||
?> | ||
/* IDE Hack <style type="text/css"> */ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,24 @@ | ||
<?php | ||
/* Copyright (C) 2025 MDW <[email protected]> | ||
*/ | ||
if (!defined('ISLOADEDBYSTEELSHEET')) { | ||
die('Must be call by steelsheet'); | ||
} ?> | ||
} | ||
/** | ||
* @var string $badgeDanger | ||
* @var string $badgeSuccess | ||
* @var string $badgeWarning | ||
* @var string $colorblind_deuteranopes_badgeDanger | ||
* @var string $colorblind_deuteranopes_badgeSuccess | ||
*/ | ||
' | ||
@phan-var-force string $badgeDanger | ||
@phan-var-force string $badgeSuccess | ||
@phan-var-force string $badgeWarning | ||
@phan-var-force string $colorblind_deuteranopes_badgeDanger | ||
@phan-var-force string $colorblind_deuteranopes_badgeSuccess | ||
' | ||
?> | ||
|
||
/* IDE Hack <style type="text/css"> */ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?php | ||
/* Copyright (C) 2024 MDW <[email protected]> | ||
/* Copyright (C) 2024-2025 MDW <[email protected]> | ||
* Copyright (C) 2025 Frédéric France <[email protected]> | ||
*/ | ||
if (!defined('ISLOADEDBYSTEELSHEET')) { | ||
|
@@ -257,6 +257,8 @@ | |
* @param string $commentLabel a comment label | ||
* @param string $cssPrefix a css prefix | ||
* @return void | ||
* | ||
* @phan-suppress PhanRedefineFunction | ||
*/ | ||
function _createStatusBadgeCss($statusName, $statusVarNamePrefix = '', $commentLabel = '', $cssPrefix = '') | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<?php | ||
/* Copyright (C) 2024 Frédéric France <[email protected]> | ||
* Copyright (C) 2025 MDW <[email protected]> | ||
*/ | ||
if (!defined('ISLOADEDBYSTEELSHEET')) { | ||
die('Must be call by steelsheet'); | ||
|
@@ -12,6 +13,16 @@ | |
* @var string $butactionbg | ||
* @var string $textbutaction | ||
*/ | ||
' | ||
@phan-var-force string $butactionbg | ||
@phan-var-force string $colortextlink | ||
@phan-var-force int $dol_optimize_smallscreen | ||
@phan-var-force string $fontlist | ||
@phan-var-force string $left | ||
@phan-var-force int $nbtopmenuentries | ||
@phan-var-force string $right | ||
@phan-var-force string $textbutaction | ||
'; | ||
?> | ||
|
||
/* IDE Hack <style type="text/css"> */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,32 @@ | ||
<?php | ||
/* Copyright (C) 2025 MDW <[email protected]> | ||
*/ | ||
if (!defined('ISLOADEDBYSTEELSHEET')) { | ||
die('Must be call by steelsheet'); | ||
} | ||
|
||
// When no photo, we show the login name, so we need an offset to output picto at a fixed position. | ||
$atoploginusername = empty($user->photo) ? 52 : 0; | ||
|
||
/** | ||
* @var string $colorbackhmenu1 | ||
* @var string $colorbacklinepair1 | ||
* @var string $colortextbackhmenu | ||
* @var string $colortextlink | ||
* @var int<0,1> $disableimages | ||
* @var string $left | ||
* @var string $right | ||
*/ | ||
' | ||
@phan-var-force string $colorbackhmenu1 | ||
@phan-var-force string $colorbacklinepair1 | ||
@phan-var-force string $colortextbackhmenu | ||
@phan-var-force string $colortextlink | ||
@phan-var-force int<0,1> $disableimages | ||
@phan-var-force string $left | ||
@phan-var-force string $right | ||
'; | ||
|
||
?> | ||
|
||
/* IDE Hack <style type="text/css"> */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
<?php | ||
/* Copyright (C) 2025 MDW <[email protected]> | ||
*/ | ||
if (!defined('ISLOADEDBYSTEELSHEET')) { | ||
die('Must be call by steelsheet'); | ||
} ?> | ||
} | ||
/** | ||
* @var string $path | ||
*/ | ||
' | ||
@phan-var-force string $path | ||
'; | ||
?> | ||
|
||
/* IDE Hack <style type="text/css"> */ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
<?php | ||
/* Copyright (C) 2025 MDW <[email protected]> | ||
*/ | ||
if (!defined('ISLOADEDBYSTEELSHEET')) { | ||
die('Must be call by steelsheet'); | ||
} | ||
|
||
/** | ||
* @var string $path | ||
*/ | ||
' | ||
@phan-var-force string $path | ||
'; | ||
|
||
include dol_buildpath($path.'/theme/eldy/progress.inc.php', 0); // actually md use same style as eldy theme |