diff options
author | Joas Schilling <coding@schilljs.com> | 2018-01-26 10:15:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-26 10:15:39 +0100 |
commit | c2b1bd92d6f6e675f7ffab420cd61c5be701c4a6 (patch) | |
tree | 10e093ff030f1436fe3862c4b1944dbcf050723d /apps/twofactor_backupcodes | |
parent | fab951e4b3d103b68b21ccb864d229c4023b57ac (diff) | |
parent | 0a56d2185e79caf81f5160cb8503955d9c3108a6 (diff) | |
download | nextcloud-server-c2b1bd92d6f6e675f7ffab420cd61c5be701c4a6.tar.gz nextcloud-server-c2b1bd92d6f6e675f7ffab420cd61c5be701c4a6.zip |
Merge pull request #8063 from nextcloud/inline-value
Return value immediately instead of assigning to a one-time variable
Diffstat (limited to 'apps/twofactor_backupcodes')
-rw-r--r-- | apps/twofactor_backupcodes/lib/Provider/BackupCodesProvider.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/twofactor_backupcodes/lib/Provider/BackupCodesProvider.php b/apps/twofactor_backupcodes/lib/Provider/BackupCodesProvider.php index 5c5500862e6..f5b01649bbb 100644 --- a/apps/twofactor_backupcodes/lib/Provider/BackupCodesProvider.php +++ b/apps/twofactor_backupcodes/lib/Provider/BackupCodesProvider.php @@ -90,8 +90,7 @@ class BackupCodesProvider implements IProvider { * @return Template */ public function getTemplate(IUser $user) { - $tmpl = new Template('twofactor_backupcodes', 'challenge'); - return $tmpl; + return new Template('twofactor_backupcodes', 'challenge'); } /** |