Skip to content

Commit

Permalink
Sonar fixes
Browse files Browse the repository at this point in the history
Conflicts:
	include/class_templateHandling.inc
	include/simpleplugin/class_simplePlugin.inc
  • Loading branch information
MCMic committed Jan 11, 2017
1 parent 62d76b3 commit 338bf7e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions include/class_listing.inc
Original file line number Diff line number Diff line change
Expand Up @@ -967,13 +967,13 @@ class listing
*/
function filterObjectType($row, $dn)
{
return $this->filterGenericType($row, $dn, $this->objectTypes, $this->getObjectType($dn, $this->entries[$row]));
return $this->filterGenericType($dn, $this->objectTypes, $this->getObjectType($dn, $this->entries[$row]));
}

/*!
* \brief Generic method for department and objects once type is known
*/
protected function filterGenericType($row, $dn, $types, $type)
protected function filterGenericType($dn, $types, $type)
{
$result = " ";

Expand All @@ -997,7 +997,7 @@ class listing
*/
function filterDepartmentType($row, $dn)
{
return $this->filterGenericType($row, $dn, $this->departmentTypes, $this->getDepartmentType($dn, $this->departments[$row]));
return $this->filterGenericType($dn, $this->departmentTypes, $this->getDepartmentType($dn, $this->departments[$row]));
}

/*!
Expand Down
2 changes: 1 addition & 1 deletion plugins/addons/dashboard/class_dashBoardPasswords.inc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class dashboardPassword extends simplePlugin
$nb_accounts = count($users);
$nb_locked_accounts = 0;
$methods_stats = array();
foreach ($users as $dn => $userPassword) {
foreach ($users as $userPassword) {
if (!empty($userPassword)) {
if (preg_match("/^\{[^\}]+\}!/", $userPassword)) {
$nb_locked_accounts++;
Expand Down
1 change: 0 additions & 1 deletion plugins/admin/groups/class_ogroup.inc
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ class ogroup extends simplePlugin

function __construct ($dn = NULL, $object = NULL, $parent = NULL, $mainTab = FALSE)
{
global $config;
parent::__construct($dn, $object, $parent, $mainTab);

$this->attributesAccess['trustMode']->setInLdap(FALSE);
Expand Down

0 comments on commit 338bf7e

Please sign in to comment.