src/Component/ExceptionArrayTransformer.php
Avoid unused private methods such as 'transformFnDefault'. Open
Open
private function transformFnDefault(\Throwable $exception): array
{
return [
'code' => $exception->getCode(),
'message' => $exception->getMessage(),
- Read upRead up
- Exclude checks
UnusedPrivateMethod
Since: 0.2
Unused Private Method detects when a private method is declared but is unused.
Example
class Something
{
private function foo() {} // unused
}
Source https://phpmd.org/rules/unusedcode.html#unusedprivatemethod
Avoid unused private methods such as 'transformFnVerboseWithTrace'. Open
Open
private function transformFnVerboseWithTrace(\Throwable $exception): array
{
return [
'class' => $exception::class,
'code' => $exception->getCode(),
- Read upRead up
- Exclude checks
UnusedPrivateMethod
Since: 0.2
Unused Private Method detects when a private method is declared but is unused.
Example
class Something
{
private function foo() {} // unused
}
Source https://phpmd.org/rules/unusedcode.html#unusedprivatemethod
Avoid unused private methods such as 'transformFnVerbose'. Open
Open
private function transformFnVerbose(\Throwable $exception): array
{
return [
'class' => $exception::class,
'code' => $exception->getCode(),
- Read upRead up
- Exclude checks
UnusedPrivateMethod
Since: 0.2
Unused Private Method detects when a private method is declared but is unused.
Example
class Something
{
private function foo() {} // unused
}
Source https://phpmd.org/rules/unusedcode.html#unusedprivatemethod
Space before opening parenthesis of function call prohibited Open
Open
return array_map(fn ($arg): string => get_debug_type($arg), $args);
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
return match ($verbosity) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
Open
default => $this->transformWithFn($exception, [$this, 'transformFnDefault']),
- Exclude checks