@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | * @param array $types |
16 | 16 | * @return Form |
17 | 17 | */ |
18 | - public function make(array $rules, Model $model = null, array $types = []); |
|
18 | + public function make(array $rules, Model $model = null, array $types = [ ]); |
|
19 | 19 | |
20 | 20 | /** |
21 | 21 | * Make a form instance by using the form request. |
@@ -25,5 +25,5 @@ discard block |
||
25 | 25 | * @param array $types |
26 | 26 | * @return Form |
27 | 27 | */ |
28 | - public function makeFromRequest($formRequest, Model $model, array $types = []); |
|
28 | + public function makeFromRequest($formRequest, Model $model, array $types = [ ]); |
|
29 | 29 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | * |
41 | 41 | * @var array |
42 | 42 | */ |
43 | - protected $ruleMap = []; |
|
43 | + protected $ruleMap = [ ]; |
|
44 | 44 | |
45 | 45 | /** |
46 | 46 | * The default map of rules. |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | if (preg_match("/^{$rule}\:/", $fieldRule)) { |
214 | 214 | $explode = explode(':', $fieldRule); |
215 | 215 | |
216 | - return " {$mapAttribute}=\"{$explode[$index]}\""; |
|
216 | + return " {$mapAttribute}=\"{$explode[ $index ]}\""; |
|
217 | 217 | } |
218 | 218 | } |
219 | 219 |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * @param array $types |
37 | 37 | * @return Form |
38 | 38 | */ |
39 | - public function make(array $formRules, Model $model = null, array $types = []) |
|
39 | + public function make(array $formRules, Model $model = null, array $types = [ ]) |
|
40 | 40 | { |
41 | 41 | $form = new Form( |
42 | 42 | $model, $this->helper |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | * @param array $types |
67 | 67 | * @return Form |
68 | 68 | */ |
69 | - public function makeFromRequest($formRequest, Model $model, array $types = []) |
|
69 | + public function makeFromRequest($formRequest, Model $model, array $types = [ ]) |
|
70 | 70 | { |
71 | 71 | // TODO: Implement makeFromRequest() method. |
72 | 72 | |
@@ -83,8 +83,8 @@ discard block |
||
83 | 83 | */ |
84 | 84 | protected function getInputByRulesAndTypes($name, $rules, $types) |
85 | 85 | { |
86 | - if (isset($types[$name])) { |
|
87 | - return $this->helper->getFieldClassFromType($types[$name]); |
|
86 | + if (isset($types[ $name ])) { |
|
87 | + return $this->helper->getFieldClassFromType($types[ $name ]); |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | return $this->helper->getFieldClassFromRules($rules); |