Completed
Pull Request — master (#116)
by Franco
01:50
created
src/Services/LDAPService.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
      * Note that these get cached in-memory per-request for performance to avoid re-querying for the same results.
274 274
      *
275 275
      * @param string $dn
276
-     * @param array $attributes List of specific AD attributes to return. Empty array means return everything.
276
+     * @param string[] $attributes List of specific AD attributes to return. Empty array means return everything.
277 277
      * @return array
278 278
      */
279 279
     public function getNestedGroups($dn, $attributes = [])
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
      * @param Member
478 478
      * @param array|null $data If passed, this is pre-existing AD attribute data to update the Member with.
479 479
      *            If not given, the data will be looked up by the user's GUID.
480
-     * @return bool
480
+     * @return false|null
481 481
      */
482 482
     public function updateMemberFromLDAP(Member $member, $data = null)
483 483
     {
@@ -657,7 +657,7 @@  discard block
 block discarded – undo
657 657
      * @param Group $group An existing Group or a new Group object
658 658
      * @param array $data LDAP group object data
659 659
      *
660
-     * @return bool
660
+     * @return false|null
661 661
      */
662 662
     public function updateGroupFromLDAP(Group $group, $data)
663 663
     {
Please login to merge, or discard this patch.
src/Control/LDAPDebugController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     /**
55 55
      * @param HTTPRequest $request
56 56
      *
57
-     * @return string
57
+     * @return \SilverStripe\ORM\FieldType\DBHTMLText
58 58
      */
59 59
     public function index(HTTPRequest $request)
60 60
     {
Please login to merge, or discard this patch.
src/Authenticators/LDAPAuthenticator.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
      * @param array $data
83 83
      * @param HTTPRequest $request
84 84
      * @param ValidationResult|null $result
85
-     * @return null|Member
85
+     * @return null|\SilverStripe\ORM\DataObject
86 86
      */
87 87
     public function authenticate(array $data, HTTPRequest $request, ValidationResult &$result = null)
88 88
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -6,13 +6,11 @@
 block discarded – undo
6 6
 use SilverStripe\Control\Controller;
7 7
 use SilverStripe\Control\Email\Email;
8 8
 use SilverStripe\Control\HTTPRequest;
9
-use SilverStripe\Control\Session;
10 9
 use SilverStripe\Core\Config\Config;
11 10
 use SilverStripe\Core\Injector\Injector;
12 11
 use SilverStripe\ORM\ValidationResult;
13 12
 use SilverStripe\Security\Authenticator;
14 13
 use SilverStripe\Security\Member;
15
-use SilverStripe\Security\MemberAuthenticator\LogoutHandler;
16 14
 use SilverStripe\Security\MemberAuthenticator\MemberAuthenticator;
17 15
 use Zend\Authentication\Result;
18 16
 
Please login to merge, or discard this patch.
src/Authenticators/SAMLAuthenticator.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -6,10 +6,8 @@
 block discarded – undo
6 6
 use SilverStripe\Control\Controller;
7 7
 use Silverstripe\Control\Director;
8 8
 use SilverStripe\Control\HTTPRequest;
9
-use SilverStripe\Control\Session;
10 9
 use SilverStripe\Core\Config\Config;
11 10
 use SilverStripe\Core\Injector\Injector;
12
-use SilverStripe\Forms\Form;
13 11
 use SilverStripe\ORM\ValidationResult;
14 12
 use SilverStripe\Security\Authenticator;
15 13
 use SilverStripe\Security\Member;
Please login to merge, or discard this patch.