Psalm RedundantPropertyInitializationCheck fixes
For #25641 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
84de7a8d63
commit
1bb33983da
|
@ -143,7 +143,7 @@ class DAV extends Common {
|
|||
'userName' => $this->user,
|
||||
'password' => $this->password,
|
||||
];
|
||||
if (isset($this->authType)) {
|
||||
if ($this->authType !== null) {
|
||||
$settings['authType'] = $this->authType;
|
||||
}
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ class Router implements IRouter {
|
|||
* @return string[]
|
||||
*/
|
||||
public function getRoutingFiles() {
|
||||
if (!isset($this->routingFiles)) {
|
||||
if ($this->routingFiles === null) {
|
||||
$this->routingFiles = [];
|
||||
foreach (\OC_APP::getEnabledApps() as $app) {
|
||||
$appPath = \OC_App::getAppPath($app);
|
||||
|
|
|
@ -128,7 +128,7 @@ class User implements IUser {
|
|||
* @return string
|
||||
*/
|
||||
public function getDisplayName() {
|
||||
if (!isset($this->displayName)) {
|
||||
if ($this->displayName === null) {
|
||||
$displayName = '';
|
||||
if ($this->backend && $this->backend->implementsActions(Backend::GET_DISPLAYNAME)) {
|
||||
// get display name and strip whitespace from the beginning and end of it
|
||||
|
|
Loading…
Reference in New Issue