@@ -230,15 +230,15 @@ private function authenticatedUsingAdapters(ServerRequestInterface $request)
230
230
/**
231
231
* {@inheritdoc}
232
232
*/
233
- public function & getAuthenticatedUser ()
233
+ public function getAuthenticatedUser ()
234
234
{
235
235
return $ this ->authenticated_user ;
236
236
}
237
237
238
238
/**
239
239
* {@inheritdoc}
240
240
*/
241
- public function & setAuthenticatedUser (AuthenticatedUserInterface $ user = null )
241
+ public function setAuthenticatedUser (AuthenticatedUserInterface $ user = null )
242
242
{
243
243
$ this ->authenticated_user = $ user ;
244
244
@@ -258,7 +258,7 @@ public function getAuthenticatedWith()
258
258
/**
259
259
* {@inheritdoc}
260
260
*/
261
- public function & setAuthenticatedWith (AuthenticationResultInterface $ value )
261
+ public function setAuthenticatedWith (AuthenticationResultInterface $ value )
262
262
{
263
263
$ this ->authenticated_with = $ value ;
264
264
@@ -272,7 +272,7 @@ public function &setAuthenticatedWith(AuthenticationResultInterface $value)
272
272
* @param array $arguments
273
273
* @return $this
274
274
*/
275
- private function & triggerEvent ($ event_name , ...$ arguments )
275
+ private function triggerEvent ($ event_name , ...$ arguments )
276
276
{
277
277
$ property_name = "on_ {$ event_name }" ;
278
278
@@ -287,21 +287,21 @@ private function &triggerEvent($event_name, ...$arguments)
287
287
/**
288
288
* {@inheritdoc}
289
289
*/
290
- public function & onUserAuthenticated (callable $ value )
290
+ public function onUserAuthenticated (callable $ value )
291
291
{
292
292
$ this ->on_user_authenticated [] = $ value ;
293
293
294
294
return $ this ;
295
295
}
296
296
297
- public function & onUserAuthorized (callable $ value )
297
+ public function onUserAuthorized (callable $ value )
298
298
{
299
299
$ this ->on_user_authorized [] = $ value ;
300
300
301
301
return $ this ;
302
302
}
303
303
304
- public function & onUserAuthorizationFailed (callable $ value )
304
+ public function onUserAuthorizationFailed (callable $ value )
305
305
{
306
306
$ this ->on_user_authorization_failed [] = $ value ;
307
307
@@ -311,14 +311,14 @@ public function &onUserAuthorizationFailed(callable $value)
311
311
/**
312
312
* {@inheritdoc}
313
313
*/
314
- public function & onUserSet (callable $ value )
314
+ public function onUserSet (callable $ value )
315
315
{
316
316
$ this ->on_user_set [] = $ value ;
317
317
318
318
return $ this ;
319
319
}
320
320
321
- public function & onUserDeauthenticated (callable $ value )
321
+ public function onUserDeauthenticated (callable $ value )
322
322
{
323
323
$ this ->on_user_deauthenticated [] = $ value ;
324
324
@@ -330,7 +330,7 @@ public function &onUserDeauthenticated(callable $value)
330
330
*
331
331
* {@inheritdoc}
332
332
*/
333
- public function & setOnAuthenciatedUserChanged (callable $ value = null )
333
+ public function setOnAuthenciatedUserChanged (callable $ value = null )
334
334
{
335
335
if (empty ($ value )) {
336
336
throw new InvalidArgumentException ('Value needs to be a callable. ' );
0 commit comments