mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-06 06:44:59 +00:00
cs: Enable more risky rules.
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user