Showing 838 of 1,045 total issues
QueueFake
has 34 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class QueueFake extends QueueManager implements Fake, Queue
{
use ReflectsClosures;
/**
File Filesystem.php
has 347 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace Illuminate\Filesystem;
use ErrorException;
View
has 33 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class View implements ArrayAccess, Htmlable, Stringable, ViewContract
{
use Macroable {
__call as macroCall;
}
BroadcastManager
has 33 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class BroadcastManager implements FactoryContract
{
/**
* The application instance.
*
Response
has 33 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Response implements ArrayAccess, Stringable
{
use Concerns\DeterminesStatusCode, Macroable {
__call as macroCall;
}
Mailer
has 33 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Mailer implements MailerContract, MailQueueContract
{
use Macroable;
/**
Kernel
has 33 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Kernel implements KernelContract
{
use InteractsWithTime;
/**
PhpRedisConnection
has 33 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class PhpRedisConnection extends Connection implements ConnectionContract
{
use PacksPhpRedisValues;
/**
MailFake
has 33 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class MailFake implements Factory, Fake, Mailer, MailQueue
{
use ForwardsCalls, ReflectsClosures;
/**
File Middleware.php
has 339 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace Illuminate\Foundation\Configuration;
use Closure;
File InteractsWithPivotTable.php
has 338 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace Illuminate\Database\Eloquent\Relations\Concerns;
use BackedEnum;
File Migrator.php
has 334 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace Illuminate\Database\Migrations;
use Illuminate\Console\View\Components\BulletList;
File Store.php
has 331 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace Illuminate\Session;
use Closure;
Function data_get
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
Open
function data_get($target, $key, $default = null)
{
if (is_null($key)) {
return $target;
}
- 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 buildRoutingCallback
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
Open
protected function buildRoutingCallback(array|string|null $web,
array|string|null $api,
?string $pages,
?string $health,
string $apiPrefix,
- 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
MailManager
has 31 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class MailManager implements FactoryContract
{
/**
* The application instance.
*
ResourceRegistrar
has 31 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class ResourceRegistrar
{
/**
* The router instance.
*
Kernel
has 31 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Kernel implements KernelContract
{
use InteractsWithTime;
/**
ServiceProvider
has 31 functions (exceeds 20 allowed). Consider refactoring. Open
Open
abstract class ServiceProvider
{
/**
* The application instance.
*
File ShowModelCommand.php
has 326 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace Illuminate\Database\Console;
use BackedEnum;