web/skins/modern/Divs.php

Summary

Maintainability
B
5 hrs
Test Coverage

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

    public function divOtherinstallers() {
        $retval = "
<div class='sub_h'>
    <div id='other_installers'>".$this->Gui->textTemplates->templates[user\DOWNLOAD_CHOOSE]."
        <table id='device_list' style='padding:0px;'>";
Severity: Minor
Found in web/skins/modern/Divs.php - About 1 hr to fix

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

        public function divFooter() {
            $retval = "
    <div class='footer' id='footer'>
        <table>
            <tr>
    Severity: Minor
    Found in web/skins/modern/Divs.php - About 1 hr to fix

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

          public function divUserWelcome() {
              $retval = "
      <div id='user_welcome'> <!-- this information is shown just before the download -->
          <strong>".$this->Gui->textTemplates->templates[user\WELCOME_ABOARD_PAGEHEADING]."</strong>
          <p>
      Severity: Minor
      Found in web/skins/modern/Divs.php - About 1 hr to fix

        Method divRoller has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function divRoller() {
                $retval = "
        <div id='roller'>
            <div id='slides'>
                <span id='line1'>".$this->Gui->textTemplates->templates[user\FRONTPAGE_ROLLER_EASY]."</span>
        Severity: Minor
        Found in web/skins/modern/Divs.php - About 1 hr to fix

          Function divOtherinstallers has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
          Open

              public function divOtherinstallers() {
                  $retval = "
          <div class='sub_h'>
              <div id='other_installers'>".$this->Gui->textTemplates->templates[user\DOWNLOAD_CHOOSE]."
                  <table id='device_list' style='padding:0px;'>";
          Severity: Minor
          Found in web/skins/modern/Divs.php - About 45 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 divFooter has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
          Open

              public function divFooter() {
                  $retval = "
          <div class='footer' id='footer'>
              <table>
                  <tr>
          Severity: Minor
          Found in web/skins/modern/Divs.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

          There are no issues that match your filters.

          Category
          Status