| 1 | <?php |
||
| 3 | class Kint_Object_Representation_Source extends Kint_Object_Representation |
||
|
|
|||
| 4 | { |
||
| 5 | public $name = 'source'; |
||
| 6 | public $label = 'Source'; |
||
| 7 | public $hints = array('source'); |
||
| 8 | public $source = array(); |
||
| 9 | public $filename = null; |
||
| 10 | public $line = 0; |
||
| 11 | |||
| 12 | public function __construct($filename, $line, $padding = 7) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Gets section of source code. |
||
| 27 | * |
||
| 28 | * @param string $filename Full path to file |
||
| 29 | * @param int $start_line The first line to display (1 based) |
||
| 30 | * @param int|null $length Amount of lines to show |
||
| 31 | * |
||
| 32 | * @return bool|array |
||
| 33 | */ |
||
| 34 | public static function getSource($filename, $start_line = 1, $length = null) |
||
| 45 | } |
||
| 46 |
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.