eveseat/eveapi

View on GitHub

Showing 103 of 440 total issues

Method handle has 46 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/Journals.php - About 1 hr to fix

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

        public function handle()
        {
            parent::handle();
    
            // get last known mail ID to detect when parity has been reached
    Severity: Minor
    Found in src/Jobs/Mail/Mails.php - About 1 hr to fix

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

          public function handle()
          {
      
              $contract = ContractDetail::find($this->contract_id);
      
      
      Severity: Minor
      Found in src/Jobs/Contracts/Character/Items.php - About 1 hr to fix

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

            public function handle()
            {
                $contract = ContractDetail::find($this->contract_id);
        
                if ($contract->type == 'courier')
        Severity: Minor
        Found in src/Jobs/Contracts/Corporation/Items.php - About 1 hr to fix

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

              public function handle(EsiBase $job, Closure $next): void
              {
                  // in case the job does not require specific scopes - forward
                  if ($job->getScope() == '') {
                      logger()->debug(
          Severity: Minor
          Found in src/Jobs/Middleware/CheckTokenScope.php - About 1 hr to fix

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

                public function handle()
                {
                    $contract = ContractDetail::find($this->contract_id);
            
                    // this job can only work with auction contracts
            Severity: Minor
            Found in src/Jobs/Contracts/Corporation/Bids.php - About 1 hr to fix

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

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

                Method explodeMap has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    private function explodeMap()
                    {
                        // extract regions
                        DB::table('regions')->truncate();
                        DB::table('regions')
                Severity: Minor
                Found in src/Commands/Eve/Update/Sde.php - About 1 hr to fix

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

                      public function handle()
                      {
                          // the time only needs to be loaded once instead of every time in the loop
                          $now = carbon();
                  
                  
                  Severity: Minor
                  Found in src/Jobs/Market/OrderAggregates.php - About 1 hr to fix

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

                        public function handle()
                        {
                            // collect optional kills ID from arguments
                            $killmail_ids = $this->argument('killmail_ids') ?: [];
                    
                    
                    Severity: Minor
                    Found in src/Commands/Esi/Update/Killmails.php - About 1 hr to fix

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

                          public function handle()
                          {
                      
                              $contract = ContractDetail::find($this->contract_id);
                      
                      
                      Severity: Minor
                      Found in src/Jobs/Contracts/Character/Bids.php - About 1 hr to fix

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

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

                          Method fire has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function fire(): void
                              {
                                  $this->addPublicJobs();
                          
                                  if (! is_null($this->token))
                          Severity: Minor
                          Found in src/Bus/Character.php - About 1 hr to fix

                            Method fire has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function fire(): void
                                {
                                    $this->addPublicJobs();
                            
                                    if (! is_null($this->token))
                            Severity: Minor
                            Found in src/Bus/Corporation.php - About 1 hr to fix

                              Method fire has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function fire(): void
                                  {
                                      $this->addPublicJobs();
                              
                                      if (! is_null($this->token))
                              Severity: Minor
                              Found in src/Bus/Alliance.php - About 1 hr to fix

                                Method customValidationMessages has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function customValidationMessages()
                                    {
                                        return [
                                            '0.integer' => self::INTEGER_VALIDATION_MESSAGE,
                                            '0.min' => self::MIN_VALIDATION_MESSAGE,
                                Severity: Minor
                                Found in src/Mapping/Sde/InvTypeMapping.php - About 1 hr to fix

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

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

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

                                        public function handle()
                                        {
                                    
                                            $this->existing_entity_ids = UniverseName::select('entity_id')
                                                ->distinct()
                                    Severity: Minor
                                    Found in src/Jobs/Universe/Names.php - About 1 hr to fix

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

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

                                        Method customValidationMessages has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function customValidationMessages()
                                            {
                                                return [
                                                    '0.integer' => self::INTEGER_VALIDATION_MESSAGE,
                                                    '0.between' => self::BETWEEN_VALIDATION_MESSAGE,
                                        Severity: Minor
                                        Found in src/Mapping/Sde/MapDenormalizeMapping.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language