| Conditions | 4 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | public function __construct($throw) |
||
| 9 | { |
||
| 10 | if (!$throw instanceof Exception && (!KINT_PHP70 || !$throw instanceof Throwable)) { |
||
| 11 | throw new InvalidArgumentException('Kint_Object_Throwable must be constructed with an Exception or a Throwable'); |
||
| 12 | } |
||
| 13 | |||
| 14 | $this->message = $throw->getMessage(); |
||
| 15 | } |
||
| 16 | |||
| 24 |
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.