for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
*
* Advanced BBCode Box
* @copyright (c) 2020, 2023 Matt Friedman
* @license GNU General Public License, version 2 (GPL-2.0)
*/
namespace vse\abbc3\acp;
class abbc3_module
{
/** @var string */
public $page_title;
public $tpl_name;
public $u_action;
* Main ACP module
* @throws \Exception
public function main()
global $phpbb_container;
$this->tpl_name = 'acp_abbc3_settings';
$this->page_title = 'ACP_ABBC3_SETTINGS';
try
$phpbb_container->get('vse.abbc3.acp_controller')
->set_u_action($this->u_action)
->handle();
}
catch (\RuntimeException $e)
trigger_error($e->getMessage() . adm_back_link($this->u_action), $e->getCode());
adm_back_link
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
trigger_error($e->getMessage() . /** @scrutinizer ignore-call */ adm_back_link($this->u_action), $e->getCode());