Skip to content

Commit

Permalink
fix and clean phpstan baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic34 committed Nov 7, 2024
1 parent 4cc79bf commit e5a6587
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 21 deletions.
15 changes: 0 additions & 15 deletions build/phpstan/phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -22140,16 +22140,6 @@ parameters:
count: 1
path: ../../htdocs/projet/ganttchart.inc.php

-
message: "#^Variable \\$db might not be defined\\.$#"
count: 1
path: ../../htdocs/projet/ganttchart.inc.php

-
message: "#^Variable \\$langs might not be defined\\.$#"
count: 4
path: ../../htdocs/projet/ganttchart.inc.php

-
message: "#^Variable \\$task_dependencies might not be defined\\.$#"
count: 2
Expand All @@ -22160,11 +22150,6 @@ parameters:
count: 5
path: ../../htdocs/projet/ganttchart.inc.php

-
message: "#^Variable \\$arrayofjs might not be defined\\.$#"
count: 1
path: ../../htdocs/projet/ganttview.php

-
message: "#^Variable \\$param might not be defined\\.$#"
count: 1
Expand Down
6 changes: 5 additions & 1 deletion htdocs/projet/ganttchart.inc.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
/* Copyright (C) 2010-2017 Laurent Destailleur <[email protected]>
* Copyright (C) 2024 Frédéric France <[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
Expand All @@ -20,7 +21,10 @@
* \ingroup projet
* \brief Gantt diagram of a project
*/

/**
* @var DoliDB $db
* @var Translate $langs
*/
?>

<div id="principal_content" style="margin-left: 0;">
Expand Down
10 changes: 5 additions & 5 deletions htdocs/projet/ganttview.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@
$task = new Task($db);

$arrayofcss = array('/includes/jsgantt/jsgantt.css');

$arrayofjs = [];
if (!empty($conf->use_javascript_ajax)) {
$arrayofjs = array(
'/includes/jsgantt/jsgantt.js',
'/projet/jsgantt_language.js.php?lang='.$langs->defaultlang
);
$arrayofjs = [
'/includes/jsgantt/jsgantt.js',
'/projet/jsgantt_language.js.php?lang='.$langs->defaultlang
];
}

//$title=$langs->trans("Gantt").($object->ref?' - '.$object->ref.' '.$object->name:'');
Expand Down

0 comments on commit e5a6587

Please sign in to comment.