Skip to content

Commit 7e74524

Browse files
committed
Remove by ref method signatures
1 parent 397f98c commit 7e74524

File tree

5 files changed

+19
-18
lines changed

5 files changed

+19
-18
lines changed

composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"psr/http-server-middleware": "^1.0"
2424
},
2525
"require-dev": {
26+
"ext-json": "*",
2627
"friendsofphp/php-cs-fixer": "^2.0",
2728
"lightsaml/lightsaml": "^1.1",
2829
"phpunit/phpunit": "^7.0",

src/LoginPolicy/LoginPolicy.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function getUsernameFormat()
9292
/**
9393
* {@inheritdoc}
9494
*/
95-
public function &setUsernameFormat($value)
95+
public function setUsernameFormat($value)
9696
{
9797
if (in_array($value, self::VALID_USERNAME_FORMATS)) {
9898
$this->username_format = $value;
@@ -114,7 +114,7 @@ public function rememberExtendsSession()
114114
/**
115115
* {@inheritdoc}
116116
*/
117-
public function &setRememberExtendsSession($value)
117+
public function setRememberExtendsSession($value)
118118
{
119119
$this->remember_extends_session = (bool) $value;
120120

@@ -132,7 +132,7 @@ public function isPasswordChangeEnabled()
132132
/**
133133
* {@inheritdoc}
134134
*/
135-
public function &setIsPasswordChangeEnabled($value)
135+
public function setIsPasswordChangeEnabled($value)
136136
{
137137
$this->password_change_enabled = (bool) $value;
138138

@@ -150,7 +150,7 @@ public function isPasswordRecoveryEnabled()
150150
/**
151151
* {@inheritdoc}
152152
*/
153-
public function &setIsPasswordRecoveryEnabled($value)
153+
public function setIsPasswordRecoveryEnabled($value)
154154
{
155155
$this->password_recovery_enabled = (bool) $value;
156156

@@ -168,7 +168,7 @@ public function getExternalLoginUrl()
168168
/**
169169
* {@inheritdoc}
170170
*/
171-
public function &setExternalLoginUrl($value)
171+
public function setExternalLoginUrl($value)
172172
{
173173
$this->external_login_url = $this->getValidExternalUrlValue($value);
174174

@@ -186,7 +186,7 @@ public function getExternalLogoutUrl()
186186
/**
187187
* {@inheritdoc}
188188
*/
189-
public function &setExternalLogoutUrl($value)
189+
public function setExternalLogoutUrl($value)
190190
{
191191
$this->external_logout_url = $this->getValidExternalUrlValue($value);
192192

@@ -204,7 +204,7 @@ public function getExternalChangePasswordUrl()
204204
/**
205205
* {@inheritdoc}
206206
*/
207-
public function &setExternalChangePasswordUrl($value)
207+
public function setExternalChangePasswordUrl($value)
208208
{
209209
$this->external_change_password_url = $this->getValidExternalUrlValue($value);
210210

@@ -222,7 +222,7 @@ public function getExternalUpdateProfileUrl()
222222
/**
223223
* {@inheritdoc}
224224
*/
225-
public function &setExternalUpdateProfileUrl($value)
225+
public function setExternalUpdateProfileUrl($value)
226226
{
227227
$this->external_update_profile_url = $this->getValidExternalUrlValue($value);
228228

src/LoginPolicy/LoginPolicyInterface.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function getUsernameFormat();
3333
* @param string $value
3434
* @return $this
3535
*/
36-
public function &setUsernameFormat($value);
36+
public function setUsernameFormat($value);
3737

3838
/**
3939
* Enable Remember Me feature to support extended sessions.
@@ -48,7 +48,7 @@ public function rememberExtendsSession();
4848
* @param bool $value
4949
* @return $this
5050
*/
51-
public function &setRememberExtendsSession($value);
51+
public function setRememberExtendsSession($value);
5252

5353
/**
5454
* Password change is supported by this authentication adapter.
@@ -63,7 +63,7 @@ public function isPasswordChangeEnabled();
6363
* @param bool $value
6464
* @return $this
6565
*/
66-
public function &setIsPasswordChangeEnabled($value);
66+
public function setIsPasswordChangeEnabled($value);
6767

6868
/**
6969
* Return true if this authentication adapter supports password recovery.
@@ -78,7 +78,7 @@ public function isPasswordRecoveryEnabled();
7878
* @param bool $value
7979
* @return $this
8080
*/
81-
public function &setIsPasswordRecoveryEnabled($value);
81+
public function setIsPasswordRecoveryEnabled($value);
8282

8383
/**
8484
* Get login URL.
@@ -93,7 +93,7 @@ public function getExternalLoginUrl();
9393
* @param string $value
9494
* @return $this
9595
*/
96-
public function &setExternalLoginUrl($value);
96+
public function setExternalLoginUrl($value);
9797

9898
/**
9999
* Get logout URL.
@@ -108,7 +108,7 @@ public function getExternalLogoutUrl();
108108
* @param string $value
109109
* @return $this
110110
*/
111-
public function &setExternalLogoutUrl($value);
111+
public function setExternalLogoutUrl($value);
112112

113113
/**
114114
* Get change password URL.
@@ -123,7 +123,7 @@ public function getExternalChangePasswordUrl();
123123
* @param string $value
124124
* @return $this
125125
*/
126-
public function &setExternalChangePasswordUrl($value);
126+
public function setExternalChangePasswordUrl($value);
127127

128128
/**
129129
* Get update profile URL.
@@ -138,5 +138,5 @@ public function getExternalUpdateProfileUrl();
138138
* @param string $value
139139
* @return $this
140140
*/
141-
public function &setExternalUpdateProfileUrl($value);
141+
public function setExternalUpdateProfileUrl($value);
142142
}

test/src/Session/Session.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function getIsExtendedSession()
101101
* @param bool $value
102102
* @return $this
103103
*/
104-
public function &setIsExtendedSession($value)
104+
public function setIsExtendedSession($value)
105105
{
106106
$this->is_extended_session = (bool) $value;
107107

test/src/Token/Token.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function getExtraAttribute()
7878
* @param mixed $value
7979
* @return $this
8080
*/
81-
public function &setExtraAttribute($value)
81+
public function setExtraAttribute($value)
8282
{
8383
$this->extra_attribute = $value;
8484

0 commit comments

Comments
 (0)