laravel/framework

View on GitHub

Showing 864 of 1,073 total issues

Connection has 98 functions (exceeds 20 allowed). Consider refactoring.
Open

class Connection implements ConnectionInterface
{
    use DetectsConcurrencyErrors,
        DetectsLostConnections,
        Concerns\ManagesTransactions,
Severity: Major
Found in src/Illuminate/Database/Connection.php - About 1 day to fix

    Grammar has 97 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class Grammar extends BaseGrammar
    {
        use CompilesJsonPaths;
    
        /**
    Severity: Major
    Found in src/Illuminate/Database/Query/Grammars/Grammar.php - About 1 day to fix

      BelongsToMany has 93 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class BelongsToMany extends Relation
      {
          use InteractsWithDictionary, InteractsWithPivotTable;
      
          /**
      Severity: Major
      Found in src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php - About 1 day to fix

        File Blueprint.php has 743 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        
        namespace Illuminate\Database\Schema;
        
        use Closure;
        Severity: Major
        Found in src/Illuminate/Database/Schema/Blueprint.php - About 1 day to fix

          Router has 89 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class Router implements BindingRegistrar, RegistrarContract
          {
              use Macroable {
                  __call as macroCall;
              }
          Severity: Major
          Found in src/Illuminate/Routing/Router.php - About 1 day to fix

            MySqlGrammar has 89 functions (exceeds 20 allowed). Consider refactoring.
            Open

            class MySqlGrammar extends Grammar
            {
                /**
                 * The possible column modifiers.
                 *
            Severity: Major
            Found in src/Illuminate/Database/Schema/Grammars/MySqlGrammar.php - About 1 day to fix

              File PendingRequest.php has 725 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              <?php
              
              namespace Illuminate\Http\Client;
              
              use Closure;
              Severity: Major
              Found in src/Illuminate/Http/Client/PendingRequest.php - About 1 day to fix

                File Application.php has 724 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                <?php
                
                namespace Illuminate\Foundation;
                
                use Closure;
                Severity: Major
                Found in src/Illuminate/Foundation/Application.php - About 1 day to fix

                  Mailable has 88 functions (exceeds 20 allowed). Consider refactoring.
                  Open

                  class Mailable implements MailableContract, Renderable
                  {
                      use Conditionable, ForwardsCalls, Localizable, Macroable {
                          __call as macroCall;
                      }
                  Severity: Major
                  Found in src/Illuminate/Mail/Mailable.php - About 1 day to fix

                    Route has 87 functions (exceeds 20 allowed). Consider refactoring.
                    Open

                    class Route
                    {
                        use CreatesRegularExpressionRouteConstraints, FiltersControllerMiddleware, Macroable, ResolvesRouteDependencies;
                    
                        /**
                    Severity: Major
                    Found in src/Illuminate/Routing/Route.php - About 1 day to fix

                      TestResponse has 85 functions (exceeds 20 allowed). Consider refactoring.
                      Open

                      class TestResponse implements ArrayAccess
                      {
                          use Concerns\AssertsStatusCodes, Conditionable, Dumpable, Tappable, Macroable {
                              __call as macroCall;
                          }
                      Severity: Major
                      Found in src/Illuminate/Testing/TestResponse.php - About 1 day to fix

                        File Connection.php has 700 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        <?php
                        
                        namespace Illuminate\Database;
                        
                        use Carbon\CarbonInterval;
                        Severity: Major
                        Found in src/Illuminate/Database/Connection.php - About 1 day to fix

                          File BelongsToMany.php has 687 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          <?php
                          
                          namespace Illuminate\Database\Eloquent\Relations;
                          
                          use Closure;
                          Severity: Major
                          Found in src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php - About 1 day to fix

                            File LazyCollection.php has 686 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            <?php
                            
                            use Illuminate\Contracts\Support\Arrayable;
                            use Illuminate\Support\Collection;
                            use Illuminate\Support\LazyCollection;
                            Severity: Major
                            Found in types/Support/LazyCollection.php - About 1 day to fix

                              SQLiteGrammar has 82 functions (exceeds 20 allowed). Consider refactoring.
                              Open

                              class SQLiteGrammar extends Grammar
                              {
                                  /**
                                   * The possible column modifiers.
                                   *
                              Severity: Major
                              Found in src/Illuminate/Database/Schema/Grammars/SQLiteGrammar.php - About 1 day to fix

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

                                class PostgresGrammar extends Grammar
                                {
                                    /**
                                     * If this Grammar supports schema changes wrapped in a transaction.
                                     *
                                Severity: Major
                                Found in src/Illuminate/Database/Schema/Grammars/PostgresGrammar.php - About 1 day to fix

                                  Method getPluralIndex has 299 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function getPluralIndex($locale, $number)
                                      {
                                          switch ($locale) {
                                              case 'az':
                                              case 'az_AZ':
                                  Severity: Major
                                  Found in src/Illuminate/Translation/MessageSelector.php - About 1 day to fix

                                    File Router.php has 653 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    <?php
                                    
                                    namespace Illuminate\Routing;
                                    
                                    use ArrayObject;
                                    Severity: Major
                                    Found in src/Illuminate/Routing/Router.php - About 1 day to fix

                                      PendingRequest has 78 functions (exceeds 20 allowed). Consider refactoring.
                                      Open

                                      class PendingRequest
                                      {
                                          use Conditionable, Macroable;
                                      
                                          /**
                                      Severity: Major
                                      Found in src/Illuminate/Http/Client/PendingRequest.php - About 1 day to fix

                                        File Grammar.php has 650 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        <?php
                                        
                                        namespace Illuminate\Database\Query\Grammars;
                                        
                                        use Illuminate\Contracts\Database\Query\Expression;
                                        Severity: Major
                                        Found in src/Illuminate/Database/Query/Grammars/Grammar.php - About 1 day to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language