Passed
Push — develop ( 319bd8...330c7a )
by Neill
16:41 queued 15s
created

Section   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 6
c 0
b 0
f 0
dl 0
loc 20
ccs 0
cts 10
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getErrorHtml() 0 3 1
A getComponentDetails() 0 6 1
1
<?php
2
/**
3
 * @link http://www.newicon.net/neon
4
 * @copyright Copyright (c) 2016 Newicon Ltd
5
 * @license http://www.newicon.net/neon/license
6
 */
7
8
namespace neon\core\form\fields;
9
10
use neon\core\form\fields\Field;
11
12
/**
13
 * Class Text
14
 * @package neon\core\form
15
 */
16
class Section extends Field
17
{
18
	/**
19
	 * Sections do not have errors
20
	 * @return string
21
	 */
22
	public function getErrorHtml()
23
	{
24
		return '';
25
	}
26
27
	/**
28
	 * @inheritdoc
29
	 */
30
	public function getComponentDetails()
31
	{
32
		return [
33
			'group' => "Form Only",
34
			'icon' => 'fa fa-square-o',
35
			'order' => 925
36
		];
37
	}
38
}