Passed
Push — master ( 418b80...c83538 )
by Matt
01:35
created

abbc3_module::save_pipes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 10
rs 10
1
<?php
2
/**
3
 *
4
 * Advanced BBCode Box
5
 *
6
 * @copyright (c) 2020, 2023 Matt Friedman
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace vse\abbc3\acp;
12
13
class abbc3_module
14
{
15
	/** @var string */
16
	public $page_title;
17
18
	/** @var string */
19
	public $tpl_name;
20
21
	/** @var string */
22
	public $u_action;
23
24
	/**
25
	 * Main ACP module
26
	 * @throws \Exception
27
	 */
28
	public function main()
29
	{
30
		global $phpbb_container;
31
32
		$acp_controller = $phpbb_container->get('vse.abbc3.acp_controller');
33
34
		$this->tpl_name = 'acp_abbc3_settings';
35
36
		$this->page_title = $acp_controller->get_page_title();
37
38
		$acp_controller->set_u_action($this->u_action);
39
40
		try
41
		{
42
			$acp_controller->handle();
43
		}
44
		catch (\phpbb\exception\runtime_exception $e)
0 ignored issues
show
Bug introduced by
The type phpbb\exception\runtime_exception was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
45
		{
46
			trigger_error($e->getMessage() . adm_back_link($this->u_action), $e->getCode());
0 ignored issues
show
Bug introduced by
The function adm_back_link was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

46
			trigger_error($e->getMessage() . /** @scrutinizer ignore-call */ adm_back_link($this->u_action), $e->getCode());
Loading history...
47
		}
48
	}
49
}
50