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::searchField()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 14
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 14
ccs 0
cts 13
cp 0
rs 9.4285
cc 2
eloc 10
nc 2
nop 0
crap 6
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