Showing 127 of 127 total issues
Function __invoke
has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring. Open
public function __invoke(
ContainerInterface $container,
$requestedName,
array | null $options = null,
): SlackWebhookHandler {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function __invoke
has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring. Open
public function __invoke(ContainerInterface $container, $requestedName, array | null $options = null): SqsHandler
{
if (!is_array($options)) {
throw new ServiceNotCreatedException('Options must be an Array');
}
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method __invoke
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __invoke(
ContainerInterface $container,
$requestedName,
array | null $options = null,
): StreamHandler {
Method __invoke
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __invoke(
ContainerInterface $container,
$requestedName,
array | null $options = null,
): FlowdockHandler {
Method __invoke
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __invoke(
ContainerInterface $container,
$requestedName,
array | null $options = null,
): SocketHandler {
Method init
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function init(ModuleManagerInterface $manager): void
{
$event = $manager->getEvent();
$container = $event->getParam('ServiceManager');
Method __invoke
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __invoke(
ContainerInterface $container,
$requestedName,
array | null $options = null,
): OverflowHandler {
Method __invoke
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __invoke(
ContainerInterface $container,
$requestedName,
array | null $options = null,
): FleepHookHandler {
Method __invoke
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __invoke(
ContainerInterface $container,
$requestedName,
array | null $options = null,
): BufferHandler {
Method __invoke
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __invoke(ContainerInterface $container, $requestedName, array | null $options = null): V8Client
{
if (!is_array($options)) {
throw new ServiceNotCreatedException('Options must be an Array');
}
Function __invoke
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
public function __invoke(
ContainerInterface $container,
$requestedName,
array | null $options = null,
): DoctrineCouchDBHandler {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function __invoke
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
public function __invoke(ContainerInterface $container, $requestedName, array | null $options = null): GelfHandler
{
if (!is_array($options)) {
throw new ServiceNotCreatedException('Options must be an Array');
}
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function __invoke
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
public function __invoke(
ContainerInterface $container,
$requestedName,
array | null $options = null,
): NewRelicHandler {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function __invoke
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
public function __invoke(ContainerInterface $container, $requestedName, array | null $options = null): PsrHandler
{
if (!is_array($options)) {
throw new ServiceNotCreatedException('Options must be an Array');
}
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method __invoke
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __invoke(
ContainerInterface $container,
$requestedName,
array | null $options = null,
): WildfireFormatter {
Method __invoke
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __invoke(
ContainerInterface $container,
$requestedName,
array | null $options = null,
): HtmlFormatter {
Method __invoke
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __invoke(
ContainerInterface $container,
$requestedName,
array | null $options = null,
): NormalizerFormatter {
Method __invoke
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __invoke(
ContainerInterface $container,
$requestedName,
array | null $options = null,
): ProcessHandler {
Method __invoke
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __invoke(
ContainerInterface $container,
$requestedName,
array | null $options = null,
): IFTTTHandler {
Method addProcessor
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function addProcessor(
ContainerInterface $container,
HandlerInterface $handler,
array | null $options = null,
): void {