Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / user / src / Entity / Role.php
index 0e7ef0e5cbf50ad8ab20186a2b5e613de62a0887..0226f94b781406ac1fc83cb7903b22804a8feaee 100644 (file)
@@ -173,7 +173,7 @@ class Role extends ConfigEntityBase implements RoleInterface {
 
     if (!isset($this->weight) && ($roles = $storage->loadMultiple())) {
       // Set a role weight to make this new role last.
-      $max = array_reduce($roles, function($max, $role) {
+      $max = array_reduce($roles, function ($max, $role) {
         return $max > $role->weight ? $max : $role->weight;
       });
       $this->weight = $max + 1;