1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-13 12:14:06 +02:00

[ticket/12724] Add Squiz.PHP.Eval in the legacy ruleset

PHPBB3-12724
This commit is contained in:
Tristan Darricau
2014-06-15 22:03:39 +02:00
parent 3a96c5b753
commit 5a320adc75
5 changed files with 25 additions and 0 deletions

View File

@@ -752,12 +752,16 @@ class module
break;
case 'select':
// @codingStandardsIgnoreStart
eval('$s_options = ' . str_replace('{VALUE}', $value, $options) . ';');
// @codingStandardsIgnoreEnd
$tpl = '<select id="' . $name . '" name="' . $name . '">' . $s_options . '</select>';
break;
case 'custom':
// @codingStandardsIgnoreStart
eval('$tpl = ' . str_replace('{VALUE}', $value, $options) . ';');
// @codingStandardsIgnoreEnd
break;
default: