cs: Enable more risky rules.

This commit is contained in:
Pol Dellaiera
2021-11-30 11:28:52 +01:00
parent 3631fd99fd
commit c8195e6df5
65 changed files with 155 additions and 139 deletions

View File

@@ -285,7 +285,7 @@ class ExportManager
);
}
/* @var $formatter FormatterInterface */
/** @var FormatterInterface $formatter */
$formatter = $this->getFormatter($this->getFormatterAlias($data));
$filtersData = [];
$aggregatorsData = [];

View File

@@ -216,9 +216,9 @@ class CSVFormatter implements FormatterInterface
$columnKeysNb = count($this->getColumnHeaders());
$resultsKeysNb = count($this->export->getQueryKeys($this->exportData));
$results = $this->getOrderedResults();
/* @var $columnHeaders string[] the column headers associations */
/** @var string[] $columnHeaders the column headers associations */
$columnHeaders = [];
/* @var $data string[] the data of the csv file */
/** @var string[] $data the data of the csv file */
$contentData = [];
$content = [];
@@ -253,7 +253,7 @@ class CSVFormatter implements FormatterInterface
}
// add the column headers
/* @var $columns string[] the column for this row */
/** @var string[] $columns the column for this row */
$columns = array_slice($row, $rowKeysNb, $columnKeysNb);
$columnPosition = $this->findColumnPosition($columnHeaders, $columns);