Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/private/Cache/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class File implements ICache {
* @throws \OC\User\NoUserException
*/
protected function getStorage() {
if (isset($this->storage)) {
if ($this->storage !== null) {
return $this->storage;
}
if (\OC::$server->getUserSession()->isLoggedIn()) {
Expand Down
4 changes: 2 additions & 2 deletions lib/private/Files/Storage/DAV.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class DAV extends Common {
protected $password;
/** @var string */
protected $user;
/** @var string */
/** @var string|null */
protected $authType;
/** @var string */
protected $host;
Expand Down Expand Up @@ -143,7 +143,7 @@ protected function init() {
'userName' => $this->user,
'password' => $this->password,
];
if (isset($this->authType)) {
if ($this->authType !== null) {
$settings['authType'] = $this->authType;
}

Expand Down
4 changes: 2 additions & 2 deletions lib/private/Route/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class Router implements IRouter {
protected $root = null;
/** @var null|UrlGenerator */
protected $generator = null;
/** @var string[] */
/** @var string[]|null */
protected $routingFiles;
/** @var bool */
protected $loaded = false;
Expand Down Expand Up @@ -95,7 +95,7 @@ public function __construct(ILogger $logger) {
* @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);
Expand Down
4 changes: 2 additions & 2 deletions lib/private/User/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class User implements IUser {
/** @var string */
private $uid;

/** @var string */
/** @var string|null */
private $displayName;

/** @var UserInterface|null */
Expand Down Expand Up @@ -128,7 +128,7 @@ public function getUID() {
* @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
Expand Down