Showing 529 of 599 total issues

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

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

                          public function isEapTypeDefinitionComplete($eaptype)
                          {
                              if ($eaptype->needsServerCACert() && $eaptype->needsServerName()) {
                                  $missing = [];
                                  // silverbullet needs a support email address configured
                      Severity: Minor
                      Found in core/AbstractProfile.php - About 1 hr to fix

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

                            private function getDisplayName()
                            {
                                $attr = $this->attributes;
                                $objs = [];
                                if ($this->langScope === 'global') {
                        Severity: Minor
                        Found in devices/eap_config/DeviceXML.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

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

                                public function __construct()
                                {
                                    $this->databaseType = "INST";
                                    parent::__construct();
                                    $this->rootPem = file_get_contents(CertificationAuthorityEmbeddedRSA::LOCATION_ROOT_CA);
                            Severity: Minor
                            Found in core/CertificationAuthorityEmbeddedRSA.php - About 1 hr to fix

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

                                  public function __construct()
                                  {
                                      $this->databaseType = "INST";
                                      parent::__construct();
                                      $this->rootPem = file_get_contents(CertificationAuthorityEmbeddedECDSA::LOCATION_ROOT_CA);
                              Severity: Minor
                              Found in core/CertificationAuthorityEmbeddedECDSA.php - About 1 hr to fix

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

                                    public function downloadStats($format, $detail = '')
                                    {
                                        $data = $this->downloadStatsCore($detail);
                                        $retstring = "";
                                
                                
                                Severity: Minor
                                Found in core/Federation.php - About 1 hr to fix

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

                                      private function testMakensis()
                                      {
                                          if (!is_numeric(\config\ConfAssistant::NSIS_VERSION)) {
                                              $this->storeTestResult(\core\common\Entity::L_ERROR, "NSIS_VERSION needs to be numeric!");
                                              return;
                                  Severity: Minor
                                  Found in core/SanityTests.php - About 1 hr to fix

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

                                        private static function determineOwnCatalogue($showTrace = FALSE)
                                        {
                                            $trace = debug_backtrace();
                                            $caller = [];
                                            // find the first caller in the stack trace which is NOT "Entity" itself
                                    Severity: Minor
                                    Found in core/common/Entity.php - About 1 hr to fix

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

                                          public function __construct($userId)
                                          {
                                              $this->databaseType = "USER";
                                              parent::__construct(); // database handle is now available
                                              $this->attributes = [];
                                      Severity: Minor
                                      Found in core/User.php - About 1 hr to fix

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

                                            private function propertyCheckIntermediate(&$intermediateCa, $serverCert = FALSE) {
                                                $returnarray = [];
                                                if (preg_match("/md5/i", $intermediateCa['full_details']['signatureTypeSN'])) {
                                                    $returnarray[] = RADIUSTests::CERTPROB_MD5_SIGNATURE;
                                                }
                                        Severity: Minor
                                        Found in core/diag/RADIUSTests.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language