GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

TbInputSearch   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 1
cbo 1
dl 0
loc 21
ccs 0
cts 13
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A searchField() 0 14 2
1
<?php
2
/**
3
 *## TbInputSearch class file.
4
 *
5
 * @author Christoffer Niska <[email protected]>
6
 * @copyright Copyright &copy; Christoffer Niska 2011-
7
 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
8
 */
9
10
Yii::import('booster.widgets.input.TbInputInline');
11
12
/**
13
 *## TbInputSearch class
14
 *
15
 * Bootstrap vertical form input widget.
16
 *
17
 * @since 0.9.8
18
 * @package booster.widgets.forms.inputs
19
 */
20
class TbInputSearch extends TbInputInline
21
{
22
	/**
23
	 * Renders a text field.
24
	 * @return string the rendered content
25
	 */
26
	protected function searchField()
27
	{
28
		if (isset($this->htmlOptions['class'])) {
29
			$this->htmlOptions['class'] .= ' search-query';
30
		} else {
31
			$this->htmlOptions['class'] = 'search-query';
32
		}
33
34
		$this->setPlaceholder();
35
		echo $this->getPrepend();
36
		echo $this->form->textField($this->model, $this->attribute, $this->htmlOptions);
37
		echo $this->getAppend();
38
		echo $this->getError() . $this->getHint();
39
	}
40
}
41