| Conditions | 4 |
| Paths | 5 |
| Total Lines | 25 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | public function render($o) |
||
| 6 | { |
||
| 7 | $children = $this->renderer->renderChildren($o); |
||
| 8 | |||
| 9 | if (!($o instanceof Kint_Object_Closure)) { |
||
| 10 | $header = $this->renderer->renderHeader($o); |
||
| 11 | } else { |
||
| 12 | $header = ''; |
||
| 13 | |||
| 14 | if (($s = $o->getModifiers()) !== null) { |
||
| 15 | $header .= '<var>'.$s.'</var> '; |
||
| 16 | } |
||
| 17 | |||
| 18 | if (($s = $o->getName()) !== null) { |
||
| 19 | $header .= '<dfn>'.$this->renderer->escape($s).'('.$this->renderer->escape($o->getParams()).')</dfn> '; |
||
| 20 | } |
||
| 21 | |||
| 22 | $header .= '<var>Closure</var> '; |
||
| 23 | $header .= $this->renderer->escape(Kint::shortenPath($o->filename)).':'.(int) $o->startline; |
||
| 24 | } |
||
| 25 | |||
| 26 | $header = $this->renderer->renderHeaderWrapper($o, (bool) strlen($children), $header); |
||
| 27 | |||
| 28 | return '<dl>'.$header.$children.'</dl>'; |
||
| 29 | } |
||
| 30 | } |
||
| 31 |
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.