1 | <?php |
||
30 | class InterpolateProcessor extends ObjectAbstract implements ProcessorInterface |
||
31 | { |
||
32 | /** |
||
33 | * Replace any '{item}' in the messsage with context['item'] value |
||
34 | * |
||
35 | * @see http://www.php-fig.org/psr/psr-3/ |
||
36 | * |
||
37 | * {@inheritDoc} |
||
38 | */ |
||
39 | public function __invoke(LogEntryInterface $logEntry) |
||
51 | |||
52 | /** |
||
53 | * Get placeholders in array |
||
54 | * |
||
55 | * @param string $message |
||
56 | * @return array |
||
57 | * @access protected |
||
58 | */ |
||
59 | protected function getPlaceHolders(/*# string */ $message)/*# : array */ |
||
73 | |||
74 | /** |
||
75 | * Replace with values from the context array |
||
76 | * |
||
77 | * @param string $name |
||
78 | * @param string $placeholder |
||
79 | * @param array &$context |
||
80 | * @return string |
||
81 | * @access protected |
||
82 | */ |
||
83 | protected function replaceWith( |
||
102 | |||
103 | /** |
||
104 | * Get string representation of mixed-typed $data |
||
105 | * |
||
106 | * @param mixed $data |
||
107 | * @return string |
||
108 | * @access protected |
||
109 | */ |
||
110 | protected function getString($data)/*# : string */ |
||
125 | |||
126 | /** |
||
127 | * Get string representation of an object |
||
128 | * |
||
129 | * @param object $object |
||
130 | * @return string |
||
131 | * @access protected |
||
132 | */ |
||
133 | protected function getObjectString($object)/*# : string */ |
||
148 | |||
149 | /** |
||
150 | * Get 'user.name' type of result, only support 2 level |
||
151 | * |
||
152 | * @param string $name |
||
153 | * @param string $placeholder used only if nothing matched |
||
154 | * @param mixed $data |
||
155 | * @return string |
||
156 | * @access protected |
||
157 | */ |
||
158 | protected function getSubPart( |
||
175 | } |
||
176 |
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.