Passed
Push — developer ( 073bf8...dc3b46 )
by Radosław
29:51 queued 14:38
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
 * Group Query Field Class.
4
 *
5
 * @package UIType
6
 *
7
 * @copyright YetiForce S.A.
8
 * @license   YetiForce Public License 5.0 (licenses/LicenseEN.txt or yetiforce.com)
9
 * @author    Adrian Kon <[email protected]>
10
 */
11
12
namespace App\Conditions\QueryFields;
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