| Total Complexity | 6 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class CardHelper |
||
| 8 | { |
||
| 9 | public static function extractValue(string $extraData): int |
||
| 10 | { |
||
| 11 | if (strtoupper($extraData{0}) !== 'V') { |
||
| 12 | return 0; |
||
| 13 | } |
||
| 14 | return (int) substr($extraData, 1, 3); |
||
| 15 | } |
||
| 16 | |||
| 17 | public static function extractEstimatedTime(string $cardTitle): int |
||
|
|
|||
| 18 | { |
||
| 19 | return 0; |
||
| 20 | } |
||
| 21 | |||
| 22 | public static function extractSpentTime(string $cardTitle): int |
||
| 23 | { |
||
| 24 | return 0; |
||
| 25 | } |
||
| 26 | |||
| 27 | public static function isInCurrentSprint(string $status): bool |
||
| 28 | { |
||
| 29 | return in_array($status, [ |
||
| 30 | CardInterface::STATUS_TODO, |
||
| 31 | CardInterface::STATUS_IN_PROGRESS, |
||
| 32 | CardInterface::STATUS_REVIEW, |
||
| 33 | CardInterface::STATUS_TO_RELEASE |
||
| 34 | ]); |
||
| 35 | } |
||
| 36 | |||
| 37 | public static function slugify($name) |
||
| 40 | } |
||
| 41 | } |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.