| 1 | <?php |
||
| 15 | class FileAwareException extends \RuntimeException |
||
| 16 | { |
||
| 17 | private $lineNumber; |
||
| 18 | private $filePath; |
||
| 19 | |||
| 20 | 11 | public function __construct($message = "", $code = 0, \Exception $previous = null, $path = "", $line = -1) |
|
| 27 | |||
| 28 | public function getLineNumber () |
||
| 32 | |||
| 33 | public function getPath () |
||
| 37 | |||
| 38 | 1 | public static function castException (\Exception $e, $filePath) |
|
| 52 | } |
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.