@@ -35,13 +35,13 @@ |
||
35 | 35 | if (!is_array($whichInputs)) { |
36 | 36 | throw new RuleException('Compare only against list of known keys!'); |
37 | 37 | } |
38 | - $data = array_filter($this->getBoundForm()->getValues(), function ($k) use ($whichInputs) { |
|
38 | + $data = array_filter($this->getBoundForm()->getValues(), function($k) use ($whichInputs) { |
|
39 | 39 | return in_array($k, $whichInputs); |
40 | 40 | }, ARRAY_FILTER_USE_KEY); |
41 | 41 | |
42 | 42 | // now set it in predefined order |
43 | 43 | $flippedInputs = array_flip($whichInputs); |
44 | - uksort($data, function ($a, $b) use ($flippedInputs) { |
|
44 | + uksort($data, function($a, $b) use ($flippedInputs) { |
|
45 | 45 | return strcmp(strval($flippedInputs[$a]), strval($flippedInputs[$b])); |
46 | 46 | }); |
47 | 47 |
@@ -39,7 +39,7 @@ |
||
39 | 39 | * @param string $errorMessage |
40 | 40 | * @return $this |
41 | 41 | */ |
42 | - public function setHidden(string $alias, ArrayAccess &$cookie, string $errorMessage = ''): self |
|
42 | + public function setHidden(string $alias, ArrayAccess & $cookie, string $errorMessage = ''): self |
|
43 | 43 | { |
44 | 44 | $this->csrf->init($cookie); |
45 | 45 | $this->setEntry($alias); |