Showing 127 of 127 total issues
Method __invoke
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __invoke(
ContainerInterface $container,
$requestedName,
array | null $options = null,
): SyslogUdpHandler {
Method __invoke
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __invoke(
ContainerInterface $container,
$requestedName,
array | null $options = null,
): SendGridHandler {
Method __invoke
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __invoke(
ContainerInterface $container,
$requestedName,
array | null $options = null,
): LogglyFormatter {
Method __invoke
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __invoke(ContainerInterface $container, $requestedName, array | null $options = null): SqsHandler
{
if (!is_array($options)) {
throw new ServiceNotCreatedException('Options must be an Array');
}
Method __invoke
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __invoke(ContainerInterface $container, $requestedName, array | null $options = null): Logger
{
try {
$config = $container->get('config');
} catch (ContainerExceptionInterface $e) {
Method __invoke
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __invoke(
ContainerInterface $container,
$requestedName,
array | null $options = null,
): DoctrineCouchDBHandler {
Method __invoke
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __invoke(
ContainerInterface $container,
$requestedName,
array | null $options = null,
): LogstashFormatter {
Method __invoke
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __invoke(
ContainerInterface $container,
$requestedName,
array | null $options = null,
): LogmaticHandler {
Method __invoke
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __invoke(
ContainerInterface $container,
$requestedName,
array | null $options = null,
): DeduplicationHandler {
Method getMonologFormatterConfig
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getMonologFormatterConfig(): array
{
return [
'aliases' => [
'chromePHP' => ChromePHPFormatter::class,
Method addHandlers
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function addHandlers(ContainerInterface $container, array $options, Logger $monolog): void
{
try {
$monologHandlerPluginManager = $container->get(MonologHandlerPluginManager::class);
assert(
Method __invoke
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __invoke(
ContainerInterface $container,
$requestedName,
array | null $options = null,
): InsightOpsHandler {
Method __invoke
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __invoke(ContainerInterface $container, $requestedName, array | null $options = null): GelfHandler
{
if (!is_array($options)) {
throw new ServiceNotCreatedException('Options must be an Array');
}
Method __invoke
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __invoke(
ContainerInterface $container,
$requestedName,
array | null $options = null,
): LogEntriesHandler {
Method __invoke
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __invoke(ContainerInterface $container, $requestedName, array | null $options = null): V7Client
{
if (!is_array($options)) {
throw new ServiceNotCreatedException('Options must be an Array');
}
Method __invoke
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __invoke(ContainerInterface $container, $requestedName, array | null $options = null): PsrHandler
{
if (!is_array($options)) {
throw new ServiceNotCreatedException('Options must be an Array');
}
Method __invoke
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __invoke(
ContainerInterface $container,
$requestedName,
array | null $options = null,
): ElasticaFormatter {
Method __invoke
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __invoke(
ContainerInterface $container,
$requestedName,
array | null $options = null,
): ElasticsearchFormatter {
Function __invoke
has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring. Open
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
Open
public function __invoke(
ContainerInterface $container,
$requestedName,
array | null $options = null,
): DynamoDbHandler {
- 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"