laravel/framework

View on GitHub

Showing 927 of 927 total issues

File Builder.php has 1689 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

namespace Illuminate\Database\Query;

use BackedEnum;
Severity: Major
Found in src/Illuminate/Database/Query/Builder.php - About 4 days to fix

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

    class Builder implements BuilderContract
    {
        use BuildsQueries, Dumpable, ExplainsQueries, ForwardsCalls, Macroable {
            __call as macroCall;
        }
    Severity: Major
    Found in src/Illuminate/Database/Query/Builder.php - About 4 days to fix

      File HasAttributes.php has 1160 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      
      namespace Illuminate\Database\Eloquent\Concerns;
      
      use BackedEnum;
      Severity: Major
      Found in src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php - About 2 days to fix

        File ValidatesAttributes.php has 1140 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        
        namespace Illuminate\Validation\Concerns;
        
        use Brick\Math\BigDecimal;
        Severity: Major
        Found in src/Illuminate/Validation/Concerns/ValidatesAttributes.php - About 2 days to fix

          Model has 146 functions (exceeds 20 allowed). Consider refactoring.
          Open

          abstract class Model implements Arrayable, ArrayAccess, CanBeEscapedWhenCastToString, HasBroadcastChannel, Jsonable, JsonSerializable, QueueableEntity, Stringable, UrlRoutable
          {
              use Concerns\HasAttributes,
                  Concerns\HasEvents,
                  Concerns\HasGlobalScopes,
          Severity: Major
          Found in src/Illuminate/Database/Eloquent/Model.php - About 2 days to fix

            Blueprint has 132 functions (exceeds 20 allowed). Consider refactoring.
            Open

            class Blueprint
            {
                use Macroable;
            
                /**
            Severity: Major
            Found in src/Illuminate/Database/Schema/Blueprint.php - About 2 days to fix

              File Model.php has 1000 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              <?php
              
              namespace Illuminate\Database\Eloquent;
              
              use ArrayAccess;
              Severity: Major
              Found in src/Illuminate/Database/Eloquent/Model.php - About 2 days to fix

                File Builder.php has 964 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                <?php
                
                namespace Illuminate\Database\Eloquent;
                
                use BadMethodCallException;
                Severity: Major
                Found in src/Illuminate/Database/Eloquent/Builder.php - About 2 days to fix

                  File TestResponse.php has 934 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  <?php
                  
                  namespace Illuminate\Testing;
                  
                  use ArrayAccess;
                  Severity: Major
                  Found in src/Illuminate/Testing/TestResponse.php - About 2 days to fix

                    Stringable has 118 functions (exceeds 20 allowed). Consider refactoring.
                    Open

                    class Stringable implements JsonSerializable, ArrayAccess, BaseStringable
                    {
                        use Conditionable, Dumpable, Macroable, Tappable;
                    
                        /**
                    Severity: Major
                    Found in src/Illuminate/Support/Stringable.php - About 2 days to fix

                      File Mailable.php has 873 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      <?php
                      
                      namespace Illuminate\Mail;
                      
                      use Illuminate\Config\Repository as ConfigRepository;
                      Severity: Major
                      Found in src/Illuminate/Mail/Mailable.php - About 2 days to fix

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

                        <?php
                        
                        namespace Illuminate\Support;
                        
                        use ArrayIterator;
                        Severity: Major
                        Found in src/Illuminate/Collections/LazyCollection.php - About 2 days to fix

                          Collection has 106 functions (exceeds 20 allowed). Consider refactoring.
                          Open

                          class Collection implements ArrayAccess, CanBeEscapedWhenCastToString, Enumerable
                          {
                              /**
                               * @use \Illuminate\Support\Traits\EnumeratesValues<TKey, TValue>
                               */
                          Severity: Major
                          Found in src/Illuminate/Collections/Collection.php - About 2 days to fix

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

                            class Builder implements BuilderContract
                            {
                                use BuildsQueries, ForwardsCalls, QueriesRelationships {
                                    BuildsQueries::sole as baseSole;
                                }
                            Severity: Major
                            Found in src/Illuminate/Database/Eloquent/Builder.php - About 1 day to fix

                              File Collection.php has 820 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

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

                                Connection has 100 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

                                  File Str.php has 796 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

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

                                    LazyCollection has 96 functions (exceeds 20 allowed). Consider refactoring.
                                    Open

                                    class LazyCollection implements CanBeEscapedWhenCastToString, Enumerable
                                    {
                                        /**
                                         * @use \Illuminate\Support\Traits\EnumeratesValues<TKey, TValue>
                                         */
                                    Severity: Major
                                    Found in src/Illuminate/Collections/LazyCollection.php - About 1 day to fix

                                      File Collection.php has 774 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      <?php
                                      
                                      namespace Illuminate\Support;
                                      
                                      use ArrayAccess;
                                      Severity: Major
                                      Found in src/Illuminate/Collections/Collection.php - About 1 day to fix

                                        Application has 94 functions (exceeds 20 allowed). Consider refactoring.
                                        Open

                                        class Application extends Container implements ApplicationContract, CachesConfiguration, CachesRoutes, HttpKernelInterface
                                        {
                                            use Macroable;
                                        
                                            /**
                                        Severity: Major
                                        Found in src/Illuminate/Foundation/Application.php - About 1 day to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language