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

LsfFileUploader::response()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 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
}