| Total Complexity | 7 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class CardHelper |
||
| 8 | { |
||
| 9 | public static function extractValue(string $extraData): int |
||
| 15 | } |
||
| 16 | |||
| 17 | public static function extractEstimatedTime(string $cardTitle): int |
||
|
|
|||
| 18 | { |
||
| 19 | return 0; |
||
| 20 | } |
||
| 21 | |||
| 22 | public static function extractSpentTime(string $cardTitle): int |
||
| 25 | } |
||
| 26 | |||
| 27 | public static function extractCreationDate(array $card): \DateTime |
||
| 28 | { |
||
| 29 | return (new \DateTime())->setTimestamp(hexdec(substr($card['id'], 0, 8))); |
||
| 30 | } |
||
| 31 | |||
| 32 | public static function isInCurrentSprint(string $status): bool |
||
| 33 | { |
||
| 34 | return in_array($status, [ |
||
| 35 | CardInterface::STATUS_TODO, |
||
| 36 | CardInterface::STATUS_IN_PROGRESS, |
||
| 37 | CardInterface::STATUS_REVIEW, |
||
| 38 | CardInterface::STATUS_TO_RELEASE |
||
| 39 | ]); |
||
| 40 | } |
||
| 41 | |||
| 42 | public static function slugify($name) |
||
| 45 | } |
||
| 46 | } |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.