diff --git a/htdocs/core/class/html.formprojet.class.php b/htdocs/core/class/html.formprojet.class.php
index a0e74c5cdd5..e9d38796589 100644
--- a/htdocs/core/class/html.formprojet.class.php
+++ b/htdocs/core/class/html.formprojet.class.php
@@ -267,7 +267,7 @@ class FormProjets
'value' => $obj->ref,
'ref' => $obj->ref,
'labelx' => $labeltoshow,
- 'label' => ((bool) $disabled) ? ''.$labeltoshow.'' : $labeltoshow,
+ 'label' => ($disabled ? ''.$labeltoshow.'' : $labeltoshow),
'disabled' => (bool) $disabled
);
}
diff --git a/htdocs/website/index.php b/htdocs/website/index.php
index d7e01018550..ae3362ab9d6 100644
--- a/htdocs/website/index.php
+++ b/htdocs/website/index.php
@@ -2661,12 +2661,8 @@ if ($action == 'generatesitemaps' && $usercanedit) {
dol_print_error($db);
}
- // Add the entry Sitemap: into the robot file.
+ // Add the entry Sitemap: into the robot.txt file.
$robotcontent = @file_get_contents($filerobot);
- $result = preg_replace('/\n/ims', '', $robotcontent);
- if ($result) {
- $robotcontent = $result;
- }
$robotsitemap = "Sitemap: ".$domainname."/".$xmlname;
$result = strpos($robotcontent, 'Sitemap: ');
if ($result) {
diff --git a/qodana.yaml b/qodana.yaml
index 1b5c0047379..2d7a46ec76e 100644
--- a/qodana.yaml
+++ b/qodana.yaml
@@ -25,4 +25,11 @@ exclude:
- name: PhpUnnecessaryLocalVariableInspection
- name: PhpUnusedParameterInspection
- name: PhpUnusedLocalVariableInspection
-
+ - name: PhpTernaryExpressionCanBeReplacedWithConditionInspection
+ - name: PhpSwitchStatementWitSingleBranchInspection
+ - name: PhpArrayAccessCanBeReplacedWithForeachValueInspection
+ - name: PhpArrayPushWithOneElementInspection
+ - name: PhpCastIsUnnecessaryInspection
+ - name: PhpDeprecationInspection
+ - name: PhpConditionAlreadyCheckedInspection
+
\ No newline at end of file