Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use square bracket syntax to modify array #39175

Conversation

shdehnavi
Copy link
Contributor

Summary

The required adjustments have been made to the UserController class in the settings app

square bracket syntax is used instead of the array_push method, if we want to add one element to the array, it's better to use $array[] = because in that way there is no overhead of calling a function.

Checklist

Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
@solracsf solracsf added this to the Nextcloud 28 milestone Jul 6, 2023
@solracsf solracsf added 3. to review Waiting for reviews technical debt labels Jul 6, 2023
@ChristophWurst ChristophWurst merged commit dd3cd29 into nextcloud:master Sep 27, 2023
35 of 39 checks passed
@shdehnavi shdehnavi deleted the settings_app_users_controller_square_bracket_syntax branch September 28, 2023 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants