GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 97f340...3c4d61 )
by Marcel
01:35
created
app/sog/Dashboard/Authentication/LdapUserProvider.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
      *
65 65
      * @param string $user_dn The user DN for which to infer the rules
66 66
      * @param array $ownerships The owned groups for the user DN
67
-     * @return array The roles of the given user
67
+     * @return string[] The roles of the given user
68 68
      */
69 69
     private function getRoles($user_dn, $ownerships)
70 70
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
             $roles = $this->getRoles($dn, $ownerships);
55 55
             return new LdapUser($username, null, $attributes, $roles, $memberships, $ownerships);
56 56
         } catch (LdapException $ex) {
57
-          throw new UsernameNotFoundException($ex->getMessage().'Der Login war nicht erfolgreich, bitte überprüfe deinen Benutzernamen und Passwort.');
57
+          throw new UsernameNotFoundException($ex->getMessage() . 'Der Login war nicht erfolgreich, bitte überprüfe deinen Benutzernamen und Passwort.');
58 58
           $logger = $this->get('logger');
59 59
           $logger->error(($ex->getMessage()));
60 60
         }
Please login to merge, or discard this patch.
app/sog/Dashboard/Authentication/LdapUser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         $this->attributes = $attributes;
56 56
         $this->roles = $roles;
57 57
         $this->memberships = $memberships;
58
-        $this->ownerships = array_map(function($group) {
58
+        $this->ownerships = array_map(function ($group) {
59 59
             return $group['ou'][0];
60 60
         }, $ownerships);
61 61
     }
Please login to merge, or discard this patch.
app/sog/Dashboard/LdapAdapter.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      * Retrieves all members for the given group CN
151 151
      *
152 152
      * @param string $group_ou The common name of the group for which we want to retrieve the members
153
-     * @param array $fields A list of fields we want to return from the search
153
+     * @param string[] $fields A list of fields we want to return from the search
154 154
      * @return bool|\Zend\Ldap\Collection
155 155
      * @throws LdapException
156 156
      */
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
      * Retrieves all memberships for the given DN
220 220
      *
221 221
      * @param string $user_dn The DN for which to get the memberships
222
-     * @param array $fields A list of fields we want to return from the search
222
+     * @param string[] $fields A list of fields we want to return from the search
223 223
      * @param string $attribute The attribute which we use for filtering
224 224
      * @return bool|\Zend\Ldap\Collection
225 225
      * @throws LdapException
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -352,17 +352,17 @@
 block discarded – undo
352 352
      */
353 353
     public function createGuest($name, $mail)
354 354
     {
355
-        $username = 'guest'.$this->generateUsername($name);
355
+        $username = 'guest' . $this->generateUsername($name);
356 356
         $dn = sprintf('uid=%s,ou=guests,ou=people,o=sog-de,dc=sog', $username);
357 357
         $info = [];
358 358
 
359 359
         // core data
360 360
         Attribute::setAttribute($info, 'dn', $dn);
361 361
         Attribute::setAttribute($info, 'uid', $username);
362
-        Attribute::setAttribute($info, 'cn', "Guest ".$name);
363
-        Attribute::setAttribute($info, 'displayName', "Guest ".$name);
364
-        Attribute::setAttribute($info, 'sn', "Guest ".$name);
365
-        Attribute::setAttribute($info, 'cn', "Guest ".$name);
362
+        Attribute::setAttribute($info, 'cn', "Guest " . $name);
363
+        Attribute::setAttribute($info, 'displayName', "Guest " . $name);
364
+        Attribute::setAttribute($info, 'sn', "Guest " . $name);
365
+        Attribute::setAttribute($info, 'cn', "Guest " . $name);
366 366
 
367 367
         // meta data
368 368
         Attribute::setAttribute($info, 'mail', $mail);
Please login to merge, or discard this patch.