Showing 1,012 of 1,012 total issues
File BladeCompiler.php
has 493 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace Illuminate\View\Compilers;
use Illuminate\Container\Container;
File ComponentTagCompiler.php
has 487 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace Illuminate\View\Compilers;
use Illuminate\Container\Container;
File helpers.php
has 485 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
use Illuminate\Container\Container;
use Illuminate\Contracts\Auth\Access\Gate;
use Illuminate\Contracts\Auth\Factory as AuthFactory;
FilesystemAdapter
has 53 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class FilesystemAdapter implements CloudFilesystemContract
{
use Conditionable;
use Macroable {
__call as macroCall;
File SqlServerGrammar.php
has 477 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace Illuminate\Database\Schema\Grammars;
use Illuminate\Database\Connection;
File FilesystemAdapter.php
has 476 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace Illuminate\Filesystem;
use Closure;
File Arr.php
has 472 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace Illuminate\Support;
use ArgumentCountError;
Factory
has 50 functions (exceeds 20 allowed). Consider refactoring. Open
Open
abstract class Factory
{
use Conditionable, ForwardsCalls, Macroable {
__call as macroCall;
}
HasManyThrough
has 50 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class HasManyThrough extends Relation
{
use InteractsWithDictionary;
/**
Function data_set
has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring. Open
Open
function data_set(&$target, $key, $value, $overwrite = true)
{
$segments = is_array($key) ? $key : explode('.', $key);
if (($segment = array_shift($segments)) === '*') {
- 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 Factory.php
has 446 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace Illuminate\Database\Eloquent\Factories;
use Closure;
BladeCompiler
has 48 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class BladeCompiler extends Compiler implements CompilerInterface
{
use Concerns\CompilesAuthorizations,
Concerns\CompilesClasses,
Concerns\CompilesComments,
Handler
has 48 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Handler implements ExceptionHandlerContract
{
use ReflectsClosures;
/**
UrlGenerator
has 47 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class UrlGenerator implements UrlGeneratorContract
{
use InteractsWithTime, Macroable;
/**
Filesystem
has 46 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Filesystem
{
use Conditionable, Macroable;
/**
BusFake
has 46 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class BusFake implements Fake, QueueingDispatcher
{
use ReflectsClosures;
/**
File Event.php
has 425 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace Illuminate\Console\Scheduling;
use Closure;
LogManager
has 45 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class LogManager implements LoggerInterface
{
use ParsesLogConfiguration;
/**
Arr
has 44 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Arr
{
use Macroable;
/**
File BusFake.php
has 414 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace Illuminate\Support\Testing\Fakes;
use Closure;