laravel/framework

View on GitHub

Showing 864 of 1,073 total issues

Builder has 42 functions (exceeds 20 allowed). Consider refactoring.
Open

class Builder
{
    use Macroable;

    /**
Severity: Minor
Found in src/Illuminate/Database/Schema/Builder.php - About 5 hrs to fix

    Method test has 135 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function test(
        Builder $query,
        Post $post,
        ChildPost $childPost,
        Comment $comment,
    Severity: Major
    Found in types/Database/Eloquent/Builder.php - About 5 hrs to fix

      File Dispatcher.php has 389 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      
      namespace Illuminate\Events;
      
      use Closure;
      Severity: Minor
      Found in src/Illuminate/Events/Dispatcher.php - About 5 hrs to fix

        Worker has 40 functions (exceeds 20 allowed). Consider refactoring.
        Open

        class Worker
        {
            use DetectsLostConnections;
        
            const EXIT_SUCCESS = 0;
        Severity: Minor
        Found in src/Illuminate/Queue/Worker.php - About 5 hrs to fix

          File UrlGenerator.php has 384 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          
          namespace Illuminate\Routing;
          
          use BackedEnum;
          Severity: Minor
          Found in src/Illuminate/Routing/UrlGenerator.php - About 5 hrs to fix

            PostgresGrammar has 39 functions (exceeds 20 allowed). Consider refactoring.
            Open

            class PostgresGrammar extends Grammar
            {
                /**
                 * All of the available clause operators.
                 *
            Severity: Minor
            Found in src/Illuminate/Database/Query/Grammars/PostgresGrammar.php - About 5 hrs to fix

              Dispatcher has 39 functions (exceeds 20 allowed). Consider refactoring.
              Open

              class Dispatcher implements DispatcherContract
              {
                  use Macroable, ReflectsClosures;
              
                  /**
              Severity: Minor
              Found in src/Illuminate/Events/Dispatcher.php - About 5 hrs to fix

                File LogManager.php has 380 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                <?php
                
                namespace Illuminate\Log;
                
                use Closure;
                Severity: Minor
                Found in src/Illuminate/Log/LogManager.php - About 5 hrs to fix

                  Factory has 38 functions (exceeds 20 allowed). Consider refactoring.
                  Open

                  class Factory implements FactoryContract
                  {
                      use Macroable,
                          Concerns\ManagesComponents,
                          Concerns\ManagesEvents,
                  Severity: Minor
                  Found in src/Illuminate/View/Factory.php - About 5 hrs to fix

                    ValidatedInput has 38 functions (exceeds 20 allowed). Consider refactoring.
                    Open

                    class ValidatedInput implements ValidatedData
                    {
                        /**
                         * The underlying input.
                         *
                    Severity: Minor
                    Found in src/Illuminate/Support/ValidatedInput.php - About 5 hrs to fix

                      File HasRelationships.php has 370 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      <?php
                      
                      namespace Illuminate\Database\Eloquent\Concerns;
                      
                      use Closure;
                      Severity: Minor
                      Found in src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php - About 4 hrs to fix

                        File PostgresGrammar.php has 369 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        <?php
                        
                        namespace Illuminate\Database\Query\Grammars;
                        
                        use Illuminate\Database\Query\Builder;
                        Severity: Minor
                        Found in src/Illuminate/Database/Query/Grammars/PostgresGrammar.php - About 4 hrs to fix

                          HasOneOrMany has 37 functions (exceeds 20 allowed). Consider refactoring.
                          Open

                          abstract class HasOneOrMany extends Relation
                          {
                              use InteractsWithDictionary, SupportsInverseRelations;
                          
                              /**
                          Severity: Minor
                          Found in src/Illuminate/Database/Eloquent/Relations/HasOneOrMany.php - About 4 hrs to fix

                            Relation has 37 functions (exceeds 20 allowed). Consider refactoring.
                            Open

                            abstract class Relation implements BuilderContract
                            {
                                use ForwardsCalls, Macroable {
                                    Macroable::__call as macroCall;
                                }
                            Severity: Minor
                            Found in src/Illuminate/Database/Eloquent/Relations/Relation.php - About 4 hrs to fix

                              Middleware has 37 functions (exceeds 20 allowed). Consider refactoring.
                              Open

                              class Middleware
                              {
                                  /**
                                   * The user defined global middleware stack.
                                   *
                              Severity: Minor
                              Found in src/Illuminate/Foundation/Configuration/Middleware.php - About 4 hrs to fix

                                File Repository.php has 366 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                <?php
                                
                                namespace Illuminate\Cache;
                                
                                use ArrayAccess;
                                Severity: Minor
                                Found in src/Illuminate/Cache/Repository.php - About 4 hrs to fix

                                  File HasOneOrManyThrough.php has 365 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  <?php
                                  
                                  namespace Illuminate\Database\Eloquent\Relations;
                                  
                                  use Closure;
                                  Severity: Minor
                                  Found in src/Illuminate/Database/Eloquent/Relations/HasOneOrManyThrough.php - About 4 hrs to fix

                                    Migrator has 36 functions (exceeds 20 allowed). Consider refactoring.
                                    Open

                                    class Migrator
                                    {
                                        /**
                                         * The event dispatcher instance.
                                         *
                                    Severity: Minor
                                    Found in src/Illuminate/Database/Migrations/Migrator.php - About 4 hrs to fix

                                      Kernel has 36 functions (exceeds 20 allowed). Consider refactoring.
                                      Open

                                      class Kernel implements KernelContract
                                      {
                                          use InteractsWithTime;
                                      
                                          /**
                                      Severity: Minor
                                      Found in src/Illuminate/Foundation/Http/Kernel.php - About 4 hrs to fix

                                        ComponentAttributeBag has 35 functions (exceeds 20 allowed). Consider refactoring.
                                        Open

                                        class ComponentAttributeBag implements ArrayAccess, IteratorAggregate, JsonSerializable, Htmlable, Stringable
                                        {
                                            use Conditionable, Macroable;
                                        
                                            /**
                                        Severity: Minor
                                        Found in src/Illuminate/View/ComponentAttributeBag.php - About 4 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language