laravel/framework

View on GitHub

Showing 829 of 1,026 total issues

File Worker.php has 401 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

namespace Illuminate\Queue;

use Illuminate\Contracts\Cache\Repository as CacheContract;
Severity: Minor
Found in src/Illuminate/Queue/Worker.php - About 5 hrs to fix

    Builder has 41 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

      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

          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 375 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 37 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 4 hrs to fix

                PostgresGrammar has 37 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 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 HasRelationships.php has 368 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 UrlGenerator.php has 364 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 4 hrs to fix

                        Relation has 36 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

                          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

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

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

                              File PostgresGrammar.php has 359 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

                                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

                                  File MessageSelector.php has 354 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  <?php
                                  
                                  namespace Illuminate\Translation;
                                  
                                  class MessageSelector
                                  Severity: Minor
                                  Found in src/Illuminate/Translation/MessageSelector.php - About 4 hrs to fix

                                    File Request.php has 348 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

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

                                      SqlServerGrammar has 34 functions (exceeds 20 allowed). Consider refactoring.
                                      Open

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

                                        QueueFake has 34 functions (exceeds 20 allowed). Consider refactoring.
                                        Open

                                        class QueueFake extends QueueManager implements Fake, Queue
                                        {
                                            use ReflectsClosures;
                                        
                                            /**
                                        Severity: Minor
                                        Found in src/Illuminate/Support/Testing/Fakes/QueueFake.php - About 4 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language