Showing 529 of 599 total issues
Method sendMailtoAdmin
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function sendMailtoAdmin($remove, $response, $status)
{
$txt = '';
if ($status == 'OK') {
$txt = $remove ? _('Profile deactivation succeeded') : _('Profile activation/modification succeeded');
Method divUserWelcome
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
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>
Method divFooter
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function divFooter() {
$retval = "
<div class='footer' id='footer'>
<table>
<tr>
Method divOtherinstallers
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;'>";
Method setUp
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function setUp()
{
$this->loader = new MockPsr4Autoloader;
$this->loader->setFiles(array(
Method testDirectories
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function testDirectories()
{
$Dir1 = \core\common\Entity::createTemporaryDirectory('installer', 0);
$dir1 = $Dir1['dir'];
$base1 = $Dir1['base'];
Method fetchDeviceOrEAPLevelAttributes
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function fetchDeviceOrEAPLevelAttributes($devicesOrEAPMethods)
{
// only one of the two is allowed to be set
$temparray = [];
$optioninstance = Options::instance();
Method testDefaults
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function testDefaults()
{
$defaultvalues = "";
$missingvalues = "";
// all the checks for equality with a shipped default value
Method listExternalEntities
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function listExternalEntities($unmappedOnly, $type = NULL)
{
$allExternals = [];
$usedarray = [];
$returnarray = [];
Method relevantNAPTRcompliance
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
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();
Method isEapTypeDefinitionComplete
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function isEapTypeDefinitionComplete($eaptype)
{
if ($eaptype->needsServerCACert() && $eaptype->needsServerName()) {
$missing = [];
// silverbullet needs a support email address configured
Method getDisplayName
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getDisplayName()
{
$attr = $this->attributes;
$objs = [];
if ($this->langScope === 'global') {
Method divRoller
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function divRoller() {
$retval = "
<div id='roller'>
<div id='slides'>
<span id='line1'>".$this->Gui->textTemplates->templates[user\FRONTPAGE_ROLLER_EASY]."</span>
Method __construct
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct()
{
$this->databaseType = "INST";
parent::__construct();
$this->rootPem = file_get_contents(CertificationAuthorityEmbeddedRSA::LOCATION_ROOT_CA);
Method __construct
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct()
{
$this->databaseType = "INST";
parent::__construct();
$this->rootPem = file_get_contents(CertificationAuthorityEmbeddedECDSA::LOCATION_ROOT_CA);
Method downloadStats
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function downloadStats($format, $detail = '')
{
$data = $this->downloadStatsCore($detail);
$retstring = "";
Method testMakensis
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Method determineOwnCatalogue
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static function determineOwnCatalogue($showTrace = FALSE)
{
$trace = debug_backtrace();
$caller = [];
// find the first caller in the stack trace which is NOT "Entity" itself
Method __construct
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct($userId)
{
$this->databaseType = "USER";
parent::__construct(); // database handle is now available
$this->attributes = [];
Method propertyCheckIntermediate
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function propertyCheckIntermediate(&$intermediateCa, $serverCert = FALSE) {
$returnarray = [];
if (preg_match("/md5/i", $intermediateCa['full_details']['signatureTypeSN'])) {
$returnarray[] = RADIUSTests::CERTPROB_MD5_SIGNATURE;
}