| Conditions | 7 |
| Paths | 13 |
| Total Lines | 34 |
| Code Lines | 20 |
| Lines | 3 |
| Ratio | 8.82 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | public function render($o) |
||
| 6 | { |
||
| 7 | $children = $this->renderer->renderChildren($o); |
||
| 8 | |||
| 9 | if (!($o instanceof Kint_Object_TraceFrame)) { |
||
| 10 | $header = $this->renderer->renderHeader($o); |
||
| 11 | } else { |
||
| 12 | if (!empty($o->trace['file']) && !empty($o->trace['line'])) { |
||
| 13 | $header = '<var>'.$this->renderer->escape(Kint::shortenPath($o->trace['file'])).':'.(int) $o->trace['line'].'</var> '; |
||
| 14 | } else { |
||
| 15 | $header = '<var>PHP internal call</var> '; |
||
| 16 | } |
||
| 17 | |||
| 18 | if ($o->trace['class']) { |
||
| 19 | $header .= $this->renderer->escape($o->trace['class'].$o->trace['type']); |
||
| 20 | } |
||
| 21 | |||
| 22 | if (is_string($o->trace['function'])) { |
||
| 23 | $function = $this->renderer->escape($o->trace['function'].'()'); |
||
| 24 | } else { |
||
| 25 | $function = $this->renderer->escape($o->trace['function']->getName().'('.$o->trace['function']->getParams().')'); |
||
| 26 | |||
| 27 | View Code Duplication | if (($url = $o->trace['function']->getPhpDocUrl()) !== null) { |
|
| 28 | $function = '<a href="'.$url.'" target=_blank>'.$function.'</a>'; |
||
| 29 | } |
||
| 30 | } |
||
| 31 | |||
| 32 | $header .= '<dfn>'.$function.'</dfn>'; |
||
| 33 | } |
||
| 34 | |||
| 35 | $header = $this->renderer->renderHeaderWrapper($o, (bool) strlen($children), $header); |
||
| 36 | |||
| 37 | return '<dl>'.$header.$children.'</dl>'; |
||
| 38 | } |
||
| 39 | } |
||
| 40 |
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.