Code Duplication    Length = 11-11 lines in 2 locations

app/Foundation/Ldap/Group.php 1 location

@@ 63-73 (lines=11) @@
60
     *
61
     * @return array
62
     */
63
    public function find($query)
64
    {
65
        $this->query->execute($this->getBasDn(), $query, $this->getAttributes());
66
        $groups = [];
67
68
        if ($this->query->hasResult()) {
69
            $groups = $this->build();
70
        }
71
72
        return $groups;
73
    }
74
75
    /**
76
     * Build groups list.

app/Foundation/Ldap/User.php 1 location

@@ 73-83 (lines=11) @@
70
     *
71
     * @return LdapUserProvider
72
     */
73
    public function find($query)
74
    {
75
        $this->query->execute($this->getBasDn(), $query, $this->getAttributes());
76
        $user = null;
77
78
        if ($this->query->hasResult()) {
79
            $user = $this->build();
80
        }
81
82
        return $user;
83
    }
84
85
    /**
86
     * Get user groupIds (DN).