laravel/framework

View on GitHub

Showing 1,012 of 1,012 total issues

Str has 95 functions (exceeds 20 allowed). Consider refactoring.
Open

class Str
{
    use Macroable;

    /**
Severity: Major
Found in src/Illuminate/Support/Str.php - About 1 day to fix

    Grammar has 93 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 89 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

        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

          File PendingRequest.php has 716 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

            Mailable has 87 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

                File Application.php has 709 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

                  MySqlGrammar has 86 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

                    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 689 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 Blueprint.php has 676 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

                          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 BelongsToMany.php has 654 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

                              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

                                PostgresGrammar has 78 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

                                  File Router.php has 651 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

                                    File Grammar.php has 626 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

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

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

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

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