Showing 599 of 599 total issues
Method printDynamic
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function printDynamic()
{
$out = [];
$out[] = "<div id='dynamic_tests'><fieldset class='option_container'>
<legend><strong>"._("DYNAMIC connectivity tests")."</strong></legend>";
Method headerDiv
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function headerDiv($cap1, $language) {
\core\common\Entity::intoThePotatoes();
$place = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
$retval = "<div class='header'>
Method removenetworkBlock
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function removenetworkBlock($ssid)
{
\core\common\Entity::intoThePotatoes();
$retval = "
<dict>
Method footer
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function footer() {
$cat = new \core\CAT();
\core\common\Entity::intoThePotatoes();
$retval = "</div><!-- thirdrow --></div><!-- trick -->
</div><!-- pagecontent -->
Method boxFlexible
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
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")],
Method sendOptionsToDatabase
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
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);
Method getUserAuthRecords
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
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) {
Method jsonListProfiles
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function jsonListProfiles($idpIdentifier, $sort = 0)
{
$returnArray = [];
try {
$idp = new IdP($idpIdentifier);
Method createTemporaryDirectory
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function createTemporaryDirectory($purpose = 'installer', $failIsFatal = 1)
{
$loggerInstance = new Logging();
$name = md5(time() . rand());
$path = ROOT;
Method findGoodServerLocation
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
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();