Commit d26a71a6 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(simpleplugin) Fix starting point of loop

issue #5817
Showing with 1 addition and 1 deletion
+1 -1
......@@ -1820,7 +1820,7 @@ class simplePlugin
$usableAttributes[] = $attr;
}
}
for ($i = 2; $i < count($usableAttributes); $i++) {
for ($i = 1; $i < count($usableAttributes); $i++) {
foreach (new Combinations($usableAttributes, $i) as $attrs) {
$dn = $attribute.'='.ldap_escape_dn($this->$attribute);
foreach ($attrs as $attr) {
......
  • SonarQube analysis reported 1 issue

    • :no_entry_sign: 1 critical

    Note: The following issues were found on lines that were not modified in the commit. Because these issues can't be reported as line comments, they are summarized here:

    1. :no_entry_sign: Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed. :blue_book:

    By Ghost User on 2018-04-18T07:33:28 (imported from GitLab)

  • bmortier @bmortier

    mentioned in commit 855c6d20

    By Côme Chilliet on 2018-04-25T09:27:26 (imported from GitLab)

    ·

    mentioned in commit 855c6d20

    By Côme Chilliet on 2018-04-25T09:27:26 (imported from GitLab)

    Toggle commit list
  • bmortier @bmortier

    mentioned in merge request !249

    By Côme Chilliet on 2018-04-25T09:27:45 (imported from GitLab)

    ·

    mentioned in merge request !249

    By Côme Chilliet on 2018-04-25T09:27:45 (imported from GitLab)

    Toggle commit list
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment