All   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A transform() 0 3 1
1
<?php
2
3
/**
4
 * @license LGPLv3, https://opensource.org/licenses/LGPL-3.0
5
 * @copyright Aimeos (aimeos.org), 2016-2025
6
 * @package Base
7
 * @subpackage View
8
 */
9
10
11
namespace Aimeos\Base\View\Helper\Access;
12
13
14
/**
15
 * View helper class for checking access levels
16
 *
17
 * @package Base
18
 * @subpackage View
19
 */
20
class All extends \Aimeos\Base\View\Helper\Base implements Iface
21
{
22
	/**
23
	 * Checks the access level of the current user
24
	 *
25
	 * @param string|array $groups Group names that are allowed
26
	 * @return bool True if access is allowed, false if not
27
	 */
28
	public function transform( $groups ) : bool
29
	{
30
		return true;
31
	}
32
}
33