| Conditions | 3 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | package com.github.netkorp.telegram.framework.commands.interfaces; |
||
| 13 | default String descriptionKey() { |
||
| 14 | String className = this.getClass().getSimpleName().toLowerCase(); |
||
| 15 | if (!"command".equals(className) && className.endsWith("command")) { |
||
| 16 | className = className.substring(0, className.length() - 7); |
||
| 17 | } |
||
| 18 | |||
| 19 | return "commands.description." + className; |
||
| 20 | } |
||
| 22 |