Showing 864 of 1,073 total issues
SqlServerGrammar
has 35 functions (exceeds 20 allowed). Consider refactoring. Open
class SqlServerGrammar extends Grammar
{
/**
* All of the available clause operators.
*
File MessageSelector.php
has 354 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace Illuminate\Translation;
class MessageSelector
File Request.php
has 353 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace Illuminate\Http;
use ArrayAccess;
Response
has 34 functions (exceeds 20 allowed). Consider refactoring. Open
class Response implements ArrayAccess, Stringable
{
use Concerns\DeterminesStatusCode, Macroable {
__call as macroCall;
}
QueueFake
has 34 functions (exceeds 20 allowed). Consider refactoring. Open
class QueueFake extends QueueManager implements Fake, Queue
{
use ReflectsClosures;
/**
File Filesystem.php
has 347 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace Illuminate\Filesystem;
use ErrorException;
View
has 33 functions (exceeds 20 allowed). Consider refactoring. Open
class View implements ArrayAccess, Htmlable, Stringable, ViewContract
{
use Macroable {
__call as macroCall;
}
BroadcastManager
has 33 functions (exceeds 20 allowed). Consider refactoring. Open
class BroadcastManager implements FactoryContract
{
/**
* The application instance.
*
Mailer
has 33 functions (exceeds 20 allowed). Consider refactoring. Open
class Mailer implements MailerContract, MailQueueContract
{
use Macroable;
/**
PhpRedisConnection
has 33 functions (exceeds 20 allowed). Consider refactoring. Open
class PhpRedisConnection extends Connection implements ConnectionContract
{
use PacksPhpRedisValues;
/**
ServiceProvider
has 33 functions (exceeds 20 allowed). Consider refactoring. Open
abstract class ServiceProvider
{
/**
* The application instance.
*
MailFake
has 33 functions (exceeds 20 allowed). Consider refactoring. Open
class MailFake implements Factory, Fake, Mailer, MailQueue
{
use ForwardsCalls, ReflectsClosures;
/**
File Middleware.php
has 340 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace Illuminate\Foundation\Configuration;
use Closure;
File InteractsWithPivotTable.php
has 338 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace Illuminate\Database\Eloquent\Relations\Concerns;
use BackedEnum;
Function update
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
public function update(Fluent $command)
{
switch ($command->name) {
case 'alter':
// Already handled...
- 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 28 (exceeds 5 allowed). Consider refactoring. 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
File Store.php
has 335 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace Illuminate\Session;
use Closure;
File ShowModelCommand.php
has 332 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace Illuminate\Database\Console;
use BackedEnum;
File Migrator.php
has 331 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace Illuminate\Database\Migrations;
use Illuminate\Console\View\Components\BulletList;
Function data_get
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. 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"