warlof/seat-migrator

View on GitHub

Showing 40 of 52 total issues

Avoid too many return statements within this method.
Open

            return 'finished_contractor';
Severity: Major
Found in src/Models/CharacterContract.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                return 'rejected';
    Severity: Major
    Found in src/Models/CharacterContract.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  return 32;
      Severity: Major
      Found in src/Models/CharacterSheet.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                return 'reverted';
        Severity: Major
        Found in src/Models/CharacterIndustryJob.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                  return 'character';
          Severity: Major
          Found in src/Models/CharacterCalendarEventDetail.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                        return 'cancelled';
            Severity: Major
            Found in src/Models/CharacterIndustryJob.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                      return 'reversed';
              Severity: Major
              Found in src/Models/CharacterContract.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                        return 0;
                Severity: Major
                Found in src/Models/CharacterSheet.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                              return 'in_progress';
                  Severity: Major
                  Found in src/Models/CharacterContract.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                            return 'reverted';
                    Severity: Major
                    Found in src/Models/CorporationIndustryJob.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                  return 128;
                      Severity: Major
                      Found in src/Models/CharacterSheet.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                    return 16;
                        Severity: Major
                        Found in src/Models/CharacterSheet.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                      return 64;
                          Severity: Major
                          Found in src/Models/CharacterSheet.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                    return 'other';
                            Severity: Major
                            Found in src/Models/CharacterNotification.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                      return 'neutral';
                              Severity: Major
                              Found in src/Models/CorporationCustomOffice.php - About 30 mins to fix

                                Function handle has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    public function handle()
                                    {
                                        $this->promptSetup();
                                        $this->backups();
                                
                                
                                Severity: Minor
                                Found in src/Commands/Upgrade.php - About 25 mins to fix

                                Cognitive Complexity

                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                A method's cognitive complexity is based on a few simple rules:

                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                • Code is considered more complex for each "break in the linear flow of the code"
                                • Code is considered more complex when "flow breaking structures are nested"

                                Further reading

                                Function getLocationTypeAttribute has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    public function getLocationTypeAttribute()
                                    {
                                        if ((60000000 <= $this->locationID && $this->locationID <= 64000000) ||
                                            (68000000 <= $this->locationID && $this->locationID <= 70000000))
                                            return 'station';
                                Severity: Minor
                                Found in src/Models/CharacterAssetListContent.php - About 25 mins to fix

                                Cognitive Complexity

                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                A method's cognitive complexity is based on a few simple rules:

                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                • Code is considered more complex for each "break in the linear flow of the code"
                                • Code is considered more complex when "flow breaking structures are nested"

                                Further reading

                                Function getLocationTypeAttribute has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    public function getLocationTypeAttribute()
                                    {
                                        if ((60000000 <= $this->locationID && $this->locationID <= 64000000) ||
                                            (68000000 <= $this->locationID && $this->locationID <= 70000000))
                                            return 'station';
                                Severity: Minor
                                Found in src/Models/CharacterAssetList.php - About 25 mins to fix

                                Cognitive Complexity

                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                A method's cognitive complexity is based on a few simple rules:

                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                • Code is considered more complex for each "break in the linear flow of the code"
                                • Code is considered more complex when "flow breaking structures are nested"

                                Further reading

                                Function getLocationTypeAttribute has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    public function getLocationTypeAttribute()
                                    {
                                        if ((60000000 <= $this->locationID && $this->locationID <= 64000000) ||
                                            (68000000 <= $this->locationID && $this->locationID <= 70000000))
                                            return 'station';
                                Severity: Minor
                                Found in src/Models/CorporationAssetListContent.php - About 25 mins to fix

                                Cognitive Complexity

                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                A method's cognitive complexity is based on a few simple rules:

                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                • Code is considered more complex for each "break in the linear flow of the code"
                                • Code is considered more complex when "flow breaking structures are nested"

                                Further reading

                                Function getLocationTypeAttribute has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    public function getLocationTypeAttribute()
                                    {
                                        if ((60000000 <= $this->locationID && $this->locationID <= 64000000) ||
                                            (68000000 <= $this->locationID && $this->locationID <= 70000000))
                                            return 'station';
                                Severity: Minor
                                Found in src/Models/CorporationAssetList.php - About 25 mins to fix

                                Cognitive Complexity

                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                A method's cognitive complexity is based on a few simple rules:

                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                • Code is considered more complex for each "break in the linear flow of the code"
                                • Code is considered more complex when "flow breaking structures are nested"

                                Further reading

                                Severity
                                Category
                                Status
                                Source
                                Language