1 | <?php |
||
18 | trait OptionMasker |
||
19 | { |
||
20 | /** |
||
21 | * List of properties to mask for print safe output |
||
22 | * |
||
23 | * @var array |
||
24 | */ |
||
25 | protected $maskCandidates = []; |
||
26 | |||
27 | /** |
||
28 | * Set potentially insecure properties. |
||
29 | * |
||
30 | * @param array $candidates |
||
31 | */ |
||
32 | protected function setMaskCandidates(array $candidates) |
||
36 | |||
37 | /** |
||
38 | * Return the command with masked passwords or keys. |
||
39 | * |
||
40 | * @return string |
||
41 | */ |
||
42 | public function getCommandLinePrintable() |
||
56 | |||
57 | /** |
||
58 | * Mask given properties and return map with original values. |
||
59 | * |
||
60 | * @param array $properties |
||
61 | * @return array |
||
62 | */ |
||
63 | private function mask(array $properties) |
||
72 | |||
73 | /** |
||
74 | * Restore masked properties. |
||
75 | * |
||
76 | * @param array $masked |
||
77 | */ |
||
78 | private function restore(array $masked) |
||
84 | |||
85 | /** |
||
86 | * Return list of properties that actually needs masking. |
||
87 | * |
||
88 | * @return array |
||
89 | */ |
||
90 | private function getPropertiesToMask() |
||
100 | } |
||
101 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.