Passed
Push — develop ( 356c70...c6492e )
by Richard
03:28
created

LsfTextarea   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A response() 0 5 1
1
<?php
2
3
namespace Riclep\StoryblokForms\Blocks;
4
5
use Riclep\StoryblokForms\Input;
6
7
class LsfTextarea extends Input
8
{
9
	protected $type = 'input';
10
11
	/**
12
	 * Returns the Input’s response after the form has been submitted and validated
13
	 *
14
	 * @param $input
15
	 * @return mixed
16
	 */
17
	public function response($input) {
18
		return [
19
			'label' => $this->label,
0 ignored issues
show
Bug Best Practice introduced by
The property label does not exist on Riclep\StoryblokForms\Blocks\LsfTextarea. Since you implemented __get, consider adding a @property annotation.
Loading history...
20
			'response' => $input,
21
			'type' => $this->type,
22
		];
23
	}
24
}