| 1 | <?php |
||
| 13 | class FileAwareException extends \RuntimeException |
||
| 14 | { |
||
| 15 | private $lineNumber; |
||
| 16 | private $filePath; |
||
| 17 | |||
| 18 | 11 | public function __construct($message = '', $code = 0, \Exception $previous = null, $path = '', $line = -1) |
|
| 25 | |||
| 26 | public function getLineNumber() |
||
| 30 | |||
| 31 | public function getPath() |
||
| 35 | |||
| 36 | 1 | public static function castException(\Exception $e, $filePath) |
|
| 50 | } |
||
| 51 |
Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.