mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-03 13:33:48 +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.
|
||||
|
@@ -30,10 +30,11 @@ class TranslatableStringTwig extends AbstractExtension
|
||||
$this->helper = $translatableStringHelper;
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* Returns a list of filters to add to the existing list.
|
||||
*
|
||||
* (non-PHPdoc)
|
||||
*
|
||||
* @see Twig_Extension::getFilters()
|
||||
*/
|
||||
public function getFilters()
|
||||
@@ -45,7 +46,7 @@ class TranslatableStringTwig extends AbstractExtension
|
||||
), ];
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* Returns the name of the extension.
|
||||
*
|
||||
* @return The name of the extension.
|
||||
|
@@ -114,7 +114,7 @@ class WidgetRenderingTwig extends AbstractExtension
|
||||
$content = '';
|
||||
|
||||
foreach ($this->getWidgetsArraysOrdered($block) as $a) {
|
||||
/* @var $widget Widget\WidgetInterface */
|
||||
/** @var Widget\WidgetInterface $widget */
|
||||
$widget = $a[0];
|
||||
$config = $a[1];
|
||||
|
||||
|
Reference in New Issue
Block a user