@@ 484-495 (lines=12) @@ | ||
481 | return $string; |
|
482 | } |
|
483 | ||
484 | protected function getPlugin(array $plugins, array $hints) |
|
485 | { |
|
486 | if ($plugins = $this->matchPlugins($plugins, $hints)) { |
|
487 | $plugin = end($plugins); |
|
488 | ||
489 | if (!isset($this->plugin_objs[$plugin])) { |
|
490 | $this->plugin_objs[$plugin] = new $plugin($this); |
|
491 | } |
|
492 | ||
493 | return $this->plugin_objs[$plugin]; |
|
494 | } |
|
495 | } |
|
496 | ||
497 | protected function ideLink($file, $line) |
|
498 | { |
@@ 311-322 (lines=12) @@ | ||
308 | return $this->escape(Kint::shortenPath($file)).':'.$line; |
|
309 | } |
|
310 | ||
311 | protected function getPlugin(array $plugins, array $hints) |
|
312 | { |
|
313 | if ($plugins = $this->matchPlugins($plugins, $hints)) { |
|
314 | $plugin = end($plugins); |
|
315 | ||
316 | if (!isset($this->plugin_objs[$plugin])) { |
|
317 | $this->plugin_objs[$plugin] = new $plugin($this); |
|
318 | } |
|
319 | ||
320 | return $this->plugin_objs[$plugin]; |
|
321 | } |
|
322 | } |
|
323 | ||
324 | public function escape($string, $encoding = false) |
|
325 | { |