Skip to content

Commit

Permalink
Qual: Fix & enable PhanPluginRedundantAssignmentInLoop (#28733)
Browse files Browse the repository at this point in the history
# Qual: Fix & enable PhanPluginRedundantAssignmentInLoop

Fixes the occurences that generated this notice & enable the report
for PhanPluginRedundantAssignmentInLoop
  • Loading branch information
mdeweerd authored Mar 10, 2024
1 parent 37afba9 commit d524e97
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dev/tools/phan/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@
'PhanPluginPHPDocInWrongComment',
'PhanRedefineClassInternal',
// 'PhanTypeInvalidThrowsIsInterface',
'PhanPluginRedundantAssignmentInLoop',
// 'PhanPluginRedundantAssignmentInLoop',
// 'PhanInvalidCommentForDeclarationType',
//'PhanParamSignatureMismatchInternal',
// 'PhanPluginEmptyStatementForeachLoop',
Expand Down
4 changes: 2 additions & 2 deletions htdocs/comm/action/pertype.php
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@ function show_day_events_pertype($username, $day, $month, $year, $monthshown, $s
if (count($cases1[$h]) > 1) {
$title1 .= count($cases1[$h]).' '.(count($cases1[$h]) == 1 ? $langs->trans("Event") : $langs->trans("Events"));
}
$string1 = ' ';

if (!getDolGlobalString('AGENDA_NO_TRANSPARENT_ON_NOT_BUSY')) {
$style1 = 'peruser_notbusy';
} else {
Expand All @@ -1228,7 +1228,7 @@ function show_day_events_pertype($username, $day, $month, $year, $monthshown, $s
if (count($cases2[$h]) > 1) {
$title2 .= count($cases2[$h]).' '.(count($cases2[$h]) == 1 ? $langs->trans("Event") : $langs->trans("Events"));
}
$string2 = ' ';

if (!getDolGlobalString('AGENDA_NO_TRANSPARENT_ON_NOT_BUSY')) {
$style2 = 'peruser_notbusy';
} else {
Expand Down
8 changes: 4 additions & 4 deletions htdocs/comm/action/peruser.php
Original file line number Diff line number Diff line change
Expand Up @@ -1503,7 +1503,7 @@ function show_day_events2($username, $day, $month, $year, $monthshown, $style, &
if (count($cases1[$h]) > 1) {
$title1 .= count($cases1[$h]).' '.(count($cases1[$h]) == 1 ? $langs->trans("Event") : $langs->trans("Events"));
}
$string1 = ' ';

if (!getDolGlobalString('AGENDA_NO_TRANSPARENT_ON_NOT_BUSY')) {
$style1 = 'peruser_notbusy';
} else {
Expand All @@ -1520,7 +1520,7 @@ function show_day_events2($username, $day, $month, $year, $monthshown, $style, &
if (count($cases2[$h]) > 1) {
$title2 .= count($cases2[$h]).' '.(count($cases2[$h]) == 1 ? $langs->trans("Event") : $langs->trans("Events"));
}
$string2 = ' ';

if (!getDolGlobalString('AGENDA_NO_TRANSPARENT_ON_NOT_BUSY')) {
$style2 = 'peruser_notbusy';
} else {
Expand All @@ -1537,7 +1537,7 @@ function show_day_events2($username, $day, $month, $year, $monthshown, $style, &
if (count($cases3[$h]) > 1) {
$title3 .= count($cases3[$h]).' '.(count($cases3[$h]) == 1 ? $langs->trans("Event") : $langs->trans("Events"));
}
$string3 = ' ';

if (!getDolGlobalString('AGENDA_NO_TRANSPARENT_ON_NOT_BUSY')) {
$style3 = 'peruser_notbusy';
} else {
Expand All @@ -1554,7 +1554,7 @@ function show_day_events2($username, $day, $month, $year, $monthshown, $style, &
if (count($cases4[$h]) > 1) {
$title4 .= count($cases4[$h]).' '.(count($cases4[$h]) == 1 ? $langs->trans("Event") : $langs->trans("Events"));
}
$string4 = ' ';

if (!getDolGlobalString('AGENDA_NO_TRANSPARENT_ON_NOT_BUSY')) {
$style4 = 'peruser_notbusy';
} else {
Expand Down

0 comments on commit d524e97

Please sign in to comment.