laravel/framework

View on GitHub

Showing 821 of 1,012 total issues

File Builder.php has 1778 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 220 functions (exceeds 20 allowed). Consider refactoring.
    Open

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

      File ValidatesAttributes.php has 1197 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 3 days to fix

        File HasAttributes.php has 1179 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 3 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

            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

              Blueprint has 126 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 Builder.php has 966 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

                  Stringable has 123 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 TestResponse.php has 944 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

                      File LazyCollection.php has 884 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

                        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 Str.php has 864 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 2 days to fix

                            Collection has 107 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 821 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

                                  File Collection.php has 806 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 100 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

                                      LazyCollection has 97 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

                                        Connection has 96 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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language