refactor: fix documentation

pull/129/head
sualko 2021-02-24 16:33:37 +01:00
parent dee6866fd1
commit cf0f315094
3 changed files with 6 additions and 22 deletions

View File

@ -94,7 +94,7 @@ class API {
/**
* Create meeting room.
*
* @return int creation time
* @return float|int creation time
*/
public function createMeeting(Room $room, Presentation $presentation = null) {
$bbb = $this->getServer();
@ -145,6 +145,7 @@ class API {
}
if ($presentation !== null && $presentation->isValid()) {
/** @psalm-suppress InvalidArgument */
$createMeetingParams->addPresentation($presentation->getUrl(), null, $presentation->getFilename());
}

View File

@ -14,7 +14,10 @@ class Crypto {
$this->crypto = $crypto;
}
public function calculateHMAC(string $message): string {
/**
* @return false|string
*/
public function calculateHMAC(string $message) {
if ($message === null) {
throw new \InvalidArgumentException();
}

View File

@ -7,26 +7,6 @@
<code>\OCA\Circles\Model\Member</code>
</UndefinedClass>
</file>
<file src="lib/Controller/RoomController.php">
<NullArgument occurrences="1">
<code>null</code>
</NullArgument>
</file>
<file src="lib/Controller/ServerController.php">
<InvalidArgument occurrences="1">
<code>$success</code>
</InvalidArgument>
</file>
<file src="lib/NoPermissionResponse.php">
<MissingDependency occurrences="1">
<code>Template</code>
</MissingDependency>
</file>
<file src="lib/NotFoundResponse.php">
<MissingDependency occurrences="1">
<code>Template</code>
</MissingDependency>
</file>
<file src="lib/Service/RestrictionService.php">
<InvalidReturnType occurrences="3">
<code>Restriction</code>