Passed
Push — develop ( 6a1353...7a7101 )
by Richard
03:14
created

LsfFileUploader   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
dl 0
loc 12
rs 10
c 1
b 0
f 0

1 Method

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