diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-01-25 22:36:03 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-01-25 22:36:03 +0100 |
commit | 870fe20acc90cbfb89bf710f441d62f8bcf92f9d (patch) | |
tree | 5550c1b7a663c3b440d2566c8aaf3b87da0131bf /apps/twofactor_backupcodes/lib | |
parent | b9bbb894f8b01e000bb5e3a8a82db7bebad3ea00 (diff) | |
download | nextcloud-server-870fe20acc90cbfb89bf710f441d62f8bcf92f9d.tar.gz nextcloud-server-870fe20acc90cbfb89bf710f441d62f8bcf92f9d.zip |
Use $var[] = $a instead of array_push - 2x faster
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/twofactor_backupcodes/lib')
-rw-r--r-- | apps/twofactor_backupcodes/lib/Service/BackupCodeStorage.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/twofactor_backupcodes/lib/Service/BackupCodeStorage.php b/apps/twofactor_backupcodes/lib/Service/BackupCodeStorage.php index 84bf54d3379..2fb5fe8a6c0 100644 --- a/apps/twofactor_backupcodes/lib/Service/BackupCodeStorage.php +++ b/apps/twofactor_backupcodes/lib/Service/BackupCodeStorage.php @@ -86,7 +86,7 @@ class BackupCodeStorage { $dbCode->setUsed(0); $this->mapper->insert($dbCode); - array_push($result, $code); + $result[] = $code; } $this->publishEvent($user, 'codes_generated'); |