Passed
Pull Request — developer (#16868)
by
unknown
19:26
created

GroupField   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getValue() 0 6 2
1
<?php
2
3
namespace App\Conditions\QueryFields;
4
5
/**
6
 * Group Query Field Class.
7
 *
8
 * @package UIType
9
 *
10
 * @copyright YetiForce S.A.
11
 * @license   YetiForce Public License 5.0 (licenses/LicenseEN.txt or yetiforce.com)
12
 * @author    Adrian Kon <[email protected]>
13
 */
14
class GroupField extends BaseField
15
{
16
	/** {@inheritdoc} */
17
	public function getValue()
18
	{
19
		if (\is_array($this->value)) {
20
			return $this->value;
21
		}
22
		return explode('##', $this->value);
23
	}
24
}
25