for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Scrumban\Utils;
use Scrumban\Model\CardInterface;
class CardHelper
{
public static function extractValue(string $extraData): int
if (strtoupper($extraData{0}) !== 'V') {
return 0;
}
return (int) substr($extraData, 1, 3);
public static function extractEstimatedTime(string $cardTitle): int
$cardTitle
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public static function extractEstimatedTime(/** @scrutinizer ignore-unused */ string $cardTitle): int
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
public static function extractSpentTime(string $cardTitle): int
public static function extractSpentTime(/** @scrutinizer ignore-unused */ string $cardTitle): int
public static function isInCurrentSprint(string $status): bool
return in_array($status, [
CardInterface::STATUS_TODO,
CardInterface::STATUS_IN_PROGRESS,
CardInterface::STATUS_REVIEW,
CardInterface::STATUS_TO_RELEASE
]);
public static function slugify($name)
return str_replace(' ', '_', strtolower($name));
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.