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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user