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

@@ -20,21 +20,23 @@ use Twig\TwigFilter;
*/
class CSVCellTwig extends AbstractExtension
{
/*
* Replace into a string the char " by ""
/**
* Replace into a string the char " by "".
*
* @param String $content The input string.
* @return String The safe string.
* @param string $content The input string.
*
* @return string The safe string.
*/
public function csvCellFilter($content)
{
return str_replace('"', '""', $content);
}
/*
/**
* Returns a list of filters to add to the existing list.
*
* (non-PHPdoc)
*
* @see Twig_Extension::getFilters()
*/
public function getFilters()
@@ -48,7 +50,7 @@ class CSVCellTwig extends AbstractExtension
];
}
/*
/**
* Returns the name of the extension.
*
* @return The name of the extension.