@@ -31,10 +31,10 @@ class GroupAdminsToLdap extends Command {
3131 * GroupAdminsToLdap constructor.
3232 */
3333 public function __construct (
34- private SubAdmin $ subAdmin ,
35- private IConfig $ ocConfig ,
36- private Helper $ helper ,
37- private Group_Proxy $ groupProxy ,
34+ private readonly SubAdmin $ subAdmin ,
35+ private readonly IConfig $ ocConfig ,
36+ private readonly Helper $ helper ,
37+ private readonly Group_Proxy $ groupProxy ,
3838 ) {
3939 parent ::__construct ();
4040 }
@@ -136,7 +136,7 @@ function diff_user_arrays($array1, $array2) {
136136 foreach ($ onlyInNC as $ gid => $ users ) {
137137 $ groupDN = $ access ->getGroupMapper ()->getDNByName ($ gid );
138138 if ($ groupDN === false ) {
139- throw new Exception ('Failed to find group ' . $ gid );
139+ throw new Exception ('Failed to find group ' . $ gid );
140140 }
141141 foreach ($ users as $ uid ) {
142142 $ userDN = $ access ->getUserMapper ()->getDNByName ($ uid );
@@ -155,7 +155,7 @@ function diff_user_arrays($array1, $array2) {
155155 foreach ($ onlyInLDAP as $ gid => $ users ) {
156156 $ groupDN = $ access ->getGroupMapper ()->getDNByName ($ gid );
157157 if ($ groupDN === false ) {
158- throw new Exception ('Failed to find group ' . $ gid );
158+ throw new Exception ('Failed to find group ' . $ gid );
159159 }
160160 foreach ($ users as $ uid ) {
161161 $ userDN = $ access ->getUserMapper ()->getDNByName ($ uid );
0 commit comments