Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
64 | protected function prepare(): Filter |
||
65 | { |
||
66 | $this->prepared = []; |
||
67 | foreach ($this->filterArgs as $k => $v) { |
||
68 | if (is_object($v)) { |
||
69 | $this->prepared[$k] = [ |
||
70 | self::INPUT_FILTER_FILTER => FILTER_CALLBACK, |
||
71 | self::INPUT_FILTER_OPTIONS => [$v, self::INPUT_FILTER_PROCESS] |
||
72 | ]; |
||
73 | } else { |
||
74 | $this->prepared[$k] = $v; |
||
75 | } |
||
76 | } |
||
77 | unset($this->filterArgs); |
||
78 | return $this; |
||
79 | } |
||
81 |