<?xml version="1.0" encoding="UTF-8"?>
-<files psalm-version="3.15@de6e7f324f44dde540ebe7ebd4eb481b97c86f30">
+<files psalm-version="3.17.1@8f211792d813e4dc89f04ed372785ce93b902fd1">
<file src="3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php">
<ImplementedReturnTypeMismatch occurrences="1">
<code>string|null</code>
<InvalidScalarArgument occurrences="1">
<code>$e->getCode()</code>
</InvalidScalarArgument>
- <TypeDoesNotContainType occurrences="1">
+ <RedundantCondition occurrences="1">
+ <code>is_array($notification)</code>
+ </RedundantCondition>
+ <TypeDoesNotContainType occurrences="2">
+ <code>!is_array($notification)</code>
<code>is_array($notification)</code>
</TypeDoesNotContainType>
</file>
<code>\Sabre\Uri\split($this->principalUri)</code>
</UndefinedFunction>
</file>
+ <file src="apps/contactsinteraction/lib/Card.php">
+ <InvalidReturnType occurrences="1">
+ <code>?string</code>
+ </InvalidReturnType>
+ </file>
<file src="apps/dav/appinfo/v1/caldav.php">
<TooManyArguments occurrences="1">
<code>new \Sabre\DAV\Auth\Plugin($authBackend, 'ownCloud')</code>
</file>
<file src="apps/dav/appinfo/v1/publicwebdav.php">
<InternalMethod occurrences="2">
- <code>\OC\Files\Filesystem::logWarningWhenAddingStorageWrapper(false)</code>
<code>\OC\Files\Filesystem::logWarningWhenAddingStorageWrapper($previousLog)</code>
+ <code>\OC\Files\Filesystem::logWarningWhenAddingStorageWrapper(false)</code>
</InternalMethod>
<UndefinedGlobalVariable occurrences="1">
<code>$baseuri</code>
<code>setDateTime</code>
</UndefinedMethod>
<UndefinedPropertyFetch occurrences="4">
- <code>$newCalendarData->VEVENT->DTSTART</code>
<code>$existingBirthday->VEVENT->DTSTART</code>
- <code>$newCalendarData->VEVENT->SUMMARY</code>
<code>$existingBirthday->VEVENT->SUMMARY</code>
+ <code>$newCalendarData->VEVENT->DTSTART</code>
+ <code>$newCalendarData->VEVENT->SUMMARY</code>
</UndefinedPropertyFetch>
</file>
<file src="apps/dav/lib/CalDAV/CachedSubscription.php">
</file>
<file src="apps/dav/lib/CalDAV/CalDavBackend.php">
<InvalidArgument occurrences="14">
+ <code>'\OCA\DAV\CalDAV\CalDavBackend::createCachedCalendarObject'</code>
<code>'\OCA\DAV\CalDAV\CalDavBackend::createCalendar'</code>
- <code>'\OCA\DAV\CalDAV\CalDavBackend::updateCalendar'</code>
- <code>'\OCA\DAV\CalDAV\CalDavBackend::deleteCalendar'</code>
<code>'\OCA\DAV\CalDAV\CalDavBackend::createCalendarObject'</code>
- <code>'\OCA\DAV\CalDAV\CalDavBackend::createCachedCalendarObject'</code>
- <code>'\OCA\DAV\CalDAV\CalDavBackend::updateCalendarObject'</code>
- <code>'\OCA\DAV\CalDAV\CalDavBackend::updateCachedCalendarObject'</code>
- <code>'\OCA\DAV\CalDAV\CalDavBackend::deleteCalendarObject'</code>
- <code>'\OCA\DAV\CalDAV\CalDavBackend::deleteCachedCalendarObject'</code>
<code>'\OCA\DAV\CalDAV\CalDavBackend::createSubscription'</code>
- <code>'\OCA\DAV\CalDAV\CalDavBackend::updateSubscription'</code>
+ <code>'\OCA\DAV\CalDAV\CalDavBackend::deleteCachedCalendarObject'</code>
+ <code>'\OCA\DAV\CalDAV\CalDavBackend::deleteCalendar'</code>
+ <code>'\OCA\DAV\CalDAV\CalDavBackend::deleteCalendarObject'</code>
<code>'\OCA\DAV\CalDAV\CalDavBackend::deleteSubscription'</code>
- <code>'\OCA\DAV\CalDAV\CalDavBackend::updateShares'</code>
<code>'\OCA\DAV\CalDAV\CalDavBackend::publishCalendar'</code>
+ <code>'\OCA\DAV\CalDAV\CalDavBackend::updateCachedCalendarObject'</code>
+ <code>'\OCA\DAV\CalDAV\CalDavBackend::updateCalendar'</code>
+ <code>'\OCA\DAV\CalDAV\CalDavBackend::updateCalendarObject'</code>
+ <code>'\OCA\DAV\CalDAV\CalDavBackend::updateShares'</code>
+ <code>'\OCA\DAV\CalDAV\CalDavBackend::updateSubscription'</code>
</InvalidArgument>
<InvalidNullableReturnType occurrences="2">
<code>array</code>
<code>dispatch</code>
<code>dispatch</code>
<code>dispatch</code>
- <code>purgeProperties</code>
<code>dispatch</code>
<code>dispatch</code>
<code>dispatch</code>
<code>dispatch</code>
<code>dispatch</code>
+ <code>purgeProperties</code>
</TooManyArguments>
<UndefinedFunction occurrences="4">
+ <code>Uri\split($principalUri)</code>
<code>Uri\split($row['principaluri'])</code>
<code>Uri\split($row['principaluri'])</code>
<code>Uri\split($row['principaluri'])</code>
- <code>Uri\split($principalUri)</code>
</UndefinedFunction>
</file>
<file src="apps/dav/lib/CalDAV/Calendar.php">
<code>\Sabre\CalDAv\Notifications\Collection</code>
</InvalidClass>
<InvalidReturnStatement occurrences="5">
+ <code>$calendarPlugin->getCalendarInCalendarHome($this->principalInfo['uri'], $calendarUri)</code>
<code>new Inbox($this->caldavBackend, $this->principalInfo['uri'])</code>
<code>new Outbox($this->config, $this->principalInfo['uri'])</code>
- <code>new \Sabre\CalDAv\Notifications\Collection($this->caldavBackend, $this->principalInfo['uri'])</code>
<code>new Subscription($this->caldavBackend, $subscription)</code>
- <code>$calendarPlugin->getCalendarInCalendarHome($this->principalInfo['uri'], $calendarUri)</code>
+ <code>new \Sabre\CalDAv\Notifications\Collection($this->caldavBackend, $this->principalInfo['uri'])</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="1">
<code>getChild</code>
<code>$paths</code>
</MoreSpecificImplementedParamType>
</file>
+ <file src="apps/dav/lib/CalDAV/Publishing/PublishPlugin.php">
+ <InvalidOperand occurrences="2">
+ <code>$canPublish</code>
+ <code>$canShare</code>
+ </InvalidOperand>
+ </file>
<file src="apps/dav/lib/CalDAV/Reminder/NotificationProvider/AbstractProvider.php">
<UndefinedMethod occurrences="3">
- <code>isFloating</code>
<code>hasTime</code>
<code>isFloating</code>
+ <code>isFloating</code>
</UndefinedMethod>
</file>
<file src="apps/dav/lib/CalDAV/Reminder/NotificationProvider/EmailProvider.php">
<FalsableReturnStatement occurrences="4">
- <code>$l10n->l('weekdayName', $dt, ['width' => 'abbreviated'])</code>
<code>$l10n->l('date', $dt, ['width' => 'medium'])</code>
<code>$l10n->l('datetime', $dt, ['width' => 'medium|short'])</code>
<code>$l10n->l('time', $dt, ['width' => 'short'])</code>
+ <code>$l10n->l('weekdayName', $dt, ['width' => 'abbreviated'])</code>
</FalsableReturnStatement>
<InvalidReturnStatement occurrences="5">
- <code>[$organizerEMail => $name]</code>
- <code>$l10n->l('weekdayName', $dt, ['width' => 'abbreviated'])</code>
<code>$l10n->l('date', $dt, ['width' => 'medium'])</code>
<code>$l10n->l('datetime', $dt, ['width' => 'medium|short'])</code>
<code>$l10n->l('time', $dt, ['width' => 'short'])</code>
+ <code>$l10n->l('weekdayName', $dt, ['width' => 'abbreviated'])</code>
+ <code>[$organizerEMail => $name]</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="5">
<code>array|null</code>
</InvalidReturnType>
<UndefinedMethod occurrences="3">
<code>getDateTime</code>
- <code>isFloating</code>
<code>getDateTime</code>
+ <code>isFloating</code>
</UndefinedMethod>
</file>
<file src="apps/dav/lib/CalDAV/Reminder/Notifier.php">
<FalsableReturnStatement occurrences="4">
- <code>$this->l10n->l('weekdayName', $dt, ['width' => 'abbreviated'])</code>
<code>$this->l10n->l('date', $dt, ['width' => 'medium'])</code>
<code>$this->l10n->l('datetime', $dt, ['width' => 'medium|short'])</code>
<code>$this->l10n->l('time', $dt, ['width' => 'short'])</code>
+ <code>$this->l10n->l('weekdayName', $dt, ['width' => 'abbreviated'])</code>
</FalsableReturnStatement>
<InvalidReturnStatement occurrences="4">
- <code>$this->l10n->l('weekdayName', $dt, ['width' => 'abbreviated'])</code>
<code>$this->l10n->l('date', $dt, ['width' => 'medium'])</code>
<code>$this->l10n->l('datetime', $dt, ['width' => 'medium|short'])</code>
<code>$this->l10n->l('time', $dt, ['width' => 'short'])</code>
+ <code>$this->l10n->l('weekdayName', $dt, ['width' => 'abbreviated'])</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="4">
<code>string</code>
</UndefinedFunction>
</file>
<file src="apps/dav/lib/CalDAV/Schedule/IMipPlugin.php">
- <ImplicitToStringCast occurrences="2"/>
+ <ImplicitToStringCast occurrences="2">
+ <code>$vevent->LOCATION</code>
+ <code>$vevent->SUMMARY</code>
+ </ImplicitToStringCast>
<InvalidNullableReturnType occurrences="1">
<code>string</code>
</InvalidNullableReturnType>
<InvalidScalarArgument occurrences="2">
- <code>[$sender => $senderName]</code>
<code>[$recipient => $recipientName]</code>
+ <code>[$sender => $senderName]</code>
</InvalidScalarArgument>
<NullableReturnStatement occurrences="1">
<code>$lang->getValue()</code>
</NullableReturnStatement>
<UndefinedMethod occurrences="15">
- <code>isFloating</code>
<code>getDateTime</code>
- <code>setDateTime</code>
- <code>hasTime</code>
- <code>isFloating</code>
<code>getDateTime</code>
- <code>setDateTime</code>
<code>getDateTime</code>
<code>getDateTime</code>
<code>getDateTime</code>
- <code>hasTime</code>
<code>getDateTime</code>
<code>getDateTime</code>
<code>getDateTime</code>
+ <code>hasTime</code>
+ <code>hasTime</code>
+ <code>isFloating</code>
<code>isFloating</code>
+ <code>isFloating</code>
+ <code>setDateTime</code>
+ <code>setDateTime</code>
</UndefinedMethod>
<UndefinedPropertyFetch occurrences="1">
<code>$iTipMessage->message->VEVENT->SUMMARY</code>
<code>split($principalUrl)</code>
</UndefinedFunction>
<UndefinedInterfaceMethod occurrences="2">
- <code>getChildren</code>
<code>get</code>
+ <code>getChildren</code>
</UndefinedInterfaceMethod>
<UndefinedMethod occurrences="5">
<code>getDateTime</code>
- <code>isFloating</code>
<code>hasTime</code>
<code>isFloating</code>
+ <code>isFloating</code>
<code>principalSearch</code>
</UndefinedMethod>
</file>
</InvalidReturnType>
</file>
<file src="apps/dav/lib/CalDAV/Search/Xml/Request/CalendarSearchReport.php">
- <TypeDoesNotContainType occurrences="3">
+ <TypeDoesNotContainType occurrences="6">
+ <code>!is_array($newProps['filters']['comps'])</code>
+ <code>!is_array($newProps['filters']['params'])</code>
+ <code>!is_array($newProps['filters']['props'])</code>
<code>is_array($newProps['filters']['comps'])</code>
- <code>is_array($newProps['filters']['props'])</code>
<code>is_array($newProps['filters']['params'])</code>
+ <code>is_array($newProps['filters']['props'])</code>
</TypeDoesNotContainType>
</file>
<file src="apps/dav/lib/CalDAV/WebcalCaching/RefreshWebcalService.php">
</FalsableReturnStatement>
<InvalidArgument occurrences="3">
<code>'\OCA\DAV\CardDAV\CardDavBackend::createCard'</code>
- <code>'\OCA\DAV\CardDAV\CardDavBackend::updateCard'</code>
<code>'\OCA\DAV\CardDAV\CardDavBackend::deleteCard'</code>
+ <code>'\OCA\DAV\CardDAV\CardDavBackend::updateCard'</code>
</InvalidArgument>
<InvalidNullableReturnType occurrences="1">
<code>array</code>
<code>$addressBooks[$row['id']][$readOnlyPropertyName] === 0</code>
</TypeDoesNotContainType>
<UndefinedFunction occurrences="2">
- <code>\Sabre\Uri\split($row['principaluri'])</code>
<code>\Sabre\Uri\split($principalUri)</code>
+ <code>\Sabre\Uri\split($row['principaluri'])</code>
</UndefinedFunction>
</file>
<file src="apps/dav/lib/CardDAV/MultiGetExportPlugin.php">
</file>
<file src="apps/dav/lib/CardDAV/SystemAddressbook.php">
<RedundantCondition occurrences="1">
- <code>$shareEnumeration && $restrictShareEnumeration</code>
+ <code>$shareEnumeration</code>
</RedundantCondition>
</file>
<file src="apps/dav/lib/CardDAV/UserAddressBooks.php">
</InvalidArgument>
</file>
<file src="apps/dav/lib/Comments/EntityTypeCollection.php">
- <TypeDoesNotContainType occurrences="1">
+ <RedundantCondition occurrences="1">
+ <code>is_string($name)</code>
+ </RedundantCondition>
+ <TypeDoesNotContainType occurrences="2">
+ <code>!is_string($name)</code>
<code>is_string($name)</code>
</TypeDoesNotContainType>
</file>
</file>
<file src="apps/dav/lib/Connector/Sabre/FilesPlugin.php">
<UndefinedFunction occurrences="3">
- <code>\Sabre\Uri\split($source)</code>
<code>\Sabre\Uri\split($destination)</code>
<code>\Sabre\Uri\split($filePath)</code>
+ <code>\Sabre\Uri\split($source)</code>
</UndefinedFunction>
</file>
<file src="apps/dav/lib/Connector/Sabre/FilesReportPlugin.php">
<code>\OCA\Circles\Api\v1\Circles</code>
</UndefinedClass>
<UndefinedInterfaceMethod occurrences="2">
- <code>getPath</code>
<code>getById</code>
+ <code>getPath</code>
</UndefinedInterfaceMethod>
</file>
<file src="apps/dav/lib/Connector/Sabre/Node.php">
<code>$this->info->getId()</code>
</NullableReturnStatement>
<UndefinedFunction occurrences="2">
- <code>\Sabre\Uri\split($this->path)</code>
<code>\Sabre\Uri\split($name)</code>
+ <code>\Sabre\Uri\split($this->path)</code>
</UndefinedFunction>
</file>
<file src="apps/dav/lib/Connector/Sabre/ObjectTree.php">
<UndefinedFunction occurrences="3">
- <code>\Sabre\Uri\split($path)</code>
<code>\Sabre\Uri\split($destinationPath)</code>
<code>\Sabre\Uri\split($destinationPath)</code>
+ <code>\Sabre\Uri\split($path)</code>
</UndefinedFunction>
</file>
<file src="apps/dav/lib/Connector/Sabre/Principal.php">
<code>string[]</code>
</InvalidReturnType>
<NullableReturnStatement occurrences="9">
- <code>null</code>
<code>$this->circleToPrincipal($name)</code>
<code>null</code>
<code>null</code>
<code>null</code>
<code>null</code>
<code>null</code>
+ <code>null</code>
</NullableReturnStatement>
<UndefinedClass occurrences="2">
<code>\OCA\Circles\Api\v1\Circles</code>
<code>\Sabre\Uri\split($sabreNode->getPath())</code>
</UndefinedFunction>
<UndefinedInterfaceMethod occurrences="5">
+ <code>getId</code>
<code>getId</code>
<code>getId</code>
<code>getPath</code>
<code>getPath</code>
- <code>getId</code>
</UndefinedInterfaceMethod>
<UndefinedPropertyAssignment occurrences="1">
<code>$server->xml->namespacesMap</code>
</file>
<file src="apps/dav/lib/Files/FileSearchBackend.php">
<InvalidArgument occurrences="2">
- <code>$operator->arguments</code>
<code>$argument</code>
+ <code>$operator->arguments</code>
</InvalidArgument>
<InvalidReturnStatement occurrences="1">
<code>$value</code>
<UndefinedMethod occurrences="9">
<code>getDateTime</code>
<code>getDateTime</code>
- <code>isFloating</code>
<code>getDateTime</code>
- <code>setDateTime</code>
+ <code>getDateTime</code>
<code>hasTime</code>
<code>isFloating</code>
- <code>getDateTime</code>
+ <code>isFloating</code>
+ <code>setDateTime</code>
<code>setDateTime</code>
</UndefinedMethod>
</file>
</file>
<file src="apps/dav/lib/Server.php">
<InvalidArgument occurrences="2">
- <code>'OCA\DAV\Connector\Sabre::authInit'</code>
<code>'OCA\DAV\Connector\Sabre::addPlugin'</code>
+ <code>'OCA\DAV\Connector\Sabre::authInit'</code>
</InvalidArgument>
<TooManyArguments occurrences="3">
<code>dispatch</code>
<code>$members</code>
</MoreSpecificImplementedParamType>
<UndefinedFunction occurrences="9">
+ <code>\Sabre\Uri\split($member)</code>
<code>\Sabre\Uri\split($principal)</code>
<code>\Sabre\Uri\split($principal)</code>
<code>\Sabre\Uri\split($principalUri)</code>
- <code>\Sabre\Uri\split($member)</code>
<code>\Sabre\Uri\split($principalUri)</code>
- <code>\Sabre\Uri\split($realPrincipalUri)</code>
<code>\Sabre\Uri\split($principalUri)</code>
<code>\Sabre\Uri\split($principalUri)</code>
<code>\Sabre\Uri\split($principalUri)</code>
+ <code>\Sabre\Uri\split($realPrincipalUri)</code>
</UndefinedFunction>
</file>
<file src="apps/dav/lib/Upload/AssemblyStream.php">
</UndefinedFunction>
</file>
<file src="apps/encryption/lib/Command/ScanLegacyFormat.php">
+ <InvalidOperand occurrences="1">
+ <code>$result</code>
+ </InvalidOperand>
<RedundantCondition occurrences="1">
<code>$result</code>
</RedundantCondition>
</file>
<file src="apps/encryption/lib/Crypto/Crypt.php">
<RedundantCondition occurrences="1">
- <code>$userSession && $userSession->isLoggedIn()</code>
+ <code>$userSession</code>
</RedundantCondition>
</file>
<file src="apps/encryption/lib/Crypto/EncryptAll.php">
<code>[$to => $recipientDisplayName]</code>
</InvalidArgument>
<UndefinedInterfaceMethod occurrences="3">
- <code>setSubject</code>
<code>setHtmlBody</code>
<code>setPlainBody</code>
+ <code>setSubject</code>
</UndefinedInterfaceMethod>
</file>
<file src="apps/encryption/lib/Crypto/Encryption.php">
<FalsableReturnStatement occurrences="1">
<code>$result</code>
</FalsableReturnStatement>
- <ImplementedParamTypeMismatch occurrences="3">
- <code>$position</code>
+ <ImplementedParamTypeMismatch occurrences="2">
<code>$position</code>
<code>$position</code>
</ImplementedParamTypeMismatch>
<code>throw $exception;</code>
</InvalidThrow>
<RedundantCondition occurrences="2">
- <code>$userSession && $userSession->isLoggedIn()</code>
- <code>$encryptedFileKey && $shareKey</code>
+ <code>$encryptedFileKey</code>
+ <code>$userSession</code>
</RedundantCondition>
</file>
<file src="apps/encryption/lib/Recovery.php">
<InvalidScalarArgument occurrences="3">
- <code>1</code>
<code>0</code>
<code>0</code>
+ <code>1</code>
</InvalidScalarArgument>
<RedundantCondition occurrences="1">
- <code>$userSession && $userSession->isLoggedIn()</code>
+ <code>$userSession</code>
</RedundantCondition>
</file>
<file src="apps/encryption/lib/Session.php">
</file>
<file src="apps/encryption/lib/Users/Setup.php">
<RedundantCondition occurrences="1">
- <code>$userSession && $userSession->isLoggedIn()</code>
+ <code>$userSession</code>
</RedundantCondition>
</file>
<file src="apps/encryption/lib/Util.php">
<RedundantCondition occurrences="1">
- <code>$userSession && $userSession->isLoggedIn()</code>
+ <code>$userSession</code>
</RedundantCondition>
</file>
<file src="apps/federatedfilesharing/lib/BackgroundJob/RetryJob.php">
</file>
<file src="apps/federatedfilesharing/lib/Controller/RequestHandlerController.php">
<InvalidScalarArgument occurrences="7">
- <code>$remoteId</code>
<code>$id</code>
<code>$id</code>
<code>$id</code>
<code>$id</code>
<code>$id</code>
<code>$id</code>
+ <code>$remoteId</code>
</InvalidScalarArgument>
- <RedundantCondition occurrences="1"/>
<TypeDoesNotContainNull occurrences="2">
<code>$permission === null</code>
<code>$remoteId === null</code>
</TypeDoesNotContainNull>
+ <TypeDoesNotContainType occurrences="1"/>
</file>
<file src="apps/federatedfilesharing/lib/FederatedShareProvider.php">
<InvalidArrayAccess occurrences="2">
- <code>$token</code>
<code>$remoteId</code>
+ <code>$token</code>
</InvalidArrayAccess>
<InvalidArrayOffset occurrences="1">
<code>list($token, $remoteId)</code>
<code>getSharesInFolder</code>
</InvalidReturnType>
<InvalidScalarArgument occurrences="6">
+ <code>$share->getId()</code>
<code>$shareId</code>
<code>$shareId</code>
<code>$shareId</code>
<code>$shareId</code>
- <code>$share->getId()</code>
<code>(int)$data['id']</code>
</InvalidScalarArgument>
</file>
<code>string</code>
</InvalidReturnType>
<InvalidScalarArgument occurrences="7">
- <code>$remoteId</code>
<code>$id</code>
<code>$id</code>
<code>$id</code>
- <code>(int)$share['id']</code>
<code>$id</code>
<code>$id</code>
+ <code>$remoteId</code>
+ <code>(int)$share['id']</code>
</InvalidScalarArgument>
</file>
<file src="apps/federatedfilesharing/lib/Settings/Personal.php">
</file>
<file src="apps/files/lib/BackgroundJob/ScanFiles.php">
<InvalidScalarArgument occurrences="3">
- <code>0</code>
<code>$offset</code>
<code>$offset</code>
+ <code>0</code>
</InvalidScalarArgument>
</file>
<file src="apps/files/lib/Command/Scan.php">
<code>$templateId</code>
</InvalidArgument>
<UndefinedInterfaceMethod occurrences="2">
- <code>open</code>
<code>getTemplates</code>
+ <code>open</code>
</UndefinedInterfaceMethod>
</file>
<file src="apps/files/lib/Controller/ViewController.php">
<code>$mountId</code>
</InvalidArgument>
<InvalidScalarArgument occurrences="2">
- <code>$status</code>
<code>$e->getCode()</code>
+ <code>$status</code>
</InvalidScalarArgument>
</file>
<file src="apps/files_external/lib/Config/ConfigAdapter.php">
</file>
<file src="apps/files_external/lib/Controller/StoragesController.php">
<InvalidScalarArgument occurrences="4">
+ <code>$e->getCode()</code>
+ <code>$status</code>
<code>$this->service->getVisibilityType()</code>
<code>$this->service->getVisibilityType()</code>
- <code>$status</code>
- <code>$e->getCode()</code>
</InvalidScalarArgument>
</file>
<file src="apps/files_external/lib/Controller/UserGlobalStoragesController.php">
</file>
<file src="apps/files_external/lib/Lib/IdentifierTrait.php">
<UndefinedDocblockClass occurrences="2">
- <code>IdentifierTrait</code>
<code>$this->deprecateTo</code>
+ <code>IdentifierTrait</code>
</UndefinedDocblockClass>
</file>
<file src="apps/files_external/lib/Lib/LegacyDependencyCheckPolyfill.php">
<code>filetype</code>
<code>fopen</code>
</InvalidNullableReturnType>
- <UndefinedInterfaceMethod occurrences="1">
- <code>$content</code>
- </UndefinedInterfaceMethod>
</file>
<file src="apps/files_external/lib/Migration/DummyUserSession.php">
<InvalidReturnType occurrences="1">
</file>
<file src="apps/files_external/lib/MountConfig.php">
<InternalMethod occurrences="4">
- <code>setIV</code>
+ <code>decrypt</code>
<code>encrypt</code>
<code>setIV</code>
- <code>decrypt</code>
+ <code>setIV</code>
</InternalMethod>
<InvalidNullableReturnType occurrences="1">
<code>string</code>
<NullArgument occurrences="1">
<code>null</code>
</NullArgument>
- <UndefinedInterfaceMethod occurrences="9">
- <code>$entry</code>
- <code>$entry</code>
- <code>$entry</code>
- <code>$entry</code>
- <code>$entry</code>
- <code>$entry</code>
- <code>$entry</code>
- <code>$entry</code>
- <code>$entry</code>
- </UndefinedInterfaceMethod>
</file>
<file src="apps/files_sharing/lib/Capabilities.php">
<InvalidScalarArgument occurrences="1">
</file>
<file src="apps/files_sharing/lib/Controller/ExternalSharesController.php">
<InvalidArgument occurrences="2">
- <code>'https'</code>
<code>'http'</code>
+ <code>'https'</code>
</InvalidArgument>
</file>
<file src="apps/files_sharing/lib/Controller/ShareAPIController.php">
<InvalidScalarArgument occurrences="3">
- <code>Constants::PERMISSION_ALL</code>
<code>$code</code>
<code>$code</code>
+ <code>Constants::PERMISSION_ALL</code>
</InvalidScalarArgument>
<NullArgument occurrences="1">
<code>null</code>
</file>
<file src="apps/files_sharing/lib/Controller/ShareController.php">
<InvalidArgument occurrences="2">
- <code>'Share is read-only'</code>
<code>$files_list</code>
+ <code>'Share is read-only'</code>
</InvalidArgument>
<InvalidScalarArgument occurrences="3">
+ <code>$freeSpace</code>
<code>$maxUploadFilesize</code>
<code>$maxUploadFilesize</code>
- <code>$freeSpace</code>
</InvalidScalarArgument>
<NullArgument occurrences="1">
<code>null</code>
<code>null</code>
</NullArgument>
</file>
- <file src="apps/files_sharing/lib/External/Cache.php">
- <UndefinedInterfaceMethod occurrences="4">
- <code>$result</code>
- <code>$result</code>
- <code>$result</code>
- <code>$file</code>
- </UndefinedInterfaceMethod>
- </file>
<file src="apps/files_sharing/lib/External/Manager.php">
<InvalidScalarArgument occurrences="1">
<code>(int) $remoteShare</code>
</file>
<file src="apps/files_sharing/lib/External/Scanner.php">
<InvalidNullableReturnType occurrences="2">
- <code>scan</code>
<code>array</code>
+ <code>scan</code>
</InvalidNullableReturnType>
<InvalidScalarArgument occurrences="1">
<code>$recursive</code>
<MoreSpecificImplementedParamType occurrences="1">
<code>$cacheData</code>
</MoreSpecificImplementedParamType>
- <UndefinedInterfaceMethod occurrences="2">
- <code>$existingChild</code>
- <code>$existingChild</code>
- </UndefinedInterfaceMethod>
</file>
<file src="apps/files_sharing/lib/External/Storage.php">
<InvalidReturnStatement occurrences="1">
</file>
<file src="apps/files_sharing/lib/SharedStorage.php">
<FalsableReturnStatement occurrences="5">
+ <code>$this->nonMaskedStorage->fopen($this->getUnjailedPath($path), $mode)</code>
<code>$this->sourceRootInfo</code>
<code>false</code>
<code>false</code>
<code>false</code>
- <code>$this->nonMaskedStorage->fopen($this->getUnjailedPath($path), $mode)</code>
- <code>false</code>
</FalsableReturnStatement>
<InvalidNullableReturnType occurrences="1">
<code>ICacheEntry</code>
</InvalidNullableReturnType>
<InvalidReturnStatement occurrences="5">
<code>$this->getPermissions($path) & \OCP\Constants::PERMISSION_CREATE</code>
- <code>$this->getPermissions($path) & \OCP\Constants::PERMISSION_UPDATE</code>
<code>$this->getPermissions($path) & \OCP\Constants::PERMISSION_DELETE</code>
<code>$this->getPermissions($path) & \OCP\Constants::PERMISSION_SHARE</code>
+ <code>$this->getPermissions($path) & \OCP\Constants::PERMISSION_UPDATE</code>
<code>new FailedCache()</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="4">
<code>isCreatable</code>
- <code>isUpdatable</code>
<code>isDeletable</code>
<code>isSharable</code>
+ <code>isUpdatable</code>
</InvalidReturnType>
<NullableReturnStatement occurrences="1">
<code>$this->sourceRootInfo</code>
</InvalidArgument>
<TooManyArguments occurrences="1">
<code>dispatch</code>
- <code>dispatch</code>
- <code>dispatch</code>
- <code>dispatch</code>
</TooManyArguments>
</file>
<file src="apps/files_trashbin/lib/Sabre/AbstractTrash.php">
</file>
<file src="apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php">
<InvalidArrayOffset occurrences="10">
+ <code>$publicData[IAccountManager::PROPERTY_ADDRESS]['value']</code>
<code>$publicData[IAccountManager::PROPERTY_DISPLAYNAME]['value']</code>
<code>$publicData[IAccountManager::PROPERTY_EMAIL]['value']</code>
- <code>$publicData[IAccountManager::PROPERTY_ADDRESS]['value']</code>
- <code>$publicData[IAccountManager::PROPERTY_WEBSITE]['value']</code>
- <code>$publicData[IAccountManager::PROPERTY_TWITTER]['value']</code>
<code>$publicData[IAccountManager::PROPERTY_PHONE]['value']</code>
<code>$publicData[IAccountManager::PROPERTY_TWITTER]['signature']</code>
+ <code>$publicData[IAccountManager::PROPERTY_TWITTER]['value']</code>
+ <code>$publicData[IAccountManager::PROPERTY_TWITTER]['verified']</code>
<code>$publicData[IAccountManager::PROPERTY_WEBSITE]['signature']</code>
+ <code>$publicData[IAccountManager::PROPERTY_WEBSITE]['value']</code>
<code>$publicData[IAccountManager::PROPERTY_WEBSITE]['verified']</code>
- <code>$publicData[IAccountManager::PROPERTY_TWITTER]['verified']</code>
</InvalidArrayOffset>
<InvalidScalarArgument occurrences="1">
<code>$this->retries + 1</code>
</file>
<file src="apps/oauth2/lib/Controller/SettingsController.php">
<UndefinedMagicMethod occurrences="4">
+ <code>getClientIdentifier</code>
<code>getName</code>
<code>getRedirectUri</code>
- <code>getClientIdentifier</code>
<code>getSecret</code>
</UndefinedMagicMethod>
</file>
<InvalidScalarArgument occurrences="1">
<code>$quota</code>
</InvalidScalarArgument>
- <RedundantCondition occurrences="1">
- <code>$groupid === null || trim($groupid) === ''</code>
- </RedundantCondition>
<TypeDoesNotContainNull occurrences="1">
<code>$groupid === null</code>
</TypeDoesNotContainNull>
+ <TypeDoesNotContainType occurrences="1">
+ <code>$groupid === null</code>
+ </TypeDoesNotContainType>
<UndefinedInterfaceMethod occurrences="1">
<code>getSubAdmin</code>
</UndefinedInterfaceMethod>
</file>
<file src="apps/settings/lib/Controller/CheckSetupController.php">
<InvalidArgument occurrences="2">
- <code>IDBConnection::CHECK_MISSING_INDEXES_EVENT</code>
<code>IDBConnection::CHECK_MISSING_COLUMNS_EVENT</code>
+ <code>IDBConnection::CHECK_MISSING_INDEXES_EVENT</code>
</InvalidArgument>
<InvalidOperand occurrences="1">
<code>$lastCronRun</code>
</InvalidOperand>
<InvalidReturnStatement occurrences="2">
- <code>new DataDisplayResponse('Integrity checker has been disabled. Integrity cannot be verified.')</code>
<code>$response</code>
+ <code>new DataDisplayResponse('Integrity checker has been disabled. Integrity cannot be verified.')</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="1">
<code>DataResponse</code>
</InvalidReturnType>
<InvalidScalarArgument occurrences="2">
- <code>0</code>
<code>$lastCronRun</code>
+ <code>0</code>
</InvalidScalarArgument>
<TooManyArguments occurrences="2">
<code>dispatch</code>
</file>
<file src="apps/settings/lib/Controller/MailSettingsController.php">
<InvalidArgument occurrences="3">
- <code>$this->l10n->t('Invalid SMTP password.')</code>
<code>$this->l10n->t('A problem occurred while sending the email. Please revise your settings. (Error: %s)', [$e->getMessage()])</code>
+ <code>$this->l10n->t('Invalid SMTP password.')</code>
<code>$this->l10n->t('You need to set your user email before being able to send test emails.')</code>
</InvalidArgument>
</file>
<code>getSharesInFolder</code>
</InvalidReturnType>
<InvalidScalarArgument occurrences="4">
+ <code>$share->getId()</code>
<code>$shareId</code>
<code>$shareId</code>
- <code>$share->getId()</code>
<code>(int)$data['id']</code>
</InvalidScalarArgument>
</file>
</file>
<file src="apps/testing/lib/Controller/LockingController.php">
<InvalidScalarArgument occurrences="5">
- <code>$type</code>
- <code>$type</code>
<code>$this->config->getAppValue('testing', $lock)</code>
<code>$this->config->getAppValue('testing', $lock)</code>
<code>$this->config->getAppValue('testing', $lock)</code>
+ <code>$type</code>
+ <code>$type</code>
</InvalidScalarArgument>
</file>
<file src="apps/theming/lib/Controller/IconController.php">
</file>
<file src="apps/theming/lib/IconBuilder.php">
<InvalidScalarArgument occurrences="2">
- <code>$offset_w</code>
<code>$offset_h</code>
+ <code>$offset_w</code>
</InvalidScalarArgument>
</file>
<file src="apps/theming/lib/ImageManager.php">
<InvalidReturnType occurrences="1">
<code>getSlogan</code>
</InvalidReturnType>
- <InvalidScalarArgument occurrences="1"/>
+ <InvalidScalarArgument occurrences="1">
+ <code>(int)$cacheBusterKey + 1</code>
+ </InvalidScalarArgument>
<NullArgument occurrences="2">
<code>null</code>
<code>null</code>
<code>$newToken</code>
</InvalidArgument>
<InvalidScalarArgument occurrences="2">
- <code>0</code>
<code>$this->timeFactory->getTime()</code>
+ <code>0</code>
</InvalidScalarArgument>
</file>
<file src="apps/updatenotification/lib/Notification/BackgroundJob.php">
<code>$this->users</code>
</InvalidPropertyAssignmentValue>
<InvalidScalarArgument occurrences="3">
- <code>0</code>
<code>$errors</code>
<code>0</code>
+ <code>0</code>
</InvalidScalarArgument>
</file>
<file src="apps/updatenotification/lib/Notification/Notifier.php">
</InvalidScalarArgument>
</file>
<file src="apps/user_ldap/ajax/getNewServerConfigPrefix.php">
- <InvalidScalarArgument occurrences="1"/>
+ <InvalidScalarArgument occurrences="1">
+ <code>$ln + 1</code>
+ </InvalidScalarArgument>
</file>
<file src="apps/user_ldap/appinfo/routes.php">
<InvalidScope occurrences="1">
<code>$record</code>
</InvalidArgument>
<InvalidReturnStatement occurrences="2">
- <code>$values</code>
<code>$uuid</code>
+ <code>$values</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="1">
<code>string[]</code>
</InvalidReturnType>
<InvalidScalarArgument occurrences="13">
- <code>[$attr => $result['values']]</code>
+ <code>$e->getCode()</code>
+ <code>$filter</code>
+ <code>$filter</code>
<code>$key</code>
<code>$key</code>
- <code>$e->getCode()</code>
<code>$nameAttribute</code>
- <code>$filter</code>
+ <code>$this->connection->ldapGroupDisplayName</code>
<code>$this->connection->ldapLoginFilter</code>
<code>$this->connection->ldapLoginFilter</code>
<code>$this->connection->ldapUserDisplayName</code>
<code>$this->connection->ldapUserDisplayName</code>
- <code>$this->connection->ldapGroupDisplayName</code>
- <code>$filter</code>
+ <code>[$attr => $result['values']]</code>
</InvalidScalarArgument>
<NullArgument occurrences="1">
<code>$cookie</code>
</NullArgument>
<RedundantCondition occurrences="5">
+ <code>!is_null($limit)</code>
<code>!isset($ldapName[0]) && empty($ldapName[0])</code>
- <code>is_null($limit)</code>
- <code>!is_null($limit) && (int)$this->connection->ldapPagingSize !== 0</code>
+ <code>$limit === 0</code>
<code>is_array($result)</code>
- <code>$limit === 0 && !empty($this->lastCookie)</code>
+ <code>is_null($limit)</code>
</RedundantCondition>
<TypeDoesNotContainNull occurrences="2">
- <code>is_null($findings)</code>
<code>!$attribute === null</code>
+ <code>is_null($findings)</code>
</TypeDoesNotContainNull>
<TypeDoesNotContainType occurrences="3">
- <code>is_array($attr)</code>
<code>!is_null($attr) && !is_array($attr)</code>
+ <code>is_array($attr)</code>
<code>isset($ldapRecord[$this->connection->$uuidAttr])</code>
</TypeDoesNotContainType>
<UndefinedVariable occurrences="1">
<file src="apps/user_ldap/lib/Group_LDAP.php">
<InvalidArgument occurrences="3">
<code>$this->cachedGroupMembers[$gid]</code>
- <code>'dn'</code>
<code>$this->cachedGroupsByMember[$uid]</code>
+ <code>'dn'</code>
</InvalidArgument>
<InvalidPropertyAssignmentValue occurrences="6">
+ <code>$this->cachedGroupMembers</code>
+ <code>$this->cachedGroupsByMember</code>
+ <code>$this->cachedNestedGroups</code>
<code>new CappedMemoryCache()</code>
<code>new CappedMemoryCache()</code>
<code>new CappedMemoryCache()</code>
- <code>$this->cachedGroupMembers</code>
- <code>$this->cachedNestedGroups</code>
- <code>$this->cachedGroupsByMember</code>
</InvalidPropertyAssignmentValue>
<InvalidReturnStatement occurrences="1">
<code>$groupName</code>
</InvalidReturnType>
<InvalidScalarArgument occurrences="26">
<code>$gAssoc</code>
- <code>$this->access->connection->ldapLoginFilter</code>
- <code>$this->access->connection->ldapDynamicGroupMemberURL</code>
- <code>$this->access->connection->ldapGroupFilter</code>
- <code>$this->access->connection->ldapGroupMemberAssocAttr</code>
- <code>$this->access->connection->ldapGidNumber</code>
<code>$groupID</code>
<code>$groupID</code>
<code>$this->access->connection->ldapDynamicGroupMemberURL</code>
+ <code>$this->access->connection->ldapDynamicGroupMemberURL</code>
+ <code>$this->access->connection->ldapGidNumber</code>
+ <code>$this->access->connection->ldapGroupDisplayName</code>
+ <code>$this->access->connection->ldapGroupFilter</code>
+ <code>$this->access->connection->ldapGroupFilter</code>
<code>$this->access->connection->ldapGroupFilter</code>
- <code>$this->access->connection->ldapUserDisplayName</code>
<code>$this->access->connection->ldapGroupMemberAssocAttr</code>
- <code>[strtolower($this->access->connection->ldapGroupMemberAssocAttr), $this->access->connection->ldapGroupDisplayName, 'dn']</code>
+ <code>$this->access->connection->ldapGroupMemberAssocAttr</code>
+ <code>$this->access->connection->ldapLoginFilter</code>
<code>$this->access->connection->ldapLoginFilter</code>
- <code>$this->access->connection->ldapUserDisplayName</code>
<code>$this->access->connection->ldapLoginFilter</code>
<code>$this->access->connection->ldapUserDisplayName</code>
+ <code>$this->access->connection->ldapUserDisplayName</code>
+ <code>$this->access->connection->ldapUserDisplayName</code>
<code>[$this->access->connection->ldapGroupDisplayName, 'dn']</code>
- <code>$this->access->connection->ldapGroupFilter</code>
- <code>$this->access->connection->ldapGroupDisplayName</code>
+ <code>[strtolower($this->access->connection->ldapGroupMemberAssocAttr), $this->access->connection->ldapGroupDisplayName, 'dn']</code>
</InvalidScalarArgument>
- <RedundantCondition occurrences="4">
- <code>!is_array($members) || count($members) === 0</code>
- <code>is_array($members)</code>
- <code>is_array($list)</code>
+ <RedundantCondition occurrences="3">
<code>is_array($groupDNs)</code>
+ <code>is_array($list)</code>
+ <code>is_array($members)</code>
</RedundantCondition>
- <TypeDoesNotContainType occurrences="1">
+ <TypeDoesNotContainType occurrences="2">
+ <code>!is_array($members)</code>
<code>is_array($members)</code>
</TypeDoesNotContainType>
</file>
</file>
<file src="apps/user_ldap/lib/Jobs/CleanUp.php">
<InvalidScalarArgument occurrences="3">
- <code>0</code>
<code>$newOffset</code>
+ <code>0</code>
<code>50</code>
</InvalidScalarArgument>
</file>
<file src="apps/user_ldap/lib/Jobs/Sync.php">
<InvalidOperand occurrences="2">
- <code>$lastChange</code>
<code>$i</code>
+ <code>$lastChange</code>
</InvalidOperand>
<InvalidScalarArgument occurrences="5">
- <code>self::MIN_INTERVAL</code>
<code>$interval</code>
<code>0</code>
<code>0</code>
+ <code>self::MIN_INTERVAL</code>
</InvalidScalarArgument>
<MoreSpecificImplementedParamType occurrences="1">
<code>$argument</code>
</file>
<file src="apps/user_ldap/lib/LDAP.php">
<ImplementedParamTypeMismatch occurrences="22">
+ <code>$baseDN</code>
+ <code>$baseDN</code>
<code>$link</code>
<code>$link</code>
- <code>$result</code>
<code>$link</code>
<code>$link</code>
<code>$link</code>
- <code>$result</code>
<code>$link</code>
- <code>$result</code>
<code>$link</code>
- <code>$result</code>
<code>$link</code>
- <code>$result</code>
<code>$link</code>
<code>$link</code>
- <code>$baseDN</code>
<code>$link</code>
- <code>$baseDN</code>
<code>$link</code>
<code>$link</code>
<code>$link</code>
<code>$resource</code>
+ <code>$result</code>
+ <code>$result</code>
+ <code>$result</code>
+ <code>$result</code>
+ <code>$result</code>
</ImplementedParamTypeMismatch>
<InvalidArgument occurrences="1">
<code>$baseDN</code>
</InvalidArgument>
<LessSpecificImplementedReturnType occurrences="13">
+ <code>array|mixed</code>
+ <code>array|mixed</code>
+ <code>bool|mixed</code>
+ <code>bool|mixed</code>
<code>bool|mixed</code>
- <code>mixed|true</code>
<code>mixed</code>
<code>mixed</code>
- <code>array|mixed</code>
- <code>mixed|string</code>
- <code>array|mixed</code>
<code>mixed</code>
<code>mixed</code>
<code>mixed</code>
- <code>bool|mixed</code>
+ <code>mixed|string</code>
+ <code>mixed|true</code>
<code>mixed|true</code>
- <code>bool|mixed</code>
</LessSpecificImplementedReturnType>
<UndefinedDocblockClass occurrences="1">
<code>Resource</code>
<code>bool</code>
</InvalidReturnType>
</file>
+ <file src="apps/user_ldap/lib/Mapping/AbstractMapping.php">
+ <InvalidOperand occurrences="1">
+ <code>$result</code>
+ </InvalidOperand>
+ </file>
<file src="apps/user_ldap/lib/Proxy.php">
<InvalidDocblock occurrences="1">
<code>protected function handleRequest($id, $method, $parameters, $passOnWhen = false) {</code>
<code>null</code>
</InvalidReturnType>
<InvalidScalarArgument occurrences="15">
+ <code>$emailAttribute</code>
+ <code>$quotaAttribute</code>
+ <code>$this->access->connection->homeFolderNamingRule</code>
+ <code>$this->access->connection->homeFolderNamingRule</code>
+ <code>$this->connection->homeFolderNamingRule</code>
+ <code>$this->connection->homeFolderNamingRule</code>
+ <code>$this->connection->ldapEmailAttribute</code>
+ <code>$this->connection->ldapExtStorageHomeAttribute</code>
+ <code>$this->connection->ldapExtStorageHomeAttribute</code>
<code>$this->connection->ldapQuotaAttribute</code>
<code>$this->connection->ldapUserDisplayName</code>
<code>$this->connection->ldapUserDisplayName2</code>
- <code>$this->connection->ldapEmailAttribute</code>
- <code>$this->connection->homeFolderNamingRule</code>
- <code>$this->connection->homeFolderNamingRule</code>
<code>$this->getHomePath($ldapEntry[$attr][0])</code>
- <code>$this->connection->ldapExtStorageHomeAttribute</code>
- <code>$this->access->connection->homeFolderNamingRule</code>
- <code>$this->access->connection->homeFolderNamingRule</code>
- <code>true</code>
<code>1</code>
- <code>$emailAttribute</code>
- <code>$quotaAttribute</code>
- <code>$this->connection->ldapExtStorageHomeAttribute</code>
+ <code>true</code>
</InvalidScalarArgument>
</file>
<file src="apps/user_ldap/lib/User_LDAP.php">
<code>string|false</code>
</ImplementedReturnTypeMismatch>
<InvalidScalarArgument occurrences="8">
- <code>$this->access->connection->ldapUserFilter</code>
- <code>$this->access->connection->ldapUserFilter</code>
- <code>$path</code>
<code>$additionalAttribute</code>
- <code>$this->access->connection->ldapUserDisplayName</code>
<code>$limit</code>
<code>$offset</code>
+ <code>$path</code>
+ <code>$this->access->connection->ldapUserDisplayName</code>
+ <code>$this->access->connection->ldapUserFilter</code>
+ <code>$this->access->connection->ldapUserFilter</code>
</InvalidScalarArgument>
<MoreSpecificImplementedParamType occurrences="2">
<code>$limit</code>
<code>false</code>
</FalsableReturnStatement>
<InvalidArgument occurrences="4">
+ <code>$attributes</code>
<code>$er</code>
<code>$er</code>
<code>$er</code>
- <code>$attributes</code>
</InvalidArgument>
<InvalidDocblock occurrences="3">
- <code>private function detectGroupMemberAssoc() {</code>
<code>private function checkAgentRequirements() {</code>
+ <code>private function detectGroupMemberAssoc() {</code>
<code>private function getAttributeValuesFromEntry($result, $attribute, &$known) {</code>
</InvalidDocblock>
<InvalidScalarArgument occurrences="8">
<code>$port</code>
<code>$port</code>
- <code>LDAP_OPT_PROTOCOL_VERSION</code>
- <code>LDAP_OPT_REFERRALS</code>
+ <code>LDAP_OPT_NETWORK_TIMEOUT</code>
<code>LDAP_OPT_NETWORK_TIMEOUT</code>
<code>LDAP_OPT_PROTOCOL_VERSION</code>
+ <code>LDAP_OPT_PROTOCOL_VERSION</code>
+ <code>LDAP_OPT_REFERRALS</code>
<code>LDAP_OPT_REFERRALS</code>
- <code>LDAP_OPT_NETWORK_TIMEOUT</code>
</InvalidScalarArgument>
<RedundantCondition occurrences="2">
+ <code>!isset($item['cn']) && !is_array($item['cn'])</code>
<code>is_array($item['cn'])</code>
- <code>!isset($item['cn']) && !is_array($item['cn']) && !isset($item['cn'][0])</code>
</RedundantCondition>
<TypeDoesNotContainType occurrences="1">
<code>$total === false</code>
</file>
<file src="apps/workflowengine/lib/Manager.php">
<InvalidArgument occurrences="3">
+ <code>IManager::EVENT_NAME_REG_CHECK</code>
<code>IManager::EVENT_NAME_REG_ENTITY</code>
<code>IManager::EVENT_NAME_REG_OPERATION</code>
- <code>IManager::EVENT_NAME_REG_CHECK</code>
</InvalidArgument>
+ <InvalidOperand occurrences="1">
+ <code>$result</code>
+ </InvalidOperand>
<InvalidPropertyAssignmentValue occurrences="1">
<code>[]</code>
</InvalidPropertyAssignmentValue>
</file>
<file src="apps/workflowengine/lib/Service/RuleMatcher.php">
<UndefinedInterfaceMethod occurrences="5">
- <code>isUserScopeEnabled</code>
- <code>getOperations</code>
<code>getAllConfiguredScopesForOperation</code>
- <code>getOperations</code>
<code>getChecks</code>
+ <code>getOperations</code>
+ <code>getOperations</code>
+ <code>isUserScopeEnabled</code>
</UndefinedInterfaceMethod>
</file>
<file src="apps/workflowengine/lib/Settings/Personal.php">
<code>setFilterSchemaAssetsExpression</code>
</InternalMethod>
<InvalidArgument occurrences="2">
- <code>$chunkSize</code>
<code>$chunk * $chunkSize</code>
+ <code>$chunkSize</code>
</InvalidArgument>
<InvalidScalarArgument occurrences="2">
<code>0</code>
<file src="core/Command/Upgrade.php">
<InvalidScalarArgument occurrences="11">
<code>0</code>
- <code>1</code>
- <code>1</code>
- <code>1</code>
<code>0</code>
- <code>1</code>
<code>0</code>
<code>0</code>
<code>0</code>
<code>0</code>
<code>0</code>
+ <code>1</code>
+ <code>1</code>
+ <code>1</code>
+ <code>1</code>
</InvalidScalarArgument>
<UndefinedThisPropertyAssignment occurrences="1">
<code>$this->installer</code>
</TooManyArguments>
</file>
<file src="core/Controller/ClientFlowLoginV2Controller.php">
- <RedundantCondition occurrences="2">
- <code>!is_string($stateToken) || !is_string($currentToken)</code>
+ <RedundantCondition occurrences="1">
<code>is_string($stateToken)</code>
</RedundantCondition>
- <TypeDoesNotContainType occurrences="1">
+ <TypeDoesNotContainType occurrences="2">
+ <code>!is_string($stateToken)</code>
<code>is_string($stateToken)</code>
</TypeDoesNotContainType>
</file>
<file src="core/ajax/update.php">
<InvalidScalarArgument occurrences="12">
<code>0</code>
- <code>1</code>
<code>0</code>
- <code>1</code>
<code>0</code>
- <code>1</code>
<code>0</code>
- <code>1</code>
<code>0</code>
<code>0</code>
<code>0</code>
<code>0</code>
+ <code>1</code>
+ <code>1</code>
+ <code>1</code>
+ <code>1</code>
</InvalidScalarArgument>
</file>
<file src="core/register_command.php">
<file src="core/routes.php">
<InvalidScope occurrences="2">
<code>$this</code>
- <code>$this</code>
+ <code>$this->create('core_ajax_update', '/core/ajax/update.php')</code>
</InvalidScope>
</file>
<file src="core/templates/layout.public.php">
</file>
<file src="lib/base.php">
<InternalMethod occurrences="2">
- <code>getIncompatibleApps</code>
<code>getAppsNeedingUpgrade</code>
+ <code>getIncompatibleApps</code>
</InternalMethod>
<InvalidArgument occurrences="1">
<code>$restrictions</code>
</file>
<file src="lib/private/App/AppManager.php">
<InvalidArgument occurrences="3">
+ <code>ManagerEvent::EVENT_APP_DISABLE</code>
<code>ManagerEvent::EVENT_APP_ENABLE</code>
<code>ManagerEvent::EVENT_APP_ENABLE_FOR_GROUPS</code>
- <code>ManagerEvent::EVENT_APP_DISABLE</code>
</InvalidArgument>
<LessSpecificImplementedReturnType occurrences="2">
<code>array</code>
</file>
<file src="lib/private/AppFramework/Http/Request.php">
<NullableReturnStatement occurrences="11">
- <code>$this->server[$name]</code>
+ <code>$host</code>
+ <code>$name</code>
+ <code>$remoteAddress</code>
+ <code>$this->getOverwriteHost()</code>
<code>$this->method</code>
- <code>isset($this->files[$key]) ? $this->files[$key] : null</code>
- <code>isset($this->env[$key]) ? $this->env[$key] : null</code>
- <code>isset($this->cookies[$key]) ? $this->cookies[$key] : null</code>
+ <code>$this->server[$name]</code>
<code>$this->server['UNIQUE_ID']</code>
- <code>$remoteAddress</code>
<code>$uri</code>
- <code>$name</code>
- <code>$this->getOverwriteHost()</code>
- <code>$host</code>
+ <code>isset($this->cookies[$key]) ? $this->cookies[$key] : null</code>
+ <code>isset($this->env[$key]) ? $this->env[$key] : null</code>
+ <code>isset($this->files[$key]) ? $this->files[$key] : null</code>
</NullableReturnStatement>
<RedundantCondition occurrences="1">
<code>\is_array($params)</code>
</file>
<file src="lib/private/AppFramework/Middleware/Security/RateLimitingMiddleware.php">
<InvalidScalarArgument occurrences="6">
- <code>$userLimit</code>
- <code>$userPeriod</code>
<code>$anonLimit</code>
<code>$anonPeriod</code>
<code>$exception->getCode()</code>
<code>$exception->getCode()</code>
+ <code>$userLimit</code>
+ <code>$userPeriod</code>
</InvalidScalarArgument>
</file>
<file src="lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php">
</file>
<file src="lib/private/Authentication/LoginCredentials/Store.php">
<RedundantCondition occurrences="1">
- <code>$trySession && $this->session->exists('login_credentials')</code>
+ <code>$trySession</code>
</RedundantCondition>
</file>
<file src="lib/private/Authentication/Token/DefaultToken.php">
<UndefinedMethod occurrences="14">
+ <code>parent::getExpires()</code>
+ <code>parent::getLastCheck()</code>
<code>parent::getLoginName()</code>
+ <code>parent::getName()</code>
<code>parent::getPassword()</code>
- <code>parent::getLastCheck()</code>
- <code>parent::setLastCheck($time)</code>
+ <code>parent::getRemember()</code>
<code>parent::getScope()</code>
- <code>parent::setScope(json_encode($scope))</code>
- <code>parent::setScope((string)$scope)</code>
- <code>parent::getName()</code>
+ <code>parent::setExpires($expires)</code>
+ <code>parent::setLastCheck($time)</code>
<code>parent::setName($name)</code>
- <code>parent::getRemember()</code>
- <code>parent::setToken($token)</code>
<code>parent::setPassword($password)</code>
- <code>parent::setExpires($expires)</code>
- <code>parent::getExpires()</code>
+ <code>parent::setScope((string)$scope)</code>
+ <code>parent::setScope(json_encode($scope))</code>
+ <code>parent::setToken($token)</code>
</UndefinedMethod>
</file>
<file src="lib/private/Authentication/Token/PublicKeyToken.php">
<UndefinedMethod occurrences="16">
+ <code>parent::getExpires()</code>
+ <code>parent::getLastCheck()</code>
<code>parent::getLoginName()</code>
+ <code>parent::getName()</code>
<code>parent::getPassword()</code>
- <code>parent::getLastCheck()</code>
- <code>parent::setLastCheck($time)</code>
+ <code>parent::getRemember()</code>
<code>parent::getScope()</code>
- <code>parent::setScope(json_encode($scope))</code>
- <code>parent::setScope((string)$scope)</code>
- <code>parent::getName()</code>
+ <code>parent::setExpires($expires)</code>
+ <code>parent::setLastCheck($time)</code>
<code>parent::setName($name)</code>
- <code>parent::getRemember()</code>
- <code>parent::setToken($token)</code>
<code>parent::setPassword($password)</code>
- <code>parent::setExpires($expires)</code>
- <code>parent::getExpires()</code>
<code>parent::setPasswordInvalid($invalid)</code>
+ <code>parent::setScope((string)$scope)</code>
+ <code>parent::setScope(json_encode($scope))</code>
+ <code>parent::setToken($token)</code>
<code>parent::setType(IToken::WIPE_TOKEN)</code>
</UndefinedMethod>
</file>
<code>$providers</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="2">
- <code>string[]</code>
<code>int[]</code>
+ <code>string[]</code>
</InvalidReturnType>
</file>
<file src="lib/private/Authentication/TwoFactorAuth/Manager.php">
<InvalidArgument occurrences="3">
- <code>IProvider::EVENT_SUCCESS</code>
- <code>IProvider::EVENT_FAILED</code>
<code>$tokenId</code>
+ <code>IProvider::EVENT_FAILED</code>
+ <code>IProvider::EVENT_SUCCESS</code>
</InvalidArgument>
<InvalidReturnStatement occurrences="1">
<code>$providerStates</code>
<code>string[]</code>
</InvalidReturnType>
<InvalidScalarArgument occurrences="3">
- <code>$tokenId</code>
- <code>$token->getId()</code>
<code>$this->timeFactory->getTime()</code>
+ <code>$token->getId()</code>
+ <code>$tokenId</code>
</InvalidScalarArgument>
<TooManyArguments occurrences="2">
<code>dispatch</code>
<code>$this->providers</code>
</InvalidArgument>
<InvalidPropertyAssignmentValue occurrences="2">
- <code>[]</code>
<code>$this->providers</code>
+ <code>[]</code>
</InvalidPropertyAssignmentValue>
<InvalidReturnStatement occurrences="1">
<code>$this->providers</code>
<code>ISimpleFile</code>
</ImplementedReturnTypeMismatch>
<InvalidScalarArgument occurrences="3">
- <code>(int) $this->config->getUserValue($this->user->getUID(), 'avatar', 'version', 0) + 1</code>
<code>$data</code>
<code>$data</code>
+ <code>(int) $this->config->getUserValue($this->user->getUID(), 'avatar', 'version', 0) + 1</code>
</InvalidScalarArgument>
</file>
<file src="lib/private/BackgroundJob/JobList.php">
</UndefinedThisPropertyFetch>
</file>
<file src="lib/private/Collaboration/Collaborators/Search.php">
+ <FalseOperand occurrences="1">
+ <code>$hasMoreResults</code>
+ </FalseOperand>
<UndefinedMethod occurrences="1">
<code>search</code>
</UndefinedMethod>
<ImplementedReturnTypeMismatch occurrences="1">
<code>\DateTime|null</code>
</ImplementedReturnTypeMismatch>
+ <RedundantCondition occurrences="1">
+ <code>is_array($mentions[0])</code>
+ </RedundantCondition>
+ <TypeDoesNotContainType occurrences="2">
+ <code>!is_array($mentions[0])</code>
+ <code>is_array($mentions[0])</code>
+ </TypeDoesNotContainType>
</file>
<file src="lib/private/Comments/Manager.php">
<InvalidArgument occurrences="2"/>
</NullArgument>
</file>
<file src="lib/private/Config.php">
+ <FalseOperand occurrences="2">
+ <code>$needsUpdate</code>
+ <code>$needsUpdate</code>
+ </FalseOperand>
<TypeDoesNotContainType occurrences="1">
<code>$needsUpdate</code>
</TypeDoesNotContainType>
<code>IAddressBook[]</code>
</ImplementedReturnTypeMismatch>
<InvalidNullableReturnType occurrences="3">
- <code>bool</code>
- <code>array</code>
<code>IAddressBook</code>
+ <code>array</code>
+ <code>bool</code>
</InvalidNullableReturnType>
<NullableReturnStatement occurrences="5">
<code>null</code>
<code>string</code>
</ImplementedReturnTypeMismatch>
<InvalidReturnStatement occurrences="2">
- <code>$this->adapter->lastInsertId($seqName)</code>
<code>$insertQb->execute()</code>
+ <code>$this->adapter->lastInsertId($seqName)</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="2">
- <code>string</code>
<code>int</code>
+ <code>string</code>
</InvalidReturnType>
<InvalidScalarArgument occurrences="1">
<code>$e->getCode()</code>
<code>$offset</code>
</InvalidOperand>
<UndefinedThisPropertyAssignment occurrences="4">
- <code>$this->migrationsPath</code>
<code>$this->migrationsNamespace</code>
- <code>$this->migrationsPath</code>
<code>$this->migrationsNamespace</code>
+ <code>$this->migrationsPath</code>
+ <code>$this->migrationsPath</code>
</UndefinedThisPropertyAssignment>
<UndefinedThisPropertyFetch occurrences="4">
- <code>$this->migrationsPath</code>
<code>$this->migrationsNamespace</code>
<code>$this->migrationsNamespace</code>
<code>$this->migrationsPath</code>
+ <code>$this->migrationsPath</code>
</UndefinedThisPropertyFetch>
</file>
<file src="lib/private/DB/Migrator.php">
<code>setFilterSchemaAssetsExpression</code>
</InternalMethod>
<InvalidArgument occurrences="2">
- <code>'\OC\DB\Migrator::executeSql'</code>
<code>'\OC\DB\Migrator::checkTable'</code>
+ <code>'\OC\DB\Migrator::executeSql'</code>
</InvalidArgument>
<TooManyArguments occurrences="2">
<code>dispatch</code>
<code>null</code>
<code>null</code>
</NullableReturnStatement>
- <UndefinedInterfaceMethod occurrences="5">
- <code>$sourceData</code>
- <code>$sourceData</code>
- <code>$parentData</code>
- <code>$parentData</code>
- <code>$entry</code>
- </UndefinedInterfaceMethod>
</file>
<file src="lib/private/Files/Cache/FailedCache.php">
<InvalidReturnStatement occurrences="1">
<code>[]</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="3">
- <code>put</code>
- <code>insert</code>
<code>getIncomplete</code>
+ <code>insert</code>
+ <code>put</code>
</InvalidReturnType>
</file>
<file src="lib/private/Files/Cache/HomeCache.php">
<MoreSpecificImplementedParamType occurrences="1">
<code>$path</code>
</MoreSpecificImplementedParamType>
- <UndefinedInterfaceMethod occurrences="5">
- <code>$entry</code>
- <code>$entry</code>
- <code>$entry</code>
- <code>$filesData</code>
- <code>$data</code>
- </UndefinedInterfaceMethod>
<UndefinedMagicMethod occurrences="1">
<code>closeCursor</code>
</UndefinedMagicMethod>
</file>
<file src="lib/private/Files/Cache/LocalRootScanner.php">
<InvalidNullableReturnType occurrences="2">
- <code>scanFile</code>
<code>scan</code>
+ <code>scanFile</code>
</InvalidNullableReturnType>
<NullableReturnStatement occurrences="2">
<code>null</code>
<TypeDoesNotContainType occurrences="1">
<code>$data ?? $this->getData($file)</code>
</TypeDoesNotContainType>
- <UndefinedInterfaceMethod occurrences="1">
- <code>$child</code>
- </UndefinedInterfaceMethod>
</file>
<file src="lib/private/Files/Cache/Storage.php">
<InvalidNullableReturnType occurrences="1">
<code>$this->cache instanceof Cache</code>
</RedundantCondition>
</file>
- <file src="lib/private/Files/Cache/Watcher.php">
- <UndefinedInterfaceMethod occurrences="3">
- <code>$cachedData</code>
- <code>$entry</code>
- <code>$entry</code>
- </UndefinedInterfaceMethod>
- </file>
<file src="lib/private/Files/Cache/Wrapper/CacheJail.php">
<ImplementedReturnTypeMismatch occurrences="1">
<code>array</code>
<code>array</code>
<code>array</code>
</LessSpecificImplementedReturnType>
- <UndefinedInterfaceMethod occurrences="1">
- <code>$entry</code>
- </UndefinedInterfaceMethod>
- </file>
- <file src="lib/private/Files/Cache/Wrapper/CachePermissionsMask.php">
- <InvalidReturnStatement occurrences="1">
- <code>$entry</code>
- </InvalidReturnStatement>
- <InvalidReturnType occurrences="1">
- <code>formatCacheEntry</code>
- </InvalidReturnType>
- <UndefinedInterfaceMethod occurrences="1">
- <code>$entry</code>
- </UndefinedInterfaceMethod>
</file>
<file src="lib/private/Files/Cache/Wrapper/CacheWrapper.php">
<LessSpecificImplementedReturnType occurrences="1">
<file src="lib/private/Files/Config/UserMountCache.php">
<InvalidArgument occurrences="1"/>
<InvalidReturnType occurrences="2">
- <code>removeUserStorageMount</code>
<code>remoteStorageMounts</code>
+ <code>removeUserStorageMount</code>
</InvalidReturnType>
<LessSpecificImplementedReturnType occurrences="1">
<code>array</code>
</LessSpecificImplementedReturnType>
<UndefinedInterfaceMethod occurrences="9">
+ <code>$this->cacheInfoCache</code>
+ <code>$this->cacheInfoCache</code>
+ <code>$this->cacheInfoCache</code>
<code>$this->mountsForUsers</code>
<code>$this->mountsForUsers</code>
<code>$this->mountsForUsers</code>
<code>$this->mountsForUsers</code>
<code>$this->mountsForUsers</code>
<code>$this->mountsForUsers</code>
- <code>$this->cacheInfoCache</code>
- <code>$this->cacheInfoCache</code>
- <code>$this->cacheInfoCache</code>
- </UndefinedInterfaceMethod>
- </file>
- <file src="lib/private/Files/FileInfo.php">
- <UndefinedInterfaceMethod occurrences="4">
- <code>$this->data</code>
- <code>$data</code>
- <code>$data</code>
- <code>$data</code>
</UndefinedInterfaceMethod>
</file>
<file src="lib/private/Files/Filesystem.php">
</file>
<file src="lib/private/Files/Node/File.php">
<InvalidReturnStatement occurrences="2">
- <code>new NonExistingFile($this->root, $this->view, $path)</code>
<code>$this->view->hash($type, $this->path, $raw)</code>
+ <code>new NonExistingFile($this->root, $this->view, $path)</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="2">
<code>string</code>
<code>string</code>
</InvalidNullableReturnType>
<InvalidReturnStatement occurrences="2">
- <code>new NonExistingFolder($this->root, $this->view, $path)</code>
<code>$this->root->get($this->getFullPath($path))</code>
+ <code>new NonExistingFolder($this->root, $this->view, $path)</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="2">
- <code>string</code>
<code>\OC\Files\Node\Node</code>
+ <code>string</code>
</InvalidReturnType>
<MoreSpecificImplementedParamType occurrences="1">
<code>$node</code>
<code>null</code>
</NullableReturnStatement>
<UndefinedInterfaceMethod occurrences="2">
- <code>getUnJailedPath</code>
<code>getSourceStorage</code>
+ <code>getUnJailedPath</code>
</UndefinedInterfaceMethod>
<UndefinedThisPropertyAssignment occurrences="1">
<code>$this->exists</code>
</file>
<file src="lib/private/Files/Node/HookConnector.php">
<InvalidArgument occurrences="13">
- <code>'\OCP\Files::preWrite'</code>
- <code>'\OCP\Files::postWrite'</code>
- <code>'\OCP\Files::preCreate'</code>
+ <code>'\OCP\Files::postCopy'</code>
<code>'\OCP\Files::postCreate'</code>
- <code>'\OCP\Files::preDelete'</code>
<code>'\OCP\Files::postDelete'</code>
- <code>'\OCP\Files::preTouch'</code>
- <code>'\OCP\Files::postTouch'</code>
- <code>'\OCP\Files::preRename'</code>
<code>'\OCP\Files::postRename'</code>
+ <code>'\OCP\Files::postTouch'</code>
+ <code>'\OCP\Files::postWrite'</code>
<code>'\OCP\Files::preCopy'</code>
- <code>'\OCP\Files::postCopy'</code>
+ <code>'\OCP\Files::preCreate'</code>
+ <code>'\OCP\Files::preDelete'</code>
+ <code>'\OCP\Files::preRename'</code>
+ <code>'\OCP\Files::preTouch'</code>
+ <code>'\OCP\Files::preWrite'</code>
<code>'\OCP\Files::read'</code>
</InvalidArgument>
<TooManyArguments occurrences="13">
<code>int</code>
</InvalidNullableReturnType>
<InvalidReturnStatement occurrences="3">
- <code>$this->root->get($newPath)</code>
<code>$targetNode</code>
<code>$targetNode</code>
+ <code>$this->root->get($newPath)</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="4">
<code>Node</code>
- <code>getChecksum</code>
<code>\OC\Files\Node\Node</code>
<code>\OC\Files\Node\Node</code>
+ <code>getChecksum</code>
</InvalidReturnType>
<NullableReturnStatement occurrences="1">
<code>$this->getFileInfo()->getId()</code>
</file>
<file src="lib/private/Files/Node/Root.php">
<ImplementedReturnTypeMismatch occurrences="2">
- <code>string</code>
<code>Node</code>
+ <code>string</code>
</ImplementedReturnTypeMismatch>
<InvalidNullableReturnType occurrences="7">
- <code>\OC\User\User</code>
<code>\OC\Files\Mount\MountPoint</code>
- <code>int</code>
+ <code>\OC\User\User</code>
<code>array</code>
<code>int</code>
<code>int</code>
+ <code>int</code>
<code>string</code>
</InvalidNullableReturnType>
<InvalidReturnStatement occurrences="1">
<code>string</code>
</InvalidReturnType>
<NullableReturnStatement occurrences="7">
- <code>$this->user</code>
<code>$this->mountManager->find($mountPoint)</code>
+ <code>$this->user</code>
<code>null</code>
<code>null</code>
<code>null</code>
<code>$source</code>
<code>$target</code>
</ParamNameMismatch>
- <UndefinedInterfaceMethod occurrences="4">
- <code>$child</code>
- <code>$child</code>
- <code>$child</code>
- <code>$file</code>
- </UndefinedInterfaceMethod>
</file>
<file src="lib/private/Files/ObjectStore/S3ConnectionTrait.php">
<InternalClass occurrences="1">
<code>string|false</code>
</ImplementedReturnTypeMismatch>
<InvalidNullableReturnType occurrences="2">
- <code>getMetaData</code>
<code>array</code>
+ <code>getMetaData</code>
</InvalidNullableReturnType>
- <InvalidOperand occurrences="1">
+ <InvalidOperand occurrences="4">
<code>!$permissions</code>
+ <code>$result</code>
+ <code>$result</code>
+ <code>$result</code>
</InvalidOperand>
<InvalidReturnStatement occurrences="1">
<code>$count</code>
<NoInterfaceProperties occurrences="8">
<code>$storage->cache</code>
<code>$storage->cache</code>
- <code>$storage->scanner</code>
- <code>$storage->scanner</code>
<code>$storage->propagator</code>
<code>$storage->propagator</code>
+ <code>$storage->scanner</code>
+ <code>$storage->scanner</code>
<code>$storage->updater</code>
<code>$storage->updater</code>
</NoInterfaceProperties>
<NullableReturnStatement occurrences="2">
- <code>null</code>
<code>$this->getStorageCache()->getAvailability()</code>
+ <code>null</code>
</NullableReturnStatement>
</file>
<file src="lib/private/Files/Storage/DAV.php">
<NullableReturnStatement occurrences="1">
<code>null</code>
</NullableReturnStatement>
- <UndefinedInterfaceMethod occurrences="3">
- <code>$cachedData</code>
- <code>$cachedData</code>
- <code>$cachedData</code>
- </UndefinedInterfaceMethod>
</file>
<file src="lib/private/Files/Storage/FailedStorage.php">
<InvalidReturnStatement occurrences="2">
- <code>true</code>
<code>new FailedCache()</code>
+ <code>true</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="2">
- <code>verifyPath</code>
<code>getCache</code>
+ <code>verifyPath</code>
</InvalidReturnType>
<InvalidScalarArgument occurrences="39">
<code>$this->e->getCode()</code>
</InvalidReturnType>
<ParamNameMismatch occurrences="4">
<code>$source</code>
- <code>$target</code>
<code>$source</code>
<code>$target</code>
+ <code>$target</code>
</ParamNameMismatch>
</file>
<file src="lib/private/Files/Storage/Local.php">
<InvalidNullableReturnType occurrences="1">
<code>getMetaData</code>
</InvalidNullableReturnType>
+ <InvalidOperand occurrences="1">
+ <code>$result</code>
+ </InvalidOperand>
<InvalidReturnStatement occurrences="3">
<code>$helper->getFileSize($fullPath)</code>
- <code>file_put_contents($this->getSourcePath($path), $data)</code>
<code>$space</code>
+ <code>file_put_contents($this->getSourcePath($path), $data)</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="3">
- <code>filesize</code>
<code>file_put_contents</code>
+ <code>filesize</code>
<code>free_space</code>
</InvalidReturnType>
<NullableReturnStatement occurrences="2">
- <code>null</code>
<code>$helper->getFileSize($fullPath)</code>
+ <code>null</code>
</NullableReturnStatement>
<TypeDoesNotContainNull occurrences="2">
- <code>is_null($space)</code>
<code>$space === false || is_null($space)</code>
+ <code>is_null($space)</code>
</TypeDoesNotContainNull>
<TypeDoesNotContainType occurrences="1">
<code>$stat === false</code>
</file>
<file src="lib/private/Files/Storage/Wrapper/Availability.php">
<InvalidNullableReturnType occurrences="34">
- <code>mkdir</code>
- <code>rmdir</code>
- <code>opendir</code>
- <code>is_dir</code>
- <code>is_file</code>
- <code>stat</code>
- <code>filesize</code>
- <code>isCreatable</code>
- <code>isReadable</code>
- <code>isUpdatable</code>
- <code>isDeletable</code>
- <code>isSharable</code>
- <code>getPermissions</code>
+ <code>copy</code>
+ <code>copyFromStorage</code>
<code>file_exists</code>
- <code>filemtime</code>
<code>file_get_contents</code>
<code>file_put_contents</code>
- <code>unlink</code>
- <code>rename</code>
- <code>copy</code>
+ <code>filemtime</code>
+ <code>filesize</code>
<code>fopen</code>
- <code>getMimeType</code>
- <code>hash</code>
<code>free_space</code>
- <code>search</code>
- <code>touch</code>
+ <code>getDirectDownload</code>
+ <code>getETag</code>
<code>getLocalFile</code>
- <code>hasUpdated</code>
+ <code>getMetaData</code>
+ <code>getMimeType</code>
<code>getOwner</code>
- <code>getETag</code>
- <code>getDirectDownload</code>
- <code>copyFromStorage</code>
+ <code>getPermissions</code>
+ <code>hasUpdated</code>
+ <code>hash</code>
+ <code>isCreatable</code>
+ <code>isDeletable</code>
+ <code>isReadable</code>
+ <code>isSharable</code>
+ <code>isUpdatable</code>
+ <code>is_dir</code>
+ <code>is_file</code>
+ <code>mkdir</code>
<code>moveFromStorage</code>
- <code>getMetaData</code>
+ <code>opendir</code>
+ <code>rename</code>
+ <code>rmdir</code>
+ <code>search</code>
+ <code>stat</code>
+ <code>touch</code>
+ <code>unlink</code>
</InvalidNullableReturnType>
<InvalidReturnType occurrences="1">
<code>\Traversable</code>
</file>
<file src="lib/private/Files/Storage/Wrapper/Encoding.php">
<FalsableReturnStatement occurrences="12">
- <code>$this->storage->opendir($this->findPathToUse($path))</code>
- <code>$this->storage->stat($this->findPathToUse($path))</code>
- <code>$this->storage->filesize($this->findPathToUse($path))</code>
- <code>$this->storage->filemtime($this->findPathToUse($path))</code>
- <code>$this->storage->file_get_contents($this->findPathToUse($path))</code>
<code>$result</code>
+ <code>$this->storage->file_get_contents($this->findPathToUse($path))</code>
+ <code>$this->storage->filemtime($this->findPathToUse($path))</code>
+ <code>$this->storage->filesize($this->findPathToUse($path))</code>
+ <code>$this->storage->free_space($this->findPathToUse($path))</code>
+ <code>$this->storage->getETag($this->findPathToUse($path))</code>
+ <code>$this->storage->getLocalFile($this->findPathToUse($path))</code>
<code>$this->storage->getMimeType($this->findPathToUse($path))</code>
<code>$this->storage->hash($type, $this->findPathToUse($path), $raw)</code>
- <code>$this->storage->free_space($this->findPathToUse($path))</code>
+ <code>$this->storage->opendir($this->findPathToUse($path))</code>
<code>$this->storage->search($query)</code>
- <code>$this->storage->getLocalFile($this->findPathToUse($path))</code>
- <code>$this->storage->getETag($this->findPathToUse($path))</code>
+ <code>$this->storage->stat($this->findPathToUse($path))</code>
</FalsableReturnStatement>
<ImplementedReturnTypeMismatch occurrences="1">
<code>bool</code>
</file>
<file src="lib/private/Files/Storage/Wrapper/Encryption.php">
<FalsableReturnStatement occurrences="5">
- <code>$this->storage->filesize($path)</code>
- <code>false</code>
+ <code>$stat</code>
<code>$this->storage->file_get_contents($path)</code>
+ <code>$this->storage->filesize($path)</code>
<code>$this->storage->getLocalFile($path)</code>
- <code>$stat</code>
+ <code>false</code>
</FalsableReturnStatement>
<ImplementedReturnTypeMismatch occurrences="1">
<code>resource|bool</code>
<InvalidNullableReturnType occurrences="1">
<code>array</code>
</InvalidNullableReturnType>
+ <InvalidOperand occurrences="3">
+ <code>$result</code>
+ <code>$result</code>
+ <code>$result</code>
+ </InvalidOperand>
<InvalidReturnStatement occurrences="2">
- <code>$written</code>
<code>$newUnencryptedSize</code>
+ <code>$written</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="2">
<code>bool</code>
<NullableReturnStatement occurrences="1">
<code>null</code>
</NullableReturnStatement>
- <UndefinedInterfaceMethod occurrences="7">
- <code>$info</code>
- <code>$info</code>
- <code>$info</code>
- <code>$entry</code>
- <code>$sourceStorage->getCache()->get($sourceInternalPath)</code>
- <code>$info</code>
- <code>$info</code>
- </UndefinedInterfaceMethod>
</file>
<file src="lib/private/Files/Storage/Wrapper/Jail.php">
<FalsableReturnStatement occurrences="12">
- <code>$this->getWrapperStorage()->opendir($this->getUnjailedPath($path))</code>
- <code>$this->getWrapperStorage()->stat($this->getUnjailedPath($path))</code>
- <code>$this->getWrapperStorage()->filesize($this->getUnjailedPath($path))</code>
- <code>$this->getWrapperStorage()->filemtime($this->getUnjailedPath($path))</code>
<code>$this->getWrapperStorage()->file_get_contents($this->getUnjailedPath($path))</code>
+ <code>$this->getWrapperStorage()->filemtime($this->getUnjailedPath($path))</code>
+ <code>$this->getWrapperStorage()->filesize($this->getUnjailedPath($path))</code>
<code>$this->getWrapperStorage()->fopen($this->getUnjailedPath($path), $mode)</code>
+ <code>$this->getWrapperStorage()->free_space($this->getUnjailedPath($path))</code>
+ <code>$this->getWrapperStorage()->getETag($this->getUnjailedPath($path))</code>
+ <code>$this->getWrapperStorage()->getLocalFile($this->getUnjailedPath($path))</code>
<code>$this->getWrapperStorage()->getMimeType($this->getUnjailedPath($path))</code>
<code>$this->getWrapperStorage()->hash($type, $this->getUnjailedPath($path), $raw)</code>
- <code>$this->getWrapperStorage()->free_space($this->getUnjailedPath($path))</code>
+ <code>$this->getWrapperStorage()->opendir($this->getUnjailedPath($path))</code>
<code>$this->getWrapperStorage()->search($query)</code>
- <code>$this->getWrapperStorage()->getLocalFile($this->getUnjailedPath($path))</code>
- <code>$this->getWrapperStorage()->getETag($this->getUnjailedPath($path))</code>
+ <code>$this->getWrapperStorage()->stat($this->getUnjailedPath($path))</code>
</FalsableReturnStatement>
<ImplementedReturnTypeMismatch occurrences="1">
<code>bool</code>
</file>
<file src="lib/private/Files/Storage/Wrapper/Quota.php">
<FalsableReturnStatement occurrences="2">
- <code>$this->storage->free_space($path)</code>
<code>$source</code>
+ <code>$this->storage->free_space($path)</code>
</FalsableReturnStatement>
<InvalidReturnStatement occurrences="1">
<code>$extension === 'part'</code>
<code>$source</code>
<code>$target</code>
</ParamNameMismatch>
- <UndefinedInterfaceMethod occurrences="1">
- <code>$data</code>
- </UndefinedInterfaceMethod>
</file>
<file src="lib/private/Files/Storage/Wrapper/Wrapper.php">
<FalsableReturnStatement occurrences="13">
- <code>$this->getWrapperStorage()->opendir($path)</code>
- <code>$this->getWrapperStorage()->stat($path)</code>
- <code>$this->getWrapperStorage()->filesize($path)</code>
- <code>$this->getWrapperStorage()->filemtime($path)</code>
<code>$this->getWrapperStorage()->file_get_contents($path)</code>
+ <code>$this->getWrapperStorage()->filemtime($path)</code>
+ <code>$this->getWrapperStorage()->filesize($path)</code>
<code>$this->getWrapperStorage()->fopen($path, $mode)</code>
+ <code>$this->getWrapperStorage()->free_space($path)</code>
+ <code>$this->getWrapperStorage()->getDirectDownload($path)</code>
+ <code>$this->getWrapperStorage()->getETag($path)</code>
+ <code>$this->getWrapperStorage()->getLocalFile($path)</code>
<code>$this->getWrapperStorage()->getMimeType($path)</code>
<code>$this->getWrapperStorage()->hash($type, $path, $raw)</code>
- <code>$this->getWrapperStorage()->free_space($path)</code>
+ <code>$this->getWrapperStorage()->opendir($path)</code>
<code>$this->getWrapperStorage()->search($query)</code>
- <code>$this->getWrapperStorage()->getLocalFile($path)</code>
- <code>$this->getWrapperStorage()->getETag($path)</code>
- <code>$this->getWrapperStorage()->getDirectDownload($path)</code>
+ <code>$this->getWrapperStorage()->stat($path)</code>
</FalsableReturnStatement>
<ImplementedReturnTypeMismatch occurrences="1">
<code>bool</code>
<code>$mount</code>
</InvalidArgument>
<InvalidNullableReturnType occurrences="2">
- <code>string</code>
<code>\OCP\Files\Mount\IMountPoint</code>
+ <code>string</code>
</InvalidNullableReturnType>
<InvalidReturnStatement occurrences="1">
<code>$results</code>
<code>\OC\Files\Mount\MountPoint</code>
</InvalidReturnType>
<InvalidScalarArgument occurrences="3">
+ <code>$fileId</code>
<code>$mtime</code>
<code>$user</code>
- <code>$fileId</code>
</InvalidScalarArgument>
<NullableReturnStatement occurrences="6">
- <code>null</code>
+ <code>$mount</code>
<code>Filesystem::getMountManager()->find($this->getAbsolutePath($path))</code>
<code>null</code>
<code>null</code>
<code>null</code>
- <code>$mount</code>
+ <code>null</code>
</NullableReturnStatement>
<RedundantCondition occurrences="3">
+ <code>$result && in_array('delete', $hooks) and $result</code>
<code>$storage1</code>
<code>is_resource($source)</code>
- <code>$result && in_array('delete', $hooks) and $result</code>
</RedundantCondition>
<UndefinedDocblockClass occurrences="2">
<code>$storage</code>
+ <code>[$storage, $internalPath]</code>
</UndefinedDocblockClass>
- <UndefinedInterfaceMethod occurrences="20">
- <code>$data</code>
- <code>$data</code>
- <code>$data</code>
- <code>$data</code>
- <code>$content</code>
- <code>$content</code>
- <code>$content</code>
- <code>$content</code>
- <code>$content</code>
- <code>$rootEntry</code>
- <code>$rootEntry</code>
- <code>$rootEntry</code>
- <code>$rootEntry</code>
- <code>$rootEntry</code>
- <code>$rootEntry</code>
- <code>$rootEntry</code>
- <code>$rootEntry</code>
- <code>$rootEntry</code>
- <code>$rootEntry</code>
- <code>$rootEntry</code>
- </UndefinedInterfaceMethod>
</file>
<file src="lib/private/FullTextSearch/Model/IndexDocument.php">
<TypeDoesNotContainNull occurrences="1">
</file>
<file src="lib/private/Group/Group.php">
<InvalidArgument occurrences="6">
- <code>IGroup::class . '::preAddUser'</code>
<code>IGroup::class . '::postAddUser'</code>
- <code>IGroup::class . '::preRemoveUser'</code>
+ <code>IGroup::class . '::postDelete'</code>
<code>IGroup::class . '::postRemoveUser'</code>
+ <code>IGroup::class . '::preAddUser'</code>
<code>IGroup::class . '::preDelete'</code>
- <code>IGroup::class . '::postDelete'</code>
+ <code>IGroup::class . '::preRemoveUser'</code>
</InvalidArgument>
<InvalidOperand occurrences="1">
<code>$hide</code>
</TooManyArguments>
<UndefinedMethod occurrences="4">
<code>addToGroup</code>
- <code>removeFromGroup</code>
<code>countUsersInGroup</code>
<code>deleteGroup</code>
+ <code>removeFromGroup</code>
</UndefinedMethod>
</file>
<file src="lib/private/Group/Manager.php">
<code>\OC\Group\Group[]</code>
</InvalidReturnType>
<UndefinedInterfaceMethod occurrences="3">
- <code>getGroupDetails</code>
<code>createGroup</code>
+ <code>getGroupDetails</code>
<code>isAdmin</code>
</UndefinedInterfaceMethod>
</file>
</file>
<file src="lib/private/Lockdown/Filesystem/NullStorage.php">
<InvalidNullableReturnType occurrences="2">
- <code>getPermissions</code>
<code>getOwner</code>
+ <code>getPermissions</code>
</InvalidNullableReturnType>
<InvalidReturnStatement occurrences="2">
<code>new IteratorDirectory([])</code>
<code>new NullCache()</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="2">
- <code>opendir</code>
<code>getCache</code>
+ <code>opendir</code>
</InvalidReturnType>
<NullableReturnStatement occurrences="2">
<code>null</code>
</file>
<file src="lib/private/Log.php">
<RedundantCondition occurrences="1">
- <code>$request && hash_equals($logCondition['shared_secret'], $logSecretRequest)</code>
+ <code>$request</code>
</RedundantCondition>
</file>
- <file src="lib/private/Log/File.php">
- <RedundantCondition occurrences="1"/>
- </file>
<file src="lib/private/Log/LogDetails.php">
<RedundantCondition occurrences="1">
<code>is_string($request->getMethod())</code>
<code>$failedRecipients</code>
</NullableReturnStatement>
<UndefinedInterfaceMethod occurrences="3">
+ <code>getSubject</code>
<code>getSwiftMessage</code>
<code>getTo</code>
- <code>getSubject</code>
</UndefinedInterfaceMethod>
</file>
<file src="lib/private/Memcache/APCu.php">
<InvalidReturnStatement occurrences="5">
- <code>apcu_store($this->getPrefix() . $key, $value, $ttl)</code>
- <code>apcu_exists($this->getPrefix() . $key)</code>
- <code>apcu_delete($this->getPrefix() . $key)</code>
- <code>apcu_delete($iter)</code>
<code>apcu_add($this->getPrefix() . $key, $value, $ttl)</code>
+ <code>apcu_delete($iter)</code>
+ <code>apcu_delete($this->getPrefix() . $key)</code>
+ <code>apcu_exists($this->getPrefix() . $key)</code>
+ <code>apcu_store($this->getPrefix() . $key, $value, $ttl)</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="5">
- <code>set</code>
+ <code>bool</code>
+ <code>clear</code>
<code>hasKey</code>
<code>remove</code>
- <code>clear</code>
- <code>bool</code>
+ <code>set</code>
</InvalidReturnType>
</file>
<file src="lib/private/Memcache/Cache.php">
</LessSpecificImplementedReturnType>
</file>
<file src="lib/private/Memcache/Factory.php">
- <RedundantCondition occurrences="1">
- <code>$lockingCacheClass && class_exists($distributedCacheClass) && $lockingCacheClass::isAvailable()</code>
- </RedundantCondition>
+ <TypeDoesNotContainType occurrences="1">
+ <code>$lockingCacheClass && class_exists($distributedCacheClass)</code>
+ </TypeDoesNotContainType>
</file>
<file src="lib/private/Memcache/Memcached.php">
<RedundantCondition occurrences="1">
</MoreSpecificImplementedParamType>
</file>
<file src="lib/private/Notification/Manager.php">
- <RedundantCondition occurrences="2">
- <code>!($notification instanceof INotification) || !$notification->isValidParsed()</code>
- <code>!($notification instanceof INotification) || !$notification->isValidParsed()</code>
- </RedundantCondition>
+ <TypeDoesNotContainType occurrences="2">
+ <code>!($notification instanceof INotification)</code>
+ <code>!($notification instanceof INotification)</code>
+ </TypeDoesNotContainType>
</file>
<file src="lib/private/Preview/BackgroundCleanupJob.php">
<InvalidReturnStatement occurrences="1">
</file>
<file src="lib/private/Preview/Generator.php">
<InvalidArgument occurrences="2">
- <code>IPreview::EVENT</code>
<code>$maxPreviewImage</code>
+ <code>IPreview::EVENT</code>
</InvalidArgument>
<InvalidNullableReturnType occurrences="1">
<code>ISimpleFile</code>
<code>dispatch</code>
</TooManyArguments>
<UndefinedInterfaceMethod occurrences="7">
- <code>valid</code>
<code>height</code>
- <code>width</code>
- <code>width</code>
<code>height</code>
<code>preciseResizeCopy</code>
<code>resizeCopy</code>
+ <code>valid</code>
+ <code>width</code>
+ <code>width</code>
</UndefinedInterfaceMethod>
</file>
<file src="lib/private/Preview/GeneratorHelper.php">
</file>
<file src="lib/private/RedisFactory.php">
<InvalidPropertyAssignmentValue occurrences="2">
- <code>new \RedisCluster(null, $config['seeds'], $timeout, $readTimeout, false, $config['password'])</code>
<code>new \RedisCluster(null, $config['seeds'], $timeout, $readTimeout)</code>
+ <code>new \RedisCluster(null, $config['seeds'], $timeout, $readTimeout, false, $config['password'])</code>
</InvalidPropertyAssignmentValue>
<InvalidScalarArgument occurrences="1">
<code>\RedisCluster::OPT_SLAVE_FAILOVER</code>
</file>
<file src="lib/private/Repair/RemoveLinkShares.php">
<ImplicitToStringCast occurrences="2">
- <code>$subQuery->createFunction('(' . $subSubQuery->getSQL() . ')')</code>
- <code>$query->createFunction('(' . $subQuery->getSQL() . ')')</code>
<code>$query->createFunction('(' . $subQuery->getSQL() . ')')</code>
+ <code>$subQuery->createFunction('(' . $subSubQuery->getSQL() . ')')</code>
</ImplicitToStringCast>
<InvalidPropertyAssignmentValue occurrences="1">
<code>$this->userToNotify</code>
<file src="lib/private/Search/Result/File.php">
<InvalidPropertyAssignmentValue occurrences="4">
<code>$data->getId()</code>
- <code>$data->getPermissions()</code>
<code>$data->getMtime()</code>
+ <code>$data->getPermissions()</code>
<code>$this->hasPreview($data)</code>
</InvalidPropertyAssignmentValue>
</file>
</file>
<file src="lib/private/Security/Crypto.php">
<InternalMethod occurrences="6">
- <code>setPassword</code>
- <code>setIV</code>
+ <code>decrypt</code>
<code>encrypt</code>
- <code>setPassword</code>
<code>setIV</code>
- <code>decrypt</code>
+ <code>setIV</code>
+ <code>setPassword</code>
+ <code>setPassword</code>
</InternalMethod>
</file>
<file src="lib/private/Server.php">
<code>!self::isResharingAllowed()</code>
</InvalidOperand>
<InvalidScalarArgument occurrences="3">
- <code>\OC_User::getUser()</code>
<code>$shareWith</code>
<code>\OC_User::getUser()</code>
+ <code>\OC_User::getUser()</code>
</InvalidScalarArgument>
<UndefinedInterfaceMethod occurrences="2">
<code>getParents</code>
</file>
<file src="lib/private/Share20/Manager.php">
<InvalidArgument occurrences="7">
- <code>'OCP\Share::preShare'</code>
- <code>'OCP\Share::postShare'</code>
+ <code>$data</code>
<code>'OCP\Share::postAcceptShare'</code>
- <code>'OCP\Share::preUnshare'</code>
+ <code>'OCP\Share::postShare'</code>
<code>'OCP\Share::postUnshare'</code>
<code>'OCP\Share::postUnshareFromSelf'</code>
- <code>$data</code>
+ <code>'OCP\Share::preShare'</code>
+ <code>'OCP\Share::preUnshare'</code>
</InvalidArgument>
<InvalidScalarArgument occurrences="3">
+ <code>$id</code>
<code>$this->shareApiLinkDefaultExpireDays()</code>
<code>$this->shareApiLinkDefaultExpireDays()</code>
- <code>$id</code>
</InvalidScalarArgument>
<TooManyArguments occurrences="7">
<code>dispatch</code>
<code>dispatch</code>
- <code>update</code>
<code>dispatch</code>
<code>dispatch</code>
<code>dispatch</code>
<code>dispatch</code>
+ <code>update</code>
</TooManyArguments>
<UndefinedClass occurrences="1">
<code>\OCA\Circles\Api\v1\Circles</code>
<code>ShareByMailProvider</code>
</InvalidNullableReturnType>
<InvalidReturnStatement occurrences="5">
- <code>$this->shareByCircleProvider</code>
- <code>$this->roomShareProvider</code>
<code>$provider</code>
<code>$provider</code>
<code>$shares</code>
+ <code>$this->roomShareProvider</code>
+ <code>$this->shareByCircleProvider</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="3">
+ <code>getAllProviders</code>
<code>getProvider</code>
<code>getProviderForType</code>
- <code>getAllProviders</code>
</InvalidReturnType>
<NullableReturnStatement occurrences="6">
<code>null</code>
<code>\OCA\Circles\ShareByCircleProvider</code>
</UndefinedClass>
<UndefinedDocblockClass occurrences="5">
+ <code>RoomShareProvider</code>
<code>\OCA\Circles\ShareByCircleProvider</code>
<code>\OCA\Talk\Share\RoomShareProvider</code>
- <code>RoomShareProvider</code>
- <code>private $shareByCircleProvider = null;</code>
<code>private $roomShareProvider = null;</code>
+ <code>private $shareByCircleProvider = null;</code>
</UndefinedDocblockClass>
<UndefinedInterfaceMethod occurrences="4">
<code>getLazyRootFolder</code>
</FalsableReturnStatement>
<InvalidArgument occurrences="3">
<code>ManagerEvent::EVENT_CREATE</code>
- <code>ManagerEvent::EVENT_UPDATE</code>
<code>ManagerEvent::EVENT_DELETE</code>
+ <code>ManagerEvent::EVENT_UPDATE</code>
</InvalidArgument>
<InvalidReturnType occurrences="2">
<code>bool</code>
</file>
<file src="lib/private/Template/JSResourceLocator.php">
<InvalidOperand occurrences="6">
- <code>$this->appendIfExist($this->serverroot, 'core/'.$script.'.js')</code>
- <code>$this->appendIfExist($this->serverroot, $theme_dir.'core/'.$script.'.js')</code>
<code>$this->appendIfExist($this->serverroot, $script.'.js')</code>
<code>$this->appendIfExist($this->serverroot, $theme_dir.$script.'.js')</code>
- <code>$this->appendIfExist($this->serverroot, 'apps/'.$script.'.js')</code>
<code>$this->appendIfExist($this->serverroot, $theme_dir.'apps/'.$script.'.js')</code>
+ <code>$this->appendIfExist($this->serverroot, $theme_dir.'core/'.$script.'.js')</code>
+ <code>$this->appendIfExist($this->serverroot, 'apps/'.$script.'.js')</code>
+ <code>$this->appendIfExist($this->serverroot, 'core/'.$script.'.js')</code>
</InvalidOperand>
<TypeDoesNotContainType occurrences="1">
<code>$found</code>
<code>string</code>
</InvalidParamDefault>
<InvalidScalarArgument occurrences="4">
- <code>\OC_User::getUser()</code>
- <code>\OC_User::getUser()</code>
<code>$appName</code>
<code>$appName</code>
+ <code>\OC_User::getUser()</code>
+ <code>\OC_User::getUser()</code>
</InvalidScalarArgument>
<TooManyArguments occurrences="1">
<code>Util::addScript('dist/unified-search', null, true)</code>
<InvalidScalarArgument occurrences="13">
<code>0</code>
<code>0</code>
- <code>1</code>
<code>0</code>
- <code>1</code>
- <code>1</code>
<code>0</code>
- <code>1</code>
<code>0</code>
<code>0</code>
<code>0</code>
<code>0</code>
<code>0</code>
+ <code>1</code>
+ <code>1</code>
+ <code>1</code>
+ <code>1</code>
</InvalidScalarArgument>
<UndefinedMethod occurrences="1">
<code>\OC_DB::simulateUpdateDbFromStructure(\OC_App::getAppPath($appId) . '/appinfo/database.xml')</code>
</file>
<file src="lib/private/Updater/VersionCheck.php">
<InvalidScalarArgument occurrences="2">
- <code>time()</code>
<code>microtime(true)</code>
+ <code>time()</code>
</InvalidScalarArgument>
</file>
<file src="lib/private/User/Backend.php">
</NullableReturnStatement>
<UndefinedInterfaceMethod occurrences="4">
<code>checkPassword</code>
- <code>createUser</code>
<code>countUsers</code>
+ <code>createUser</code>
<code>getUsersForUserValueCaseInsensitive</code>
</UndefinedInterfaceMethod>
</file>
</file>
<file src="lib/private/User/User.php">
<InvalidArgument occurrences="5">
- <code>IUser::class . '::preDelete'</code>
+ <code>IUser::class . '::changeUser'</code>
<code>IUser::class . '::postDelete'</code>
- <code>IUser::class . '::preSetPassword'</code>
<code>IUser::class . '::postSetPassword'</code>
- <code>IUser::class . '::changeUser'</code>
+ <code>IUser::class . '::preDelete'</code>
+ <code>IUser::class . '::preSetPassword'</code>
</InvalidArgument>
<InvalidNullableReturnType occurrences="1">
<code>getBackend</code>
<code>IImage|null</code>
</InvalidReturnType>
<InvalidScalarArgument occurrences="2">
- <code>$this->lastLogin</code>
<code>$quota</code>
+ <code>$this->lastLogin</code>
</InvalidScalarArgument>
<NullableReturnStatement occurrences="1">
<code>$this->backend</code>
<code>dispatch</code>
</TooManyArguments>
<UndefinedInterfaceMethod occurrences="5">
- <code>setDisplayName</code>
+ <code>canChangeAvatar</code>
<code>deleteUserAvatar</code>
- <code>setPassword</code>
<code>getHome</code>
- <code>canChangeAvatar</code>
+ <code>setDisplayName</code>
+ <code>setPassword</code>
</UndefinedInterfaceMethod>
</file>
<file src="lib/private/UserStatus/Manager.php">
<NullableReturnStatement occurrences="1">
<code>null</code>
</NullableReturnStatement>
- <RedundantCondition occurrences="1">
- <code>$appId === null || trim($appId) === ''</code>
- </RedundantCondition>
<TooManyArguments occurrences="1">
<code>dispatch</code>
</TooManyArguments>
<TypeDoesNotContainNull occurrences="1">
<code>$appId === null</code>
</TypeDoesNotContainNull>
+ <TypeDoesNotContainType occurrences="1">
+ <code>$appId === null</code>
+ </TypeDoesNotContainType>
</file>
<file src="lib/private/legacy/OC_DB.php">
<InvalidReturnStatement occurrences="1">
</file>
<file src="lib/private/legacy/OC_Files.php">
<InvalidArgument occurrences="3">
+ <code>$fh</code>
<code>$fileInfos</code>
<code>[$fileInfo]</code>
- <code>$fh</code>
</InvalidArgument>
<InvalidScalarArgument occurrences="1">
<code>mt_rand()</code>
</UndefinedInterfaceMethod>
</file>
<file src="lib/private/legacy/OC_Helper.php">
+ <InvalidOperand occurrences="1">
+ <code>$matches[1][$last_match][0]</code>
+ </InvalidOperand>
<InvalidReturnStatement occurrences="4">
<code>(INF > 0)? INF: PHP_INT_MAX</code>
<code>INF</code>
<code>int</code>
</InvalidReturnType>
<InvalidScalarArgument occurrences="4">
- <code>$path</code>
<code>$includeExtStorage ? 'ext' : false</code>
+ <code>$path</code>
<code>$quota</code>
<code>'ext'</code>
</InvalidScalarArgument>
<RedundantCondition occurrences="1">
- <code>count($obd_values) > 0 and $obd_values[0]</code>
+ <code>count($obd_values) > 0</code>
</RedundantCondition>
<UndefinedInterfaceMethod occurrences="1">
<code>getSourceStorage</code>
</file>
<file src="lib/private/legacy/OC_Image.php">
<FalsableReturnStatement occurrences="3">
+ <code>$this->resource</code>
<code>$this->valid() ? imagesx($this->resource) : -1</code>
<code>$this->valid() ? imagesy($this->resource) : -1</code>
- <code>$this->resource</code>
</FalsableReturnStatement>
<ImplementedReturnTypeMismatch occurrences="1">
<code>null|string</code>
<code>bool</code>
</InvalidReturnType>
<InvalidScalarArgument occurrences="17">
- <code>$this->bitDepth</code>
- <code>90</code>
<code>$imagePath</code>
<code>$imagePath</code>
<code>$imagePath</code>
<code>$imagePath</code>
<code>$imagePath</code>
<code>$imagePath</code>
+ <code>$this->bitDepth</code>
<code>$x</code>
<code>$y</code>
+ <code>90</code>
</InvalidScalarArgument>
<MismatchingDocblockReturnType occurrences="1">
<code>bool</code>
</MismatchingDocblockReturnType>
<RedundantCondition occurrences="1">
- <code>$isWritable && file_exists($filePath)</code>
+ <code>$isWritable</code>
</RedundantCondition>
</file>
<file src="lib/private/legacy/OC_JSON.php">
</file>
<file src="lib/private/legacy/OC_Util.php">
<InternalMethod occurrences="2">
- <code>\OC\Files\Filesystem::logWarningWhenAddingStorageWrapper(false)</code>
<code>\OC\Files\Filesystem::logWarningWhenAddingStorageWrapper($prevLogging)</code>
+ <code>\OC\Files\Filesystem::logWarningWhenAddingStorageWrapper(false)</code>
</InternalMethod>
- <InvalidOperand occurrences="4">
- <code>$version</code>
- <code>$version</code>
- <code>$version</code>
- <code>$version</code>
- </InvalidOperand>
+ <InvalidLiteralArgument occurrences="1">
+ <code>\OCP\Constants::FILENAME_INVALID_CHARS</code>
+ </InvalidLiteralArgument>
<InvalidReturnStatement occurrences="1">
<code>OC_Helper::computerFileSize($userQuota)</code>
</InvalidReturnStatement>
<code>OC_User::getUser()</code>
</InvalidScalarArgument>
<RedundantCondition occurrences="2">
- <code>is_string($expected)</code>
<code>'off'</code>
+ <code>is_string($expected)</code>
</RedundantCondition>
<TypeDoesNotContainType occurrences="3">
<code>is_bool($expected)</code>
- <code>is_int($expected)</code>
<code>is_bool($setting[1])</code>
+ <code>is_int($expected)</code>
</TypeDoesNotContainType>
<UndefinedInterfaceMethod occurrences="1">
<code>clearCache</code>
</file>
<file src="lib/public/AppFramework/Http/ZipResponse.php">
<InvalidArrayAccess occurrences="5">
- <code>$resource['size']</code>
- <code>$resource['resource']</code>
<code>$resource['internalName']</code>
+ <code>$resource['resource']</code>
+ <code>$resource['size']</code>
<code>$resource['size']</code>
<code>$resource['time']</code>
</InvalidArrayAccess>