/**
* Get FileInfo ID or null in case of part file
*
- * @return int/null
+ * @return int|null
*/
public function getId() {
- return isset($this->data['fileid']) ? intval($this->data['fileid']) : null;
+ return isset($this->data['fileid']) ? (int) $this->data['fileid'] : null;
}
/**
*/
public function getSize() {
$this->updateEntryfromSubMounts();
- return isset($this->data['size']) ? intval($this->data['size']) : 0;
+ return isset($this->data['size']) ? (int) $this->data['size'] : 0;
}
/**
*/
public function getMTime() {
$this->updateEntryfromSubMounts();
- return intval($this->data['mtime']);
+ return (int) $this->data['mtime'];
}
/**
* @return int
*/
public function getEncryptedVersion() {
- return isset($this->data['encryptedVersion']) ? intval($this->data['encryptedVersion']) : 1;
+ return isset($this->data['encryptedVersion']) ? (int) $this->data['encryptedVersion'] : 1;
}
/**
* @return int
*/
public function getPermissions() {
- $perms = $this->data['permissions'];
+ $perms = (int) $this->data['permissions'];
if (\OCP\Util::isSharingDisabledForUser() || ($this->isShared() && !\OC\Share\Share::isResharingAllowed())) {
$perms = $perms & ~\OCP\Constants::PERMISSION_SHARE;
}
- return intval($perms);
+ return (int) $perms;
}
/**