eveseat/eveapi

View on GitHub

Showing 103 of 440 total issues

Method handle has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function handle()
    {
        parent::handle();

        while (true) {
Severity: Minor
Found in src/Jobs/Corporation/RoleHistories.php - About 1 hr to fix

    Method addAuthenticatedJobs has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        protected function addAuthenticatedJobs()
        {
            $this->addAuthenticatedJob(new Divisions($this->corporation_id, $this->token));
    
            $this->addAuthenticatedJob(new Roles($this->corporation_id, $this->token));
    Severity: Minor
    Found in src/Bus/Corporation.php - About 1 hr to fix

      Method handle has 34 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function handle()
          {
              parent::handle();
      
              $response = $this->retrieve([
      Severity: Minor
      Found in src/Jobs/Corporation/Roles.php - About 1 hr to fix

        Method handle has 33 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function handle()
            {
                parent::handle();
        
                CorporationWalletBalance::where('corporation_id', $this->getCorporationId())->get()
        Severity: Minor
        Found in src/Jobs/Wallet/Corporation/Transactions.php - About 1 hr to fix

          Method handle has 33 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function handle()
              {
                  parent::handle();
          
                  $response = $this->retrieve([
          Severity: Minor
          Found in src/Jobs/Corporation/Titles.php - About 1 hr to fix

            Method handle has 33 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function handle()
                {
                    parent::handle();
            
                    $start = now();
            Severity: Minor
            Found in src/Jobs/Assets/Corporation/Assets.php - About 1 hr to fix

              Method handle has 33 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function handle()
                  {
              
                      $structure_batch = new StructureBatch();
              
              
              Severity: Minor
              Found in src/Jobs/Contracts/Character/Contracts.php - About 1 hr to fix

                Method handle has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function handle()
                    {
                        $structure_batch = new StructureBatch();
                
                        while (true) {
                Severity: Minor
                Found in src/Jobs/Contracts/Corporation/Contracts.php - About 1 hr to fix

                  Method toEve has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function toEve()
                      {
                          return sprintf('[%s, %s]', $this->ship->typeName, $this->name) . PHP_EOL .
                  
                          $this->low_slots->map(function ($slot) {
                  Severity: Minor
                  Found in src/Models/Fittings/CharacterFitting.php - About 1 hr to fix

                    Method handle has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function handle()
                        {
                            parent::handle();
                    
                            while (true) {
                    Severity: Minor
                    Found in src/Jobs/Industry/Character/Mining.php - About 1 hr to fix

                      Method handle has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function handle()
                          {
                              $threshold = $this->getBucketThreshold();
                              $bucket = Bucket::with('refresh_tokens', 'refresh_tokens.character')
                                  ->withCount('refresh_tokens')
                      Severity: Minor
                      Found in src/Commands/Seat/Buckets/Info.php - About 1 hr to fix

                        Method handle has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function handle()
                            {
                                parent::handle();
                        
                                // retrieve latest known journal entry for the active character.
                        Severity: Minor
                        Found in src/Jobs/Wallet/Character/Journal.php - About 1 hr to fix

                          Method handle has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function handle()
                              {
                                  parent::handle();
                          
                                  $event_ids = CharacterCalendarEvent::where('character_id', $this->getCharacterId())
                          Severity: Minor
                          Found in src/Jobs/Calendar/Detail.php - About 1 hr to fix

                            Method find_nearest_celestial has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function find_nearest_celestial(int $solar_system_id, float $x, float $y, float $z, ?int $group = null): array
                                {
                            
                                    // Querying mapDenormalized with [1] we can see
                                    // the available different group types in the
                            Severity: Minor
                            Found in src/Traits/Utils.php - About 1 hr to fix

                              Method handle has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function handle(): void
                                  {
                                      parent::handle();
                              
                                      $start = now();
                              Severity: Minor
                              Found in src/Jobs/Assets/Character/Assets.php - About 1 hr to fix

                                Method getMoonIndicatorsAttribute has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function getMoonIndicatorsAttribute()
                                    {
                                        if (is_null($this->moon_indicators)) {
                                            $this->moon_indicators = (object) [
                                                'ubiquitous' => $this->moon_content->filter(function ($type) {
                                Severity: Minor
                                Found in src/Models/Sde/MapDenormalize.php - About 1 hr to fix

                                  Method handle has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function handle()
                                      {
                                          parent::handle();
                                  
                                          while (true) {
                                  Severity: Minor
                                  Found in src/Jobs/Market/Corporation/History.php - About 1 hr to fix

                                    Method handle has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function handle()
                                        {
                                            parent::handle();
                                    
                                            $customs_offices = CorporationCustomsOffice::where('corporation_id', $this->getCorporationId())->get();

                                      Method submitJobs has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function submitJobs(?RefreshToken $token = null)
                                          {
                                              // sort by whether it is a citadel or station
                                              [$stations, $citadels] = collect($this->structures)
                                                  ->keys()
                                      Severity: Minor
                                      Found in src/Jobs/Universe/Structures/StructureBatch.php - About 1 hr to fix

                                        Method handle has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function handle()
                                            {
                                                Bus::batch([
                                                    new PricesJob(),
                                                    new DispatchHistoryJobs(),
                                        Severity: Minor
                                        Found in src/Commands/Esi/Update/Prices.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language