[ticket/17414] Clean up small code issues noticed by sniffer

PHPBB-17414
This commit is contained in:
Marc Alexander 2024-10-17 19:57:31 +02:00
parent dd1c6d647f
commit 687448be49
No known key found for this signature in database
GPG key ID: 50E0D2423696F995
3 changed files with 13 additions and 2 deletions

View file

@ -1,4 +1,15 @@
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
namespace phpbb\captcha\plugins;

View file

@ -65,7 +65,7 @@ class legacy_wrapper implements plugin_interface
return $this->legacy_captcha->has_config();
}
return false;
return '';
}
/**

View file

@ -272,7 +272,7 @@ class turnstile extends base
{
foreach ($captcha_vars as $captcha_var => $template_var)
{
$var = $this->request->is_set($captcha_var) ? $this->request->variable($captcha_var, '') : $this->config->offsetGet($captcha_var);;
$var = $this->request->is_set($captcha_var) ? $this->request->variable($captcha_var, '') : $this->config->offsetGet($captcha_var);
$this->template->assign_var($template_var, $var);
}