| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | public static function getName(Readable $file, RuleInterface $rule): string |
||
| 46 | { |
||
| 47 | if (($name = static::findName($rule)) !== null) { |
||
| 48 | return $name; |
||
| 49 | } |
||
| 50 | |||
| 51 | $exception = new SyntaxException('Unable to determine type name'); |
||
| 52 | $exception->throwsIn($file, $rule->getOffset()); |
||
| 53 | |||
| 54 | throw $exception; |
||
| 55 | } |
||
| 56 | |||
| 72 |