Showing 599 of 599 total issues

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

    public function printDynamic()
    {
        $out = [];
        $out[] = "<div id='dynamic_tests'><fieldset class='option_container'>
            <legend><strong>"._("DYNAMIC connectivity tests")."</strong></legend>";
Severity: Minor
Found in core/diag/RADIUSTestsUI.php - About 1 hr to fix

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

        private function headerDiv($cap1, $language) {
            \core\common\Entity::intoThePotatoes();
            $place = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
    
            $retval = "<div class='header'>
    Severity: Minor
    Found in web/lib/admin/PageDecoration.php - About 1 hr to fix

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

          private function removenetworkBlock($ssid)
          {
              \core\common\Entity::intoThePotatoes();
              $retval = "
      <dict>
      Severity: Minor
      Found in devices/apple_mobileconfig/MobileconfigSuperclass.php - About 1 hr to fix

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

            public function footer() {
                $cat = new \core\CAT();
                \core\common\Entity::intoThePotatoes();
                $retval = "</div><!-- thirdrow --></div><!-- trick -->
                  </div><!-- pagecontent -->
        Severity: Minor
        Found in web/lib/admin/PageDecoration.php - About 1 hr to fix

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

              public function boxFlexible(int $level, string $text = NULL, string $caption = NULL, bool $omittabletags = FALSE) {
                  \core\common\Entity::intoThePotatoes();
                  $uiMessages = [
                      \core\common\Entity::L_OK => ['img' => 'Tabler/square-rounded-check-filled-green.svg', 'text' => _("OK")],
                      \core\common\Entity::L_REMARK => ['img' => 'Tabler/info-square-rounded-filled-blue.svg', 'text' => _("Remark")],
          Severity: Minor
          Found in web/lib/admin/UIElements.php - About 1 hr to fix

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

                private function sendOptionsToDatabase($object, array $options, array $pendingattributes, string $device = NULL, int $eaptype = NULL) {
                    $retval = [];
                    foreach ($options as $iterateOption) {
                        foreach ($iterateOption as $name => $optionPayload) {
                            $optiontype = $this->optioninfoObject->optionType($name);
            Severity: Minor
            Found in web/lib/admin/OptionParser.php - About 1 hr to fix

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

                  public function getUserAuthRecords($userId, $testActivity = false) {
                      // find out all certificate CNs belonging to the user, including expired and revoked ones
                      $userData = $this->userStatus($userId);
                      $certNames = [];
                      foreach ($userData as $oneSlice) {
              Severity: Minor
              Found in core/ProfileSilverbullet.php - About 1 hr to fix

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

                    public function jsonListProfiles($idpIdentifier, $sort = 0)
                    {
                        $returnArray = [];
                        try {
                            $idp = new IdP($idpIdentifier);
                Severity: Minor
                Found in core/UserNetAPI.php - About 1 hr to fix

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

                      public static function createTemporaryDirectory($purpose = 'installer', $failIsFatal = 1)
                      {
                          $loggerInstance = new Logging();
                          $name = md5(time() . rand());
                          $path = ROOT;
                  Severity: Minor
                  Found in core/common/Entity.php - About 1 hr to fix

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

                        private function findGoodServerLocation($adminLocation, $federation, $blacklistedServers)
                        {
                            // find a server near him (list of all servers with capacity, ordered by distance)
                            // first, if there is a pool of servers specifically for this federation, prefer it
                            // only check the consortium pool group we want to attach to
                    Severity: Minor
                    Found in core/DeploymentManaged.php - About 1 hr to fix

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

                          private function sendMailtoAdmin($remove, $response, $status)
                          {
                              $txt = '';
                              if ($status == 'OK') {
                                  $txt = $remove ? _('Profile deactivation succeeded') : _('Profile activation/modification succeeded');
                      Severity: Minor
                      Found in core/DeploymentManaged.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 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 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 setUp has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  protected function setUp()
                                  {
                                      $this->loader = new MockPsr4Autoloader;
                              
                                      $this->loader->setFiles(array(
                              Severity: Minor
                              Found in tests/unit/core/autoloader/Psr4AutoloaderTest.php - About 1 hr to fix

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

                                    private function testDirectories()
                                    {
                                        $Dir1 = \core\common\Entity::createTemporaryDirectory('installer', 0);
                                        $dir1 = $Dir1['dir'];
                                        $base1 = $Dir1['base'];
                                Severity: Minor
                                Found in core/SanityTests.php - About 1 hr to fix

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

                                      private function fetchDeviceOrEAPLevelAttributes($devicesOrEAPMethods)
                                      {
                                          // only one of the two is allowed to be set
                                          $temparray = [];
                                          $optioninstance = Options::instance();
                                  Severity: Minor
                                  Found in core/ProfileRADIUS.php - About 1 hr to fix

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

                                        private function testDefaults()
                                        {
                                            $defaultvalues = "";
                                            $missingvalues = "";
                                            // all the checks for equality with a shipped default value
                                    Severity: Minor
                                    Found in core/SanityTests.php - About 1 hr to fix

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

                                          public function listExternalEntities($unmappedOnly, $type = NULL)
                                          {
                                              $allExternals = [];
                                              $usedarray = [];
                                              $returnarray = [];
                                      Severity: Minor
                                      Found in core/Federation.php - About 1 hr to fix

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

                                            public function relevantNAPTRcompliance()
                                            {
                                        // did we query DNS for the NAPTRs yet? If not, do so now.
                                                if ($this->NAPTR_executed == RFC7585Tests::RETVAL_NOTRUNYET) {
                                                    $this->relevantNAPTR();
                                        Severity: Minor
                                        Found in core/diag/RFC7585Tests.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language