diff options
-rw-r--r-- | build/psalm-baseline-ocp.xml | 86 | ||||
-rw-r--r-- | build/psalm-baseline.xml | 2774 | ||||
-rw-r--r-- | psalm-ocp.xml | 2 | ||||
-rw-r--r-- | psalm.xml | 2 | ||||
-rw-r--r-- | vendor-bin/psalm/composer.json | 2 | ||||
-rw-r--r-- | vendor-bin/psalm/composer.lock | 435 |
6 files changed, 2016 insertions, 1285 deletions
diff --git a/build/psalm-baseline-ocp.xml b/build/psalm-baseline-ocp.xml index e993e85e5a2..21a2ce27001 100644 --- a/build/psalm-baseline-ocp.xml +++ b/build/psalm-baseline-ocp.xml @@ -1,130 +1,152 @@ <?xml version="1.0" encoding="UTF-8"?> -<files psalm-version="4.30.0@d0bc6e25d89f649e4f36a534f330f8bb4643dd69"> +<files psalm-version="5.9.0@8b9ad1eb9e8b7d3101f949291da2b9f7767cd163"> <file src="lib/private/legacy/OC_Template.php"> - <UndefinedClass occurrences="1"> + <UndefinedClass> <code>OC</code> </UndefinedClass> </file> <file src="lib/public/AppFramework/ApiController.php"> - <NoInterfaceProperties occurrences="1"> - <code>$this->request->server</code> + <NoInterfaceProperties> + <code><![CDATA[$this->request->server]]></code> </NoInterfaceProperties> </file> <file src="lib/public/AppFramework/App.php"> - <InternalMethod occurrences="1"> - <code>new RouteConfig($this->container, $router, $routes)</code> + <InternalMethod> + <code><![CDATA[new RouteConfig($this->container, $router, $routes)]]></code> </InternalMethod> - <UndefinedClass occurrences="1"> + <UndefinedClass> <code>\OC</code> </UndefinedClass> </file> <file src="lib/public/AppFramework/Db/Entity.php"> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>string</code> </InvalidNullableReturnType> - <NullableReturnStatement occurrences="1"> + <NullableReturnStatement> <code>$column</code> </NullableReturnStatement> </file> <file src="lib/public/AppFramework/Http/JSONResponse.php"> - <InvalidReturnStatement occurrences="1"> - <code>$this->data</code> + <InvalidReturnStatement> + <code><![CDATA[$this->data]]></code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>array</code> </InvalidReturnType> </file> <file src="lib/public/AppFramework/Http/RedirectToDefaultAppResponse.php"> - <UndefinedClass occurrences="1"> + <UndefinedClass> <code>\OC</code> </UndefinedClass> </file> <file src="lib/public/AppFramework/Http/Response.php"> - <UndefinedClass occurrences="2"> + <UndefinedClass> <code>\OC</code> <code>\OC</code> </UndefinedClass> </file> <file src="lib/public/BackgroundJob/TimedJob.php"> - <MoreSpecificImplementedParamType occurrences="1"> + <MoreSpecificImplementedParamType> + <code>$jobList</code> <code>$jobList</code> </MoreSpecificImplementedParamType> </file> + <file src="lib/public/Cache/CappedMemoryCache.php"> + <MissingTemplateParam> + <code>\ArrayAccess</code> + </MissingTemplateParam> + </file> <file src="lib/public/Defaults.php"> - <UndefinedClass occurrences="1"> + <UndefinedClass> <code>\OC</code> </UndefinedClass> </file> <file src="lib/public/Diagnostics/IQueryLogger.php"> - <LessSpecificImplementedReturnType occurrences="1"> + <LessSpecificImplementedReturnType> <code>mixed</code> </LessSpecificImplementedReturnType> </file> + <file src="lib/public/EventDispatcher/GenericEvent.php"> + <MissingTemplateParam> + <code>ArrayAccess</code> + <code>IteratorAggregate</code> + </MissingTemplateParam> + </file> <file src="lib/public/Federation/Exceptions/ActionNotSupportedException.php"> - <UndefinedClass occurrences="1"> + <UndefinedClass> <code>\OC</code> </UndefinedClass> </file> <file src="lib/public/Federation/Exceptions/AuthenticationFailedException.php"> - <UndefinedClass occurrences="1"> + <UndefinedClass> <code>\OC</code> </UndefinedClass> </file> <file src="lib/public/Federation/Exceptions/BadRequestException.php"> - <UndefinedClass occurrences="1"> + <UndefinedClass> <code>\OC</code> </UndefinedClass> </file> <file src="lib/public/Federation/Exceptions/ProviderAlreadyExistsException.php"> - <UndefinedClass occurrences="1"> + <UndefinedClass> <code>\OC</code> </UndefinedClass> </file> <file src="lib/public/Federation/Exceptions/ProviderDoesNotExistsException.php"> - <UndefinedClass occurrences="1"> + <UndefinedClass> <code>\OC</code> </UndefinedClass> </file> <file src="lib/public/Files.php"> - <FalsableReturnStatement occurrences="1"> + <FalsableReturnStatement> <code>\OC_App::getStorage($app)</code> </FalsableReturnStatement> - <UndefinedClass occurrences="1"> + <UndefinedClass> <code>\OC</code> </UndefinedClass> </file> + <file src="lib/public/Files/Cache/ICacheEntry.php"> + <MissingTemplateParam> + <code>ArrayAccess</code> + </MissingTemplateParam> + </file> <file src="lib/public/Files/LockNotAcquiredException.php"> - <UndefinedClass occurrences="1"> + <UndefinedClass> <code>\OC</code> </UndefinedClass> </file> <file src="lib/public/Files/StorageAuthException.php"> - <UndefinedClass occurrences="1"> + <UndefinedClass> <code>\OC</code> </UndefinedClass> </file> <file src="lib/public/Files/StorageBadConfigException.php"> - <UndefinedClass occurrences="1"> + <UndefinedClass> <code>\OC</code> </UndefinedClass> </file> <file src="lib/public/Files/StorageConnectionException.php"> - <UndefinedClass occurrences="1"> + <UndefinedClass> <code>\OC</code> </UndefinedClass> </file> <file src="lib/public/Files/StorageNotAvailableException.php"> - <UndefinedClass occurrences="1"> + <UndefinedClass> <code>\OC</code> </UndefinedClass> </file> <file src="lib/public/Files/StorageTimeoutException.php"> - <UndefinedClass occurrences="1"> + <UndefinedClass> <code>\OC</code> </UndefinedClass> </file> + <file src="lib/public/L10N/ILanguageIterator.php"> + <MissingTemplateParam> + <code>\Iterator</code> + </MissingTemplateParam> + </file> <file src="lib/public/Template.php"> - <UndefinedFunction occurrences="7"> + <UndefinedFunction> <code>\html_select_options($options, $selected, $params)</code> <code>\human_file_size($bytes)</code> <code>\image_path($app, $image)</code> @@ -135,7 +157,7 @@ </UndefinedFunction> </file> <file src="lib/public/Util.php"> - <UndefinedClass occurrences="14"> + <UndefinedClass> <code>\OC</code> <code>\OC</code> <code>\OC</code> diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml index 05d05aff1b1..ac20e6ffbad 100644 --- a/build/psalm-baseline.xml +++ b/build/psalm-baseline.xml @@ -1,222 +1,348 @@ <?xml version="1.0" encoding="UTF-8"?> -<files psalm-version="4.30.0@d0bc6e25d89f649e4f36a534f330f8bb4643dd69"> +<files psalm-version="5.9.0@8b9ad1eb9e8b7d3101f949291da2b9f7767cd163"> <file src="3rdparty/sabre/dav/lib/CalDAV/Calendar.php"> - <MoreSpecificImplementedParamType occurrences="1"> + <MoreSpecificImplementedParamType> <code>$calendarData</code> </MoreSpecificImplementedParamType> </file> <file src="3rdparty/sabre/dav/lib/CalDAV/CalendarHome.php"> - <MoreSpecificImplementedParamType occurrences="1"> + <MoreSpecificImplementedParamType> <code>$data</code> </MoreSpecificImplementedParamType> </file> <file src="3rdparty/sabre/dav/lib/CalDAV/Principal/User.php"> - <MoreSpecificImplementedParamType occurrences="1"> + <MoreSpecificImplementedParamType> <code>$data</code> </MoreSpecificImplementedParamType> </file> <file src="3rdparty/sabre/dav/lib/CardDAV/AddressBook.php"> - <LessSpecificImplementedReturnType occurrences="1"> + <LessSpecificImplementedReturnType> <code>array</code> </LessSpecificImplementedReturnType> - <MoreSpecificImplementedParamType occurrences="1"> + <MoreSpecificImplementedParamType> <code>$vcardData</code> </MoreSpecificImplementedParamType> </file> <file src="3rdparty/sabre/dav/lib/CardDAV/AddressBookHome.php"> - <InvalidPropertyAssignmentValue occurrences="1"> + <InvalidPropertyAssignmentValue> <code>$principalUri</code> </InvalidPropertyAssignmentValue> - <MoreSpecificImplementedParamType occurrences="1"> + <MoreSpecificImplementedParamType> <code>$data</code> </MoreSpecificImplementedParamType> </file> <file src="3rdparty/sabre/dav/lib/DAVACL/AbstractPrincipalCollection.php"> - <LessSpecificImplementedReturnType occurrences="1"> + <LessSpecificImplementedReturnType> <code>array</code> </LessSpecificImplementedReturnType> </file> + <file src="apps/admin_audit/lib/Listener/CriticalActionPerformedEventListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> <file src="apps/cloud_federation_api/lib/Controller/RequestHandlerController.php"> - <TypeDoesNotContainType occurrences="1"> + <TypeDoesNotContainType> <code>!is_array($notification)</code> </TypeDoesNotContainType> </file> + <file src="apps/comments/lib/Listener/CommentsEntityEventListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/comments/lib/Listener/LoadAdditionalScripts.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/comments/lib/Listener/LoadSidebarScripts.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> <file src="apps/comments/lib/Search/Result.php"> - <InvalidScalarArgument occurrences="1"> - <code>(int) $comment->getId()</code> - </InvalidScalarArgument> + <InvalidArgument> + <code><![CDATA[(int) $comment->getId()]]></code> + </InvalidArgument> + </file> + <file src="apps/contactsinteraction/lib/Listeners/ContactInteractionListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> </file> <file src="apps/dav/appinfo/v1/caldav.php"> - <UndefinedGlobalVariable occurrences="1"> + <UndefinedGlobalVariable> <code>$baseuri</code> </UndefinedGlobalVariable> </file> <file src="apps/dav/appinfo/v1/carddav.php"> - <UndefinedGlobalVariable occurrences="1"> + <UndefinedGlobalVariable> <code>$baseuri</code> </UndefinedGlobalVariable> </file> <file src="apps/dav/appinfo/v1/publicwebdav.php"> - <InternalMethod occurrences="2"> + <InternalMethod> <code>\OC\Files\Filesystem::logWarningWhenAddingStorageWrapper($previousLog)</code> <code>\OC\Files\Filesystem::logWarningWhenAddingStorageWrapper(false)</code> </InternalMethod> - <UndefinedGlobalVariable occurrences="1"> + <UndefinedGlobalVariable> <code>$baseuri</code> </UndefinedGlobalVariable> </file> <file src="apps/dav/appinfo/v1/webdav.php"> - <InvalidArgument occurrences="1"> - <code>'OCA\DAV\Connector\Sabre::addPlugin'</code> + <InvalidArgument> + <code><![CDATA['OCA\DAV\Connector\Sabre::addPlugin']]></code> </InvalidArgument> - <TooManyArguments occurrences="1"> + <TooManyArguments> <code>dispatch</code> </TooManyArguments> - <UndefinedGlobalVariable occurrences="1"> + <UndefinedGlobalVariable> <code>$baseuri</code> </UndefinedGlobalVariable> </file> <file src="apps/dav/appinfo/v2/direct.php"> - <UndefinedGlobalVariable occurrences="1"> + <UndefinedGlobalVariable> <code>$baseuri</code> </UndefinedGlobalVariable> </file> <file src="apps/dav/appinfo/v2/remote.php"> - <UndefinedGlobalVariable occurrences="1"> + <UndefinedGlobalVariable> <code>$baseuri</code> </UndefinedGlobalVariable> </file> <file src="apps/dav/lib/AppInfo/Application.php"> - <InvalidArgument occurrences="1"> + <InvalidArgument> <code>CalendarDeletionDefaultUpdaterListener::class</code> </InvalidArgument> </file> <file src="apps/dav/lib/CalDAV/BirthdayService.php"> - <UndefinedMethod occurrences="2"> + <UndefinedMethod> <code>setDateTime</code> <code>setDateTime</code> </UndefinedMethod> - <UndefinedPropertyFetch occurrences="4"> - <code>$existingBirthday->VEVENT->DTSTART</code> - <code>$existingBirthday->VEVENT->SUMMARY</code> - <code>$newCalendarData->VEVENT->DTSTART</code> - <code>$newCalendarData->VEVENT->SUMMARY</code> + <UndefinedPropertyFetch> + <code><![CDATA[$existingBirthday->VEVENT->DTSTART]]></code> + <code><![CDATA[$existingBirthday->VEVENT->SUMMARY]]></code> + <code><![CDATA[$newCalendarData->VEVENT->DTSTART]]></code> + <code><![CDATA[$newCalendarData->VEVENT->SUMMARY]]></code> </UndefinedPropertyFetch> </file> <file src="apps/dav/lib/CalDAV/CachedSubscription.php"> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$calendarData</code> </ParamNameMismatch> </file> <file src="apps/dav/lib/CalDAV/CachedSubscriptionObject.php"> - <NullableReturnStatement occurrences="1"> - <code>$this->objectData['calendardata']</code> + <NullableReturnStatement> + <code><![CDATA[$this->objectData['calendardata']]]></code> </NullableReturnStatement> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> + <code>$calendarData</code> <code>$calendarData</code> </ParamNameMismatch> </file> <file src="apps/dav/lib/CalDAV/CalDavBackend.php"> - <InvalidNullableReturnType occurrences="2"> + <InvalidNullableReturnType> <code>array</code> <code>array</code> </InvalidNullableReturnType> - <MoreSpecificImplementedParamType occurrences="2"> + <MoreSpecificImplementedParamType> <code>$objectData</code> <code>$uris</code> + <code>$uris</code> </MoreSpecificImplementedParamType> - <NullableReturnStatement occurrences="2"> + <NullableReturnStatement> + <code><![CDATA[$this->atomic(function () use ($calendarId, $syncToken, $syncLevel, $limit, $calendarType) { + // Current synctoken + $qb = $this->db->getQueryBuilder(); + $qb->select('synctoken') + ->from('calendars') + ->where( + $qb->expr()->eq('id', $qb->createNamedParameter($calendarId)) + ); + $stmt = $qb->executeQuery(); + $currentToken = $stmt->fetchOne(); + + if ($currentToken === false) { + return null; + } + + $result = [ + 'syncToken' => $currentToken, + 'added' => [], + 'modified' => [], + 'deleted' => [], + ]; + + if ($syncToken) { + $qb = $this->db->getQueryBuilder(); + + $qb->select('uri', 'operation') + ->from('calendarchanges') + ->where( + $qb->expr()->andX( + $qb->expr()->gte('synctoken', $qb->createNamedParameter($syncToken)), + $qb->expr()->lt('synctoken', $qb->createNamedParameter($currentToken)), + $qb->expr()->eq('calendarid', $qb->createNamedParameter($calendarId)), + $qb->expr()->eq('calendartype', $qb->createNamedParameter($calendarType)) + ) + )->orderBy('synctoken'); + if (is_int($limit) && $limit > 0) { + $qb->setMaxResults($limit); + } + + // Fetching all changes + $stmt = $qb->executeQuery(); + $changes = []; + + // This loop ensures that any duplicates are overwritten, only the + // last change on a node is relevant. + while ($row = $stmt->fetch()) { + $changes[$row['uri']] = $row['operation']; + } + $stmt->closeCursor(); + + foreach ($changes as $uri => $operation) { + switch ($operation) { + case 1: + $result['added'][] = $uri; + break; + case 2: + $result['modified'][] = $uri; + break; + case 3: + $result['deleted'][] = $uri; + break; + } + } + } else { + // No synctoken supplied, this is the initial sync. + $qb = $this->db->getQueryBuilder(); + $qb->select('uri') + ->from('calendarobjects') + ->where( + $qb->expr()->andX( + $qb->expr()->eq('calendarid', $qb->createNamedParameter($calendarId)), + $qb->expr()->eq('calendartype', $qb->createNamedParameter($calendarType)) + ) + ); + $stmt = $qb->executeQuery(); + $result['added'] = $stmt->fetchAll(\PDO::FETCH_COLUMN); + $stmt->closeCursor(); + } + return $result; + }, $this->db)]]></code> <code>null</code> </NullableReturnStatement> </file> <file src="apps/dav/lib/CalDAV/CalendarHome.php"> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>INode</code> </InvalidNullableReturnType> - <LessSpecificImplementedReturnType occurrences="1"> + <LessSpecificImplementedReturnType> <code>INode</code> </LessSpecificImplementedReturnType> - <NullableReturnStatement occurrences="1"> - <code>$calendarPlugin->getCalendarInCalendarHome($this->principalInfo['uri'], $calendarUri)</code> + <NullableReturnStatement> + <code><![CDATA[$calendarPlugin->getCalendarInCalendarHome($this->principalInfo['uri'], $calendarUri)]]></code> </NullableReturnStatement> - <UndefinedInterfaceMethod occurrences="1"> + <UndefinedInterfaceMethod> <code>calendarSearch</code> </UndefinedInterfaceMethod> </file> <file src="apps/dav/lib/CalDAV/CalendarRoot.php"> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$principal</code> </ParamNameMismatch> </file> <file src="apps/dav/lib/CalDAV/Plugin.php"> - <ImplementedReturnTypeMismatch occurrences="1"> + <ImplementedReturnTypeMismatch> <code>string|null</code> </ImplementedReturnTypeMismatch> </file> <file src="apps/dav/lib/CalDAV/Principal/Collection.php"> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$principalInfo</code> </ParamNameMismatch> </file> <file src="apps/dav/lib/CalDAV/PublicCalendar.php"> - <MoreSpecificImplementedParamType occurrences="1"> + <MoreSpecificImplementedParamType> <code>$paths</code> </MoreSpecificImplementedParamType> </file> <file src="apps/dav/lib/CalDAV/Reminder/NotificationProvider/AbstractProvider.php"> - <UndefinedMethod occurrences="3"> + <UndefinedMethod> <code>hasTime</code> <code>isFloating</code> <code>isFloating</code> </UndefinedMethod> </file> <file src="apps/dav/lib/CalDAV/Reminder/NotificationProvider/EmailProvider.php"> - <UndefinedMethod occurrences="3"> + <UndefinedMethod> <code>getDateTime</code> <code>getDateTime</code> <code>isFloating</code> </UndefinedMethod> </file> <file src="apps/dav/lib/CalDAV/Reminder/NotificationProviderManager.php"> - <UndefinedConstant occurrences="1"> + <UndefinedConstant> <code>$provider::NOTIFICATION_TYPE</code> </UndefinedConstant> </file> + <file src="apps/dav/lib/CalDAV/Reminder/Notifier.php"> + <TypeDoesNotContainType> + <code>$diff === false</code> + </TypeDoesNotContainType> + </file> <file src="apps/dav/lib/CalDAV/Reminder/ReminderService.php"> - <UndefinedMethod occurrences="3"> - <code>getDateInterval</code> + <UndefinedMethod> <code>getDateTime</code> <code>getDateTime</code> </UndefinedMethod> - <UndefinedPropertyFetch occurrences="1"> - <code>$valarm->parent->UID</code> + <UndefinedPropertyFetch> + <code><![CDATA[$valarm->parent->UID]]></code> </UndefinedPropertyFetch> </file> <file src="apps/dav/lib/CalDAV/ResourceBooking/AbstractPrincipalBackend.php"> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>array</code> </InvalidNullableReturnType> - <InvalidReturnStatement occurrences="1"> + <InvalidReturnStatement> <code>$principals</code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>string[]</code> </InvalidReturnType> - <NullableReturnStatement occurrences="2"> + <NullableReturnStatement> <code>null</code> <code>null</code> </NullableReturnStatement> </file> + <file src="apps/dav/lib/CalDAV/Schedule/IMipPlugin.php"> + <RedundantCast> + <code><![CDATA[(string)$iTipMessage->recipientName]]></code> + </RedundantCast> + <RedundantCondition> + <code><![CDATA[!empty($modified['old']) && is_array($modified['old'])]]></code> + <code><![CDATA[is_array($modified['old'])]]></code> + </RedundantCondition> + </file> + <file src="apps/dav/lib/CalDAV/Schedule/IMipService.php"> + <UndefinedMethod> + <code>getNormalizedValue</code> + <code>getNormalizedValue</code> + </UndefinedMethod> + </file> <file src="apps/dav/lib/CalDAV/Schedule/Plugin.php"> - <InvalidArgument occurrences="2"> - <code>[$aclPlugin, 'propFind']</code> - <code>[$aclPlugin, 'propFind']</code> + <InvalidArgument> + <code><![CDATA[[$aclPlugin, 'propFind']]]></code> + <code><![CDATA[[$aclPlugin, 'propFind']]]></code> </InvalidArgument> - <UndefinedInterfaceMethod occurrences="2"> + <UndefinedInterfaceMethod> <code>get</code> <code>getChildren</code> </UndefinedInterfaceMethod> - <UndefinedMethod occurrences="5"> + <UndefinedMethod> <code>getDateTime</code> <code>hasTime</code> <code>isFloating</code> @@ -225,186 +351,206 @@ </UndefinedMethod> </file> <file src="apps/dav/lib/CalDAV/Search/SearchPlugin.php"> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>bool</code> </InvalidNullableReturnType> </file> <file src="apps/dav/lib/CalDAV/Search/Xml/Filter/ParamFilter.php"> - <InvalidReturnStatement occurrences="1"/> - <InvalidReturnType occurrences="1"> + <InvalidReturnStatement> + <code><![CDATA[[ + 'property' => $property, + 'parameter' => $parameter, + ]]]></code> + </InvalidReturnStatement> + <InvalidReturnType> <code>string</code> </InvalidReturnType> </file> <file src="apps/dav/lib/CalDAV/Search/Xml/Request/CalendarSearchReport.php"> - <TypeDoesNotContainType occurrences="3"> - <code>!is_array($newProps['filters']['comps'])</code> - <code>!is_array($newProps['filters']['params'])</code> - <code>!is_array($newProps['filters']['props'])</code> + <TypeDoesNotContainType> + <code><![CDATA[!is_array($newProps['filters']['comps'])]]></code> + <code><![CDATA[!is_array($newProps['filters']['params'])]]></code> + <code><![CDATA[!is_array($newProps['filters']['props'])]]></code> + <code><![CDATA[!isset($newProps['filters']['comps']) || !is_array($newProps['filters']['comps'])]]></code> + <code><![CDATA[!isset($newProps['filters']['params']) || !is_array($newProps['filters']['params'])]]></code> + <code><![CDATA[!isset($newProps['filters']['props']) || !is_array($newProps['filters']['props'])]]></code> </TypeDoesNotContainType> </file> <file src="apps/dav/lib/CalDAV/WebcalCaching/RefreshWebcalService.php"> - <InvalidArgument occurrences="1"> + <InvalidArgument> <code>$webcalData</code> </InvalidArgument> </file> <file src="apps/dav/lib/CardDAV/AddressBookImpl.php"> - <InvalidScalarArgument occurrences="2"> - <code>$this->getKey()</code> - <code>$this->getKey()</code> - </InvalidScalarArgument> + <InvalidArgument> + <code><![CDATA[$this->getKey()]]></code> + <code><![CDATA[$this->getKey()]]></code> + </InvalidArgument> </file> <file src="apps/dav/lib/CardDAV/AddressBookRoot.php"> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$principal</code> </ParamNameMismatch> </file> <file src="apps/dav/lib/CardDAV/CardDavBackend.php"> - <FalsableReturnStatement occurrences="1"> + <FalsableReturnStatement> <code>false</code> </FalsableReturnStatement> - <TypeDoesNotContainType occurrences="1"> - <code>$addressBooks[$row['id']][$readOnlyPropertyName] === 0</code> + <TypeDoesNotContainType> + <code><![CDATA[$addressBooks[$row['id']][$readOnlyPropertyName] === 0]]></code> </TypeDoesNotContainType> </file> <file src="apps/dav/lib/CardDAV/MultiGetExportPlugin.php"> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>bool</code> </InvalidNullableReturnType> </file> <file src="apps/dav/lib/CardDAV/PhotoCache.php"> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>string</code> </InvalidNullableReturnType> - <NullableReturnStatement occurrences="1"> + <NullableReturnStatement> <code>$type</code> </NullableReturnStatement> </file> <file src="apps/dav/lib/CardDAV/Plugin.php"> - <ImplementedReturnTypeMismatch occurrences="1"> + <ImplementedReturnTypeMismatch> <code>string|null</code> </ImplementedReturnTypeMismatch> </file> <file src="apps/dav/lib/CardDAV/UserAddressBooks.php"> - <InvalidArgument occurrences="2"> - <code>$this->principalUri</code> - <code>$this->principalUri</code> + <InvalidArgument> + <code><![CDATA[$this->principalUri]]></code> + <code><![CDATA[$this->principalUri]]></code> </InvalidArgument> </file> <file src="apps/dav/lib/CardDAV/Xml/Groups.php"> - <InvalidPropertyAssignmentValue occurrences="1"> + <InvalidPropertyAssignmentValue> <code>$groups</code> </InvalidPropertyAssignmentValue> </file> <file src="apps/dav/lib/Comments/CommentNode.php"> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>int</code> </InvalidNullableReturnType> - <NullableReturnStatement occurrences="1"> + <NullableReturnStatement> <code>null</code> </NullableReturnStatement> </file> <file src="apps/dav/lib/Comments/CommentsPlugin.php"> - <InvalidScalarArgument occurrences="2"> - <code>$args['datetime']</code> + <InvalidArgument> <code>200</code> + </InvalidArgument> + <InvalidScalarArgument> + <code><![CDATA[$args['datetime']]]></code> </InvalidScalarArgument> - <UndefinedFunction occurrences="1"> + <UndefinedFunction> <code>\Sabre\HTTP\toDate($value)</code> </UndefinedFunction> </file> + <file src="apps/dav/lib/Comments/EntityTypeCollection.php"> + <TypeDoesNotContainType> + <code>!is_string($name)</code> + </TypeDoesNotContainType> + </file> <file src="apps/dav/lib/Comments/RootCollection.php"> - <InvalidArgument occurrences="1"> + <InvalidArgument> <code>CommentsEntityEvent::EVENT_ENTITY</code> </InvalidArgument> - <InvalidNullableReturnType occurrences="2"> + <InvalidNullableReturnType> <code>\Sabre\DAV\INode[]</code> <code>int</code> </InvalidNullableReturnType> - <NullableReturnStatement occurrences="2"> - <code>$this->entityTypeCollections</code> + <NullableReturnStatement> + <code><![CDATA[$this->entityTypeCollections]]></code> <code>null</code> </NullableReturnStatement> - <TooManyArguments occurrences="1"> + <TooManyArguments> <code>dispatch</code> </TooManyArguments> </file> <file src="apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php"> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>bool</code> </InvalidNullableReturnType> </file> <file src="apps/dav/lib/Connector/Sabre/BearerAuth.php"> - <UndefinedInterfaceMethod occurrences="1"> + <UndefinedInterfaceMethod> <code>tryTokenLogin</code> </UndefinedInterfaceMethod> </file> <file src="apps/dav/lib/Connector/Sabre/Directory.php"> - <InvalidPropertyAssignmentValue occurrences="1"> + <InvalidPropertyAssignmentValue> <code>$nodes</code> </InvalidPropertyAssignmentValue> - <InvalidReturnStatement occurrences="1"> - <code>$this->dirContent</code> + <InvalidReturnStatement> + <code><![CDATA[$this->dirContent]]></code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>\Sabre\DAV\INode[]</code> </InvalidReturnType> - <NullArgument occurrences="3"> + <NullArgument> <code>null</code> <code>null</code> <code>null</code> </NullArgument> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$fullSourcePath</code> </ParamNameMismatch> </file> <file src="apps/dav/lib/Connector/Sabre/File.php"> - <MoreSpecificImplementedParamType occurrences="1"> + <MoreSpecificImplementedParamType> <code>$data</code> </MoreSpecificImplementedParamType> </file> <file src="apps/dav/lib/Connector/Sabre/FilesReportPlugin.php"> - <InvalidNullableReturnType occurrences="1"> - <code>bool</code> - </InvalidNullableReturnType> - <InvalidScalarArgument occurrences="2"> + <InvalidArgument> <code>0</code> <code>200</code> - </InvalidScalarArgument> - <NullableReturnStatement occurrences="1"> + </InvalidArgument> + <InvalidNullableReturnType> + <code>bool</code> + </InvalidNullableReturnType> + <NullableReturnStatement> <code>$resultFileIds</code> </NullableReturnStatement> - <TooManyArguments occurrences="1"> - <code>new PreconditionFailed('Cannot filter by non-existing tag', 0, $e)</code> + <TooManyArguments> + <code><![CDATA[new PreconditionFailed('Cannot filter by non-existing tag', 0, $e)]]></code> </TooManyArguments> - <UndefinedClass occurrences="1"> + <UndefinedClass> <code>\OCA\Circles\Api\v1\Circles</code> </UndefinedClass> - <UndefinedInterfaceMethod occurrences="2"> + <UndefinedInterfaceMethod> <code>getById</code> <code>getPath</code> </UndefinedInterfaceMethod> </file> <file src="apps/dav/lib/Connector/Sabre/Node.php"> - <InvalidNullableReturnType occurrences="2"> + <InvalidNullableReturnType> <code>int</code> <code>integer</code> </InvalidNullableReturnType> - <NullableReturnStatement occurrences="2"> - <code>$this->info->getId()</code> - <code>$this->info->getId()</code> + <NullableReturnStatement> + <code><![CDATA[$this->info->getId()]]></code> + <code><![CDATA[$this->info->getId()]]></code> </NullableReturnStatement> </file> <file src="apps/dav/lib/Connector/Sabre/Principal.php"> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>array</code> </InvalidNullableReturnType> - <InvalidReturnStatement occurrences="1"> + <InvalidReturnStatement> <code>$principals</code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>string[]</code> </InvalidReturnType> - <NullableReturnStatement occurrences="8"> + <InvalidScalarArgument> + <code>$results</code> + </InvalidScalarArgument> + <NullableReturnStatement> + <code><![CDATA[$this->circleToPrincipal($decodedName) + ?: $this->circleToPrincipal($name)]]></code> <code>null</code> <code>null</code> <code>null</code> @@ -413,65 +559,65 @@ <code>null</code> <code>null</code> </NullableReturnStatement> - <UndefinedClass occurrences="2"> + <UndefinedClass> <code>\OCA\Circles\Api\v1\Circles</code> <code>\OCA\Circles\Api\v1\Circles</code> </UndefinedClass> </file> <file src="apps/dav/lib/Connector/Sabre/QuotaPlugin.php"> - <UndefinedInterfaceMethod occurrences="2"> + <UndefinedInterfaceMethod> <code>getPath</code> <code>getPath</code> </UndefinedInterfaceMethod> </file> <file src="apps/dav/lib/Connector/Sabre/ServerFactory.php"> - <TooManyArguments occurrences="1"> + <TooManyArguments> <code>new \OCA\DAV\Connector\Sabre\QuotaPlugin($view, true)</code> </TooManyArguments> </file> <file src="apps/dav/lib/Connector/Sabre/ShareTypeList.php"> - <InvalidScalarArgument occurrences="1"> + <InvalidArgument> <code>$shareType</code> - </InvalidScalarArgument> + </InvalidArgument> </file> <file src="apps/dav/lib/Connector/Sabre/ShareeList.php"> - <InvalidScalarArgument occurrences="1"> - <code>$share->getShareType()</code> - </InvalidScalarArgument> + <InvalidArgument> + <code><![CDATA[$share->getShareType()]]></code> + </InvalidArgument> </file> <file src="apps/dav/lib/Connector/Sabre/TagsPlugin.php"> - <NullableReturnStatement occurrences="1"> + <NullableReturnStatement> <code>null</code> </NullableReturnStatement> - <UndefinedInterfaceMethod occurrences="1"> + <UndefinedInterfaceMethod> <code>getId</code> </UndefinedInterfaceMethod> </file> <file src="apps/dav/lib/Controller/InvitationResponseController.php"> - <UndefinedPropertyAssignment occurrences="1"> - <code>$vEvent->DTSTAMP</code> + <UndefinedPropertyAssignment> + <code><![CDATA[$vEvent->DTSTAMP]]></code> </UndefinedPropertyAssignment> </file> <file src="apps/dav/lib/DAV/CustomPropertiesBackend.php"> - <InvalidArgument occurrences="1"> + <InvalidArgument> <code>$whereValues</code> </InvalidArgument> </file> <file src="apps/dav/lib/DAV/GroupPrincipalBackend.php"> - <InvalidNullableReturnType occurrences="2"> + <InvalidNullableReturnType> <code>array</code> <code>string</code> </InvalidNullableReturnType> - <InvalidReturnStatement occurrences="1"> + <InvalidReturnStatement> <code>$principals</code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>string[]</code> </InvalidReturnType> - <MoreSpecificImplementedParamType occurrences="1"> + <MoreSpecificImplementedParamType> <code>$members</code> </MoreSpecificImplementedParamType> - <NullableReturnStatement occurrences="7"> + <NullableReturnStatement> <code>null</code> <code>null</code> <code>null</code> @@ -482,73 +628,145 @@ </NullableReturnStatement> </file> <file src="apps/dav/lib/DAV/SystemPrincipalBackend.php"> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>array</code> </InvalidNullableReturnType> - <NullableReturnStatement occurrences="1"> + <NullableReturnStatement> <code>null</code> </NullableReturnStatement> </file> <file src="apps/dav/lib/Direct/Server.php"> - <UndefinedThisPropertyAssignment occurrences="1"> - <code>$this->enablePropfindDepthInfinityf</code> + <UndefinedThisPropertyAssignment> + <code><![CDATA[$this->enablePropfindDepthInfinityf]]></code> </UndefinedThisPropertyAssignment> </file> - <file src="apps/dav/lib/Files/BrowserErrorPagePlugin.php"> - <InvalidScalarArgument occurrences="1"> - <code>$body</code> - </InvalidScalarArgument> - </file> <file src="apps/dav/lib/Files/FileSearchBackend.php"> - <InvalidReturnStatement occurrences="1"> + <InvalidReturnStatement> <code>$value</code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>?string</code> </InvalidReturnType> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$search</code> </ParamNameMismatch> - <UndefinedPropertyFetch occurrences="1"> - <code>$operator->arguments[0]->name</code> + <RedundantCondition> + <code><![CDATA[$date->getTimestamp() !== false]]></code> + </RedundantCondition> + <UndefinedPropertyFetch> + <code><![CDATA[$operator->arguments[0]->name]]></code> + <code><![CDATA[$operator->arguments[0]->name]]></code> </UndefinedPropertyFetch> </file> <file src="apps/dav/lib/Files/LazySearchBackend.php"> - <InvalidReturnStatement occurrences="1"> - <code>$this->backend->getArbiterPath()</code> + <InvalidReturnStatement> + <code><![CDATA[$this->backend->getArbiterPath()]]></code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>bool</code> </InvalidReturnType> </file> <file src="apps/dav/lib/HookManager.php"> - <InvalidPropertyAssignmentValue occurrences="2"> - <code>$this->usersToDelete</code> - <code>$this->usersToDelete</code> + <InvalidPropertyAssignmentValue> + <code><![CDATA[$this->usersToDelete]]></code> + <code><![CDATA[$this->usersToDelete]]></code> </InvalidPropertyAssignmentValue> </file> + <file src="apps/dav/lib/Listener/ActivityUpdaterListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/dav/lib/Listener/AddressbookListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/dav/lib/Listener/BirthdayListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/dav/lib/Listener/CalendarContactInteractionListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/dav/lib/Listener/CalendarObjectReminderUpdaterListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/dav/lib/Listener/CalendarPublicationListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/dav/lib/Listener/CalendarShareUpdateListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/dav/lib/Listener/CardListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/dav/lib/Listener/ClearPhotoCacheListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/dav/lib/Listener/SubscriptionListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/dav/lib/Listener/TrustedServerRemovedListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/dav/lib/Listener/UserPreferenceListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> <file src="apps/dav/lib/Migration/BuildCalendarSearchIndexBackgroundJob.php"> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$arguments</code> </ParamNameMismatch> </file> <file src="apps/dav/lib/Migration/BuildSocialSearchIndexBackgroundJob.php"> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$arguments</code> </ParamNameMismatch> </file> + <file src="apps/dav/lib/Search/ContactsSearchProvider.php"> + <InvalidOperand> + <code><![CDATA[$query->getCursor()]]></code> + </InvalidOperand> + </file> <file src="apps/dav/lib/Search/EventsSearchProvider.php"> - <FalsableReturnStatement occurrences="1"> - <code>$this->l10n->l('date', $startDateTime, ['width' => 'medium'])</code> + <FalsableReturnStatement> + <code><![CDATA[$this->l10n->l('date', $startDateTime, ['width' => 'medium'])]]></code> </FalsableReturnStatement> - <InvalidPropertyAssignmentValue occurrences="1"/> - <InvalidReturnStatement occurrences="1"> - <code>$this->l10n->l('date', $startDateTime, ['width' => 'medium'])</code> + <InvalidOperand> + <code><![CDATA[$query->getCursor()]]></code> + </InvalidOperand> + <InvalidPropertyAssignmentValue> + <code><![CDATA[[ + 'ATTENDEE' => ['CN'], + 'ORGANIZER' => ['CN'], + ]]]></code> + </InvalidPropertyAssignmentValue> + <InvalidReturnStatement> + <code><![CDATA[$this->l10n->l('date', $startDateTime, ['width' => 'medium'])]]></code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>string</code> </InvalidReturnType> - <UndefinedMethod occurrences="5"> + <UndefinedMethod> <code>getDateTime</code> <code>getDateTime</code> <code>hasTime</code> @@ -557,106 +775,116 @@ </UndefinedMethod> </file> <file src="apps/dav/lib/Search/TasksSearchProvider.php"> - <UndefinedMethod occurrences="3"> + <InvalidOperand> + <code><![CDATA[$query->getCursor()]]></code> + </InvalidOperand> + <UndefinedMethod> <code>getDateTime</code> <code>getDateTime</code> <code>hasTime</code> </UndefinedMethod> </file> <file src="apps/dav/lib/Server.php"> - <InvalidArgument occurrences="2"> - <code>'OCA\DAV\Connector\Sabre::addPlugin'</code> - <code>'OCA\DAV\Connector\Sabre::authInit'</code> + <InvalidArgument> + <code><![CDATA['OCA\DAV\Connector\Sabre::addPlugin']]></code> + <code><![CDATA['OCA\DAV\Connector\Sabre::authInit']]></code> </InvalidArgument> - <TooManyArguments occurrences="2"> + <TooManyArguments> <code>dispatch</code> <code>dispatch</code> </TooManyArguments> </file> <file src="apps/dav/lib/SystemTag/SystemTagsObjectMappingCollection.php"> - <ParamNameMismatch occurrences="2"> + <ParamNameMismatch> <code>$tagId</code> <code>$tagName</code> </ParamNameMismatch> </file> <file src="apps/dav/lib/SystemTag/SystemTagsObjectTypeCollection.php"> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$objectName</code> </ParamNameMismatch> </file> <file src="apps/dav/lib/SystemTag/SystemTagsRelationsCollection.php"> - <InvalidArgument occurrences="1"> + <InvalidArgument> <code>SystemTagsEntityEvent::EVENT_ENTITY</code> </InvalidArgument> - <TooManyArguments occurrences="1"> + <TooManyArguments> <code>dispatch</code> </TooManyArguments> </file> <file src="apps/dav/lib/Traits/PrincipalProxyTrait.php"> - <MoreSpecificImplementedParamType occurrences="1"> + <MoreSpecificImplementedParamType> <code>$members</code> </MoreSpecificImplementedParamType> </file> <file src="apps/dav/lib/Upload/AssemblyStream.php"> - <FalsableReturnStatement occurrences="1"> + <FalsableReturnStatement> <code>false</code> </FalsableReturnStatement> - <InvalidPropertyAssignmentValue occurrences="1"> - <code>$this->currentStream</code> + <InvalidPropertyAssignmentValue> + <code><![CDATA[$this->currentStream]]></code> </InvalidPropertyAssignmentValue> - <InvalidReturnStatement occurrences="1"> + <InvalidReturnStatement> <code>$context</code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>array</code> </InvalidReturnType> - <RedundantFunctionCall occurrences="1"> + <RedundantFunctionCall> <code>array_values</code> </RedundantFunctionCall> </file> + <file src="apps/dav/lib/Upload/ChunkingV2Plugin.php"> + <UndefinedInterfaceMethod> + <code>getId</code> + <code>getId</code> + <code>getId</code> + <code>getInternalPath</code> + <code>getNode</code> + <code>getSize</code> + </UndefinedInterfaceMethod> + </file> <file src="apps/encryption/lib/Command/ScanLegacyFormat.php"> - <InvalidOperand occurrences="1"> - <code>$this->scanFolder($output, '/' . $user)</code> + <InvalidOperand> + <code><![CDATA[$this->scanFolder($output, '/' . $user)]]></code> </InvalidOperand> </file> <file src="apps/encryption/lib/Crypto/Crypt.php"> - <RedundantCondition occurrences="2"> - <code>$userSession</code> + <RedundantCondition> <code>$userSession</code> </RedundantCondition> - <TypeDoesNotContainType occurrences="1"> - <code>get_class($res) === 'OpenSSLAsymmetricKey'</code> + <TypeDoesNotContainType> + <code><![CDATA[get_class($res) === 'OpenSSLAsymmetricKey']]></code> </TypeDoesNotContainType> </file> <file src="apps/encryption/lib/Crypto/Encryption.php"> - <ImplementedParamTypeMismatch occurrences="1"> - <code>$position</code> + <ImplementedParamTypeMismatch> <code>$position</code> </ImplementedParamTypeMismatch> </file> <file src="apps/encryption/lib/KeyManager.php"> - <InvalidScalarArgument occurrences="3"> + <InvalidScalarArgument> <code>time()</code> <code>time()</code> <code>time()</code> </InvalidScalarArgument> - <InvalidThrow occurrences="1"> + <InvalidThrow> <code>throw $exception;</code> </InvalidThrow> </file> <file src="apps/encryption/lib/Session.php"> - <TooManyArguments occurrences="1"> - <code>new Exceptions\PrivateKeyMissingException('please try to log-out and log-in again', 0)</code> + <TooManyArguments> + <code><![CDATA[new Exceptions\PrivateKeyMissingException('please try to log-out and log-in again', 0)]]></code> </TooManyArguments> </file> <file src="apps/encryption/lib/Util.php"> - <RedundantCondition occurrences="2"> - <code>$userSession</code> + <RedundantCondition> <code>$userSession</code> </RedundantCondition> </file> <file src="apps/federatedfilesharing/lib/Controller/RequestHandlerController.php"> - <InvalidScalarArgument occurrences="7"> + <InvalidArgument> <code>$id</code> <code>$id</code> <code>$id</code> @@ -664,97 +892,117 @@ <code>$id</code> <code>$id</code> <code>$remoteId</code> - </InvalidScalarArgument> - <TypeDoesNotContainNull occurrences="3"> + </InvalidArgument> + <TypeDoesNotContainNull> + <code>$id === null || + $token === null || + $shareWith === null || + $permission === null</code> <code>$permission === null</code> <code>$remoteId === null</code> </TypeDoesNotContainNull> </file> <file src="apps/federatedfilesharing/lib/FederatedShareProvider.php"> - <InvalidScalarArgument occurrences="5"> + <InvalidArgument> <code>$shareId</code> <code>$shareId</code> <code>$shareId</code> <code>$shareId</code> - <code>(int)$data['id']</code> - </InvalidScalarArgument> + <code><![CDATA[(int)$data['id']]]></code> + </InvalidArgument> + </file> + <file src="apps/federatedfilesharing/lib/Listeners/LoadAdditionalScriptsListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> </file> <file src="apps/federatedfilesharing/lib/Notifications.php"> - <InvalidReturnType occurrences="3"> + <InvalidReturnType> <code>bool</code> <code>bool</code> <code>bool</code> </InvalidReturnType> </file> <file src="apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php"> - <InvalidReturnStatement occurrences="1"> - <code>$shareId</code> - </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> - <code>string</code> - </InvalidReturnType> - <InvalidScalarArgument occurrences="5"> + <InvalidArgument> <code>$id</code> <code>$id</code> <code>$id</code> <code>$id</code> - <code>(int)$share['id']</code> + </InvalidArgument> + <InvalidReturnStatement> + <code>$shareId</code> + </InvalidReturnStatement> + <InvalidReturnType> + <code>string</code> + </InvalidReturnType> + <InvalidScalarArgument> + <code><![CDATA[(int)$share['id']]]></code> </InvalidScalarArgument> </file> + <file src="apps/federation/lib/Listener/SabrePluginAuthInitListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> <file src="apps/files/ajax/download.php"> - <InvalidArgument occurrences="1"> + <InvalidArgument> <code>$files_list</code> </InvalidArgument> </file> <file src="apps/files/lib/Activity/Provider.php"> - <FalsableReturnStatement occurrences="1"> - <code>$this->fileEncrypted[$fileId]</code> + <FalsableReturnStatement> + <code><![CDATA[$this->fileEncrypted[$fileId]]]></code> </FalsableReturnStatement> - <InvalidScalarArgument occurrences="1"> - <code>$id</code> - </InvalidScalarArgument> - <TypeDoesNotContainType occurrences="7"> - <code>$this->fileIsEncrypted</code> - <code>$this->fileIsEncrypted</code> - <code>$this->fileIsEncrypted</code> - <code>$this->fileIsEncrypted</code> - <code>$this->fileIsEncrypted</code> - <code>$this->fileIsEncrypted</code> - <code>$this->fileIsEncrypted</code> + <TypeDoesNotContainType> + <code><![CDATA[$this->fileIsEncrypted]]></code> + <code><![CDATA[$this->fileIsEncrypted]]></code> + <code><![CDATA[$this->fileIsEncrypted]]></code> + <code><![CDATA[$this->fileIsEncrypted]]></code> + <code><![CDATA[$this->fileIsEncrypted]]></code> + <code><![CDATA[$this->fileIsEncrypted]]></code> + <code><![CDATA[$this->fileIsEncrypted]]></code> + <code><![CDATA[$this->fileIsEncrypted]]></code> + <code><![CDATA[$this->fileIsEncrypted]]></code> + <code><![CDATA[$this->fileIsEncrypted]]></code> + <code><![CDATA[$this->fileIsEncrypted]]></code> + <code><![CDATA[$this->fileIsEncrypted]]></code> + <code><![CDATA[$this->fileIsEncrypted]]></code> + <code><![CDATA[$this->fileIsEncrypted]]></code> </TypeDoesNotContainType> </file> <file src="apps/files/lib/Command/Scan.php"> - <NullArgument occurrences="1"> + <NullArgument> <code>null</code> </NullArgument> </file> <file src="apps/files/lib/Command/ScanAppData.php"> - <NullArgument occurrences="2"> + <NullArgument> <code>null</code> <code>null</code> </NullArgument> </file> <file src="apps/files/lib/Controller/DirectEditingController.php"> - <InvalidArgument occurrences="1"> + <InvalidArgument> <code>$templateId</code> </InvalidArgument> - <UndefinedInterfaceMethod occurrences="2"> + <UndefinedInterfaceMethod> <code>getTemplates</code> <code>open</code> </UndefinedInterfaceMethod> </file> <file src="apps/files/lib/Controller/ViewController.php"> - <InvalidScalarArgument occurrences="1"> + <InvalidArgument> <code>$fileId</code> - </InvalidScalarArgument> - <UndefinedInterfaceMethod occurrences="3"> + </InvalidArgument> + <UndefinedInterfaceMethod> <code>getById</code> <code>getRelativePath</code> <code>getRelativePath</code> </UndefinedInterfaceMethod> </file> <file src="apps/files/lib/Helper.php"> - <UndefinedInterfaceMethod occurrences="13"> + <UndefinedInterfaceMethod> <code>$file</code> <code>$i</code> <code>$i</code> @@ -771,509 +1019,745 @@ </UndefinedInterfaceMethod> </file> <file src="apps/files/lib/Listener/LegacyLoadAdditionalScriptsAdapter.php"> - <InvalidArgument occurrences="1"> + <InvalidArgument> <code>$legacyEvent</code> </InvalidArgument> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/files/lib/Listener/LoadSidebarListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/files/lib/Listener/RenderReferenceEventListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> </file> <file src="apps/files/lib/Service/OwnershipTransferService.php"> - <InvalidIterator occurrences="1"> - <code>$encryptedFiles</code> - </InvalidIterator> - <TypeDoesNotContainType occurrences="1"> + <TypeDoesNotContainType> <code>empty($encryptedFiles)</code> </TypeDoesNotContainType> - <UndefinedInterfaceMethod occurrences="1"> + <UndefinedInterfaceMethod> <code>isReadyForUser</code> </UndefinedInterfaceMethod> </file> <file src="apps/files/lib/Service/TagService.php"> - <InvalidArgument occurrences="1"> - <code>self::class . '::' . $eventName</code> + <InvalidArgument> + <code><![CDATA[self::class . '::' . $eventName]]></code> </InvalidArgument> - <TooManyArguments occurrences="1"> + <TooManyArguments> <code>dispatch</code> </TooManyArguments> </file> <file src="apps/files_external/appinfo/routes.php"> - <InvalidScope occurrences="1"> + <InvalidScope> <code>$this</code> </InvalidScope> </file> - <file src="apps/files_external/lib/Config/ConfigAdapter.php"> - <UndefinedClass occurrences="1"> - <code>new $objectClass($objectStore)</code> - </UndefinedClass> + <file src="apps/files_external/lib/Controller/StoragesController.php"> + <RedundantCast> + <code><![CDATA[(int)$e->getCode()]]></code> + <code>(int)$status</code> + </RedundantCast> </file> <file src="apps/files_external/lib/Controller/UserGlobalStoragesController.php"> - <UndefinedMethod occurrences="1"> + <UndefinedMethod> <code>getUniqueStorages</code> </UndefinedMethod> </file> - <file src="apps/files_external/lib/Lib/Auth/Password/LoginCredentials.php"> - <InvalidArgument occurrences="2"> - <code>addServiceListener</code> - <code>addServiceListener</code> - </InvalidArgument> + <file src="apps/files_external/lib/Lib/Storage/AmazonS3.php"> + <InvalidReturnStatement> + <code><![CDATA[IteratorDirectory::wrap(array_map(function (array $item) { + return $item['name']; + }, $content))]]></code> + </InvalidReturnStatement> + <InvalidReturnType> + <code>opendir</code> + </InvalidReturnType> </file> <file src="apps/files_external/lib/Lib/Storage/SFTP.php"> - <InternalMethod occurrences="1"> + <InternalMethod> <code>put</code> </InternalMethod> + <InvalidReturnStatement> + <code>IteratorDirectory::wrap($dirStream)</code> + </InvalidReturnStatement> + <InvalidReturnType> + <code>opendir</code> + </InvalidReturnType> + </file> + <file src="apps/files_external/lib/Lib/Storage/SMB.php"> + <InvalidReturnStatement> + <code>IteratorDirectory::wrap($names)</code> + </InvalidReturnStatement> + <InvalidReturnType> + <code>opendir</code> + </InvalidReturnType> + <RedundantCast> + <code><![CDATA[(int)$e->getCode()]]></code> + <code><![CDATA[(int)$e->getCode()]]></code> + <code><![CDATA[(int)$e->getCode()]]></code> + <code><![CDATA[(int)$e->getCode()]]></code> + <code><![CDATA[(int)$e->getCode()]]></code> + <code><![CDATA[(int)$e->getCode()]]></code> + <code><![CDATA[(int)$e->getCode()]]></code> + </RedundantCast> </file> <file src="apps/files_external/lib/Lib/Storage/Swift.php"> - <InvalidArgument occurrences="1"> - <code>$object->lastModified</code> + <InvalidArgument> + <code><![CDATA[$object->lastModified]]></code> </InvalidArgument> - <InvalidNullableReturnType occurrences="2"> + <InvalidNullableReturnType> <code>filetype</code> <code>fopen</code> </InvalidNullableReturnType> + <InvalidReturnStatement> + <code>IteratorDirectory::wrap($files)</code> + </InvalidReturnStatement> + <InvalidReturnType> + <code>opendir</code> + </InvalidReturnType> + </file> + <file src="apps/files_external/lib/Listener/GroupDeletedListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/files_external/lib/Listener/StorePasswordListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/files_external/lib/Listener/UserDeletedListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> </file> <file src="apps/files_external/lib/Migration/DummyUserSession.php"> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>login</code> </InvalidReturnType> </file> <file src="apps/files_external/lib/MountConfig.php"> - <InternalMethod occurrences="4"> + <InternalMethod> <code>decrypt</code> <code>encrypt</code> <code>setIV</code> <code>setIV</code> </InternalMethod> - <TooManyArguments occurrences="1"> + <TooManyArguments> <code>test</code> </TooManyArguments> </file> <file src="apps/files_external/lib/Service/BackendService.php"> - <InvalidArgument occurrences="1"> - <code>'OCA\\Files_External::loadAdditionalBackends'</code> + <InvalidArgument> + <code><![CDATA['OCA\\Files_External::loadAdditionalBackends']]></code> </InvalidArgument> - <TooManyArguments occurrences="1"> + <TooManyArguments> <code>dispatch</code> </TooManyArguments> </file> - <file src="apps/files_sharing/lib/AppInfo/Application.php"> - <InvalidArgument occurrences="6"> - <code>addServiceListener</code> - <code>addServiceListener</code> - <code>addServiceListener</code> - <code>addServiceListener</code> - <code>addServiceListener</code> - <code>addServiceListener</code> - </InvalidArgument> - </file> <file src="apps/files_sharing/lib/Controller/ShareAPIController.php"> - <UndefinedClass occurrences="2"> + <RedundantCast> + <code>(int)$code</code> + <code>(int)$code</code> + </RedundantCast> + <UndefinedClass> <code>\OCA\Circles\Api\v1\Circles</code> <code>\OCA\Circles\Api\v1\Circles</code> </UndefinedClass> - <UndefinedDocblockClass occurrences="4"> - <code>$this->getRoomShareHelper()</code> - <code>$this->getRoomShareHelper()</code> - <code>$this->getRoomShareHelper()</code> + <UndefinedDocblockClass> + <code><![CDATA[$this->getRoomShareHelper()]]></code> + <code><![CDATA[$this->getRoomShareHelper()]]></code> + <code><![CDATA[$this->getRoomShareHelper()]]></code> <code>\OCA\Talk\Share\Helper\ShareAPIController</code> </UndefinedDocblockClass> </file> <file src="apps/files_sharing/lib/Controller/ShareController.php"> - <InvalidArgument occurrences="1"> + <InvalidArgument> <code>$files_list</code> </InvalidArgument> </file> <file src="apps/files_sharing/lib/External/Scanner.php"> - <MoreSpecificImplementedParamType occurrences="1"> + <MoreSpecificImplementedParamType> <code>$cacheData</code> </MoreSpecificImplementedParamType> </file> <file src="apps/files_sharing/lib/Listener/LegacyBeforeTemplateRenderedListener.php"> - <InvalidArgument occurrences="1"> + <InvalidArgument> <code>$legacyEvent</code> </InvalidArgument> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/files_sharing/lib/Listener/LoadAdditionalListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/files_sharing/lib/Listener/LoadSidebarListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/files_sharing/lib/Listener/ShareInteractionListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/files_sharing/lib/Listener/UserAddedToGroupListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/files_sharing/lib/Listener/UserShareAcceptanceListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> </file> <file src="apps/files_sharing/lib/Middleware/SharingCheckMiddleware.php"> - <InvalidArgument occurrences="1"> - <code>$exception->getMessage()</code> + <InvalidArgument> + <code><![CDATA[$exception->getMessage()]]></code> </InvalidArgument> </file> <file src="apps/files_sharing/lib/MountProvider.php"> - <RedundantFunctionCall occurrences="1"> + <RedundantFunctionCall> <code>array_values</code> </RedundantFunctionCall> </file> <file src="apps/files_sharing/lib/ShareBackend/File.php"> - <InvalidScalarArgument occurrences="2"> + <InvalidArgument> <code>$itemSource</code> <code>$itemSource</code> - </InvalidScalarArgument> - <MoreSpecificImplementedParamType occurrences="1"> + </InvalidArgument> + <MoreSpecificImplementedParamType> <code>$shareWith</code> </MoreSpecificImplementedParamType> </file> <file src="apps/files_sharing/lib/ShareBackend/Folder.php"> - <UndefinedInterfaceMethod occurrences="1"> + <UndefinedInterfaceMethod> <code>fetchRow</code> </UndefinedInterfaceMethod> </file> <file src="apps/files_sharing/lib/SharedMount.php"> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>bool</code> </InvalidReturnType> </file> <file src="apps/files_sharing/lib/SharedStorage.php"> - <FalsableReturnStatement occurrences="1"> - <code>$this->sourceRootInfo</code> + <FalsableReturnStatement> + <code><![CDATA[$this->sourceRootInfo]]></code> </FalsableReturnStatement> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>ICacheEntry</code> </InvalidNullableReturnType> - <InvalidReturnStatement occurrences="1"> + <InvalidReturnStatement> <code>new FailedCache()</code> </InvalidReturnStatement> - <NullableReturnStatement occurrences="1"> - <code>$this->sourceRootInfo</code> + <NullableReturnStatement> + <code><![CDATA[$this->sourceRootInfo]]></code> </NullableReturnStatement> </file> <file src="apps/files_sharing/lib/Updater.php"> - <UndefinedMethod occurrences="1"> + <UndefinedMethod> <code>moveMount</code> </UndefinedMethod> </file> + <file src="apps/files_sharing/templates/public.php"> + <RedundantCondition> + <code><![CDATA[$_['hideFileList'] !== true]]></code> + <code><![CDATA[isset($_['hideFileList']) && $_['hideFileList'] !== true]]></code> + </RedundantCondition> + </file> + <file src="apps/files_trashbin/lib/Listeners/LoadAdditionalScripts.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> <file src="apps/files_trashbin/lib/Sabre/AbstractTrash.php"> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>int</code> </InvalidNullableReturnType> - <NullableReturnStatement occurrences="1"> - <code>$this->data->getId()</code> + <NullableReturnStatement> + <code><![CDATA[$this->data->getId()]]></code> </NullableReturnStatement> </file> <file src="apps/files_trashbin/lib/Sabre/AbstractTrashFolder.php"> - <InvalidReturnStatement occurrences="1"> + <InvalidReturnStatement> <code>$entry</code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>ITrash</code> </InvalidReturnType> </file> <file src="apps/files_trashbin/lib/Sabre/RestoreFolder.php"> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>getChild</code> </InvalidNullableReturnType> - <NullableReturnStatement occurrences="1"> + <NullableReturnStatement> <code>null</code> </NullableReturnStatement> </file> <file src="apps/files_trashbin/lib/Sabre/RootCollection.php"> - <MismatchingDocblockReturnType occurrences="1"> + <MismatchingDocblockReturnType> <code>INode</code> </MismatchingDocblockReturnType> </file> <file src="apps/files_trashbin/lib/Sabre/TrashRoot.php"> - <InvalidReturnStatement occurrences="1"> + <InvalidReturnStatement> <code>$entry</code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>ITrash</code> </InvalidReturnType> </file> <file src="apps/files_trashbin/lib/Storage.php"> - <InvalidArgument occurrences="1"> - <code>'OCA\Files_Trashbin::moveToTrash'</code> + <InvalidArgument> + <code><![CDATA['OCA\Files_Trashbin::moveToTrash']]></code> </InvalidArgument> - <InvalidOperand occurrences="1"> - <code>$this->mountPoint</code> + <InvalidOperand> + <code><![CDATA[$this->mountPoint]]></code> </InvalidOperand> - <TooManyArguments occurrences="1"> + <TooManyArguments> <code>dispatch</code> </TooManyArguments> </file> <file src="apps/files_trashbin/lib/Trash/LegacyTrashBackend.php"> - <RedundantCondition occurrences="2"> - <code>$trashFiles</code> + <RedundantCondition> <code>$trashFiles</code> </RedundantCondition> - <TypeDoesNotContainType occurrences="1"> + <TypeDoesNotContainType> <code>null</code> </TypeDoesNotContainType> - <UndefinedInterfaceMethod occurrences="2"> + <UndefinedInterfaceMethod> <code>$file</code> <code>getById</code> </UndefinedInterfaceMethod> </file> <file src="apps/files_trashbin/lib/Trashbin.php"> - <FalsableReturnStatement occurrences="1"> + <FalsableReturnStatement> <code>false</code> </FalsableReturnStatement> - <InvalidScalarArgument occurrences="2"> + <InvalidArgument> <code>$timestamp</code> + </InvalidArgument> + <InvalidScalarArgument> <code>$timestamp</code> </InvalidScalarArgument> </file> <file src="apps/files_versions/appinfo/routes.php"> - <InvalidScope occurrences="2"> + <InvalidScope> <code>$this</code> <code>$this</code> </InvalidScope> </file> + <file src="apps/files_versions/lib/Listener/FileEventsListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/files_versions/lib/Listener/LoadAdditionalListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/files_versions/lib/Listener/LoadSidebarListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> <file src="apps/files_versions/lib/Sabre/RestoreFolder.php"> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>getChild</code> </InvalidNullableReturnType> - <NullableReturnStatement occurrences="1"> + <NullableReturnStatement> <code>null</code> </NullableReturnStatement> </file> <file src="apps/files_versions/lib/Sabre/VersionHome.php"> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>getChild</code> </InvalidNullableReturnType> </file> + <file src="apps/files_versions/lib/Storage.php"> + <RedundantCondition> + <code><![CDATA[$storage1->instanceOfStorage('\OC\Files\ObjectStore\ObjectStoreStorage')]]></code> + </RedundantCondition> + </file> <file src="apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php"> - <InvalidScalarArgument occurrences="1"> - <code>$this->retries + 1</code> - </InvalidScalarArgument> + <InvalidArgument> + <code><![CDATA[$this->retries + 1]]></code> + </InvalidArgument> </file> <file src="apps/oauth2/lib/Controller/OauthApiController.php"> - <NoInterfaceProperties occurrences="1"> - <code>$this->request->server</code> + <NoInterfaceProperties> + <code><![CDATA[$this->request->server]]></code> </NoInterfaceProperties> </file> <file src="apps/provisioning_api/lib/Controller/UsersController.php"> - <TypeDoesNotContainNull occurrences="2"> + <TypeDoesNotContainNull> <code>$groupid === null</code> <code>$groupid === null</code> </TypeDoesNotContainNull> </file> + <file src="apps/provisioning_api/lib/Listener/UserDeletedListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/provisioning_api/lib/Middleware/ProvisioningApiMiddleware.php"> + <InvalidReturnType> + <code>Response</code> + </InvalidReturnType> + </file> <file src="apps/settings/lib/AppInfo/Application.php"> - <InvalidArgument occurrences="1"> + <InvalidArgument> <code>AppPasswordCreatedActivityListener::class</code> </InvalidArgument> - <UndefinedInterfaceMethod occurrences="1"> + <UndefinedInterfaceMethod> <code>getSettingsManager</code> </UndefinedInterfaceMethod> </file> <file src="apps/settings/lib/Controller/AppSettingsController.php"> - <UndefinedInterfaceMethod occurrences="1"> + <UndefinedInterfaceMethod> <code>ignoreNextcloudRequirementForApp</code> </UndefinedInterfaceMethod> </file> <file src="apps/settings/lib/Controller/CheckSetupController.php"> - <InvalidArgument occurrences="3"> + <InvalidArgument> <code>IDBConnection::CHECK_MISSING_COLUMNS_EVENT</code> <code>IDBConnection::CHECK_MISSING_INDEXES_EVENT</code> <code>IDBConnection::CHECK_MISSING_PRIMARY_KEYS_EVENT</code> </InvalidArgument> - <TooManyArguments occurrences="3"> + <TooManyArguments> <code>dispatch</code> <code>dispatch</code> <code>dispatch</code> </TooManyArguments> </file> <file src="apps/settings/lib/Hooks.php"> - <InvalidArrayOffset occurrences="1"> - <code>[$user->getEMailAddress() => $user->getDisplayName()]</code> + <InvalidArrayOffset> + <code><![CDATA[[$user->getEMailAddress() => $user->getDisplayName()]]]></code> </InvalidArrayOffset> </file> + <file src="apps/settings/lib/Listener/GroupRemovedListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/settings/lib/Listener/UserAddedToGroupActivityListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/settings/lib/Listener/UserRemovedFromGroupActivityListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> <file src="apps/settings/lib/Settings/Admin/Security.php"> - <UndefinedInterfaceMethod occurrences="1"> + <UndefinedInterfaceMethod> <code>isReady</code> </UndefinedInterfaceMethod> </file> <file src="apps/settings/lib/Settings/Admin/Sharing.php"> - <NullArgument occurrences="1"> + <NullArgument> <code>null</code> </NullArgument> </file> <file src="apps/sharebymail/lib/ShareByMailProvider.php"> - <InvalidScalarArgument occurrences="2"> - <code>$share->getId()</code> - <code>(int)$data['id']</code> - </InvalidScalarArgument> + <InvalidArgument> + <code><![CDATA[$share->getId()]]></code> + <code><![CDATA[(int)$data['id']]]></code> + </InvalidArgument> </file> <file src="apps/systemtags/lib/Activity/Listener.php"> - <InvalidScalarArgument occurrences="2"> - <code>$event->getObjectId()</code> - <code>$event->getObjectId()</code> - </InvalidScalarArgument> + <InvalidArgument> + <code><![CDATA[$event->getObjectId()]]></code> + <code><![CDATA[$event->getObjectId()]]></code> + </InvalidArgument> + </file> + <file src="apps/theming/lib/Jobs/MigrateBackgroundImages.php"> + <OverriddenInterfaceConstant> + <code>TIME_SENSITIVE</code> + </OverriddenInterfaceConstant> + </file> + <file src="apps/theming/lib/Listener/BeforePreferenceListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/theming/lib/Listener/BeforeTemplateRenderedListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/theming/lib/Util.php"> + <InvalidReturnStatement> + <code><![CDATA[array_values($color->getRgb())]]></code> + </InvalidReturnStatement> + <InvalidReturnType> + <code>array{0: int, 1: int, 2: int}</code> + </InvalidReturnType> + </file> + <file src="apps/twofactor_backupcodes/lib/Listener/ActivityPublisher.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/twofactor_backupcodes/lib/Listener/ClearNotifications.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/twofactor_backupcodes/lib/Listener/ProviderDisabled.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/twofactor_backupcodes/lib/Listener/ProviderEnabled.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/twofactor_backupcodes/lib/Listener/RegistryUpdater.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/twofactor_backupcodes/lib/Listener/UserDeleted.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> </file> <file src="apps/updatenotification/lib/Notification/BackgroundJob.php"> - <InvalidArgument occurrences="1"> + <InvalidArgument> <code>false</code> </InvalidArgument> - <InvalidPropertyAssignmentValue occurrences="1"> - <code>$this->users</code> + <InvalidPropertyAssignmentValue> + <code><![CDATA[$this->users]]></code> </InvalidPropertyAssignmentValue> </file> <file src="apps/user_ldap/ajax/getNewServerConfigPrefix.php"> - <InvalidScalarArgument occurrences="1"> + <InvalidScalarArgument> <code>$ln + 1</code> </InvalidScalarArgument> </file> <file src="apps/user_ldap/appinfo/routes.php"> - <InvalidScope occurrences="1"> + <InvalidScope> <code>$this</code> </InvalidScope> </file> <file src="apps/user_ldap/lib/Access.php"> - <InvalidReturnStatement occurrences="2"> + <InvalidReturnStatement> <code>$uuid</code> <code>$values</code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>string[]</code> </InvalidReturnType> + <RedundantCast> + <code><![CDATA[(int)$e->getCode()]]></code> + </RedundantCast> </file> <file src="apps/user_ldap/lib/AppInfo/Application.php"> - <InvalidArgument occurrences="1"> - <code>'OCA\\User_LDAP\\User\\User::postLDAPBackendAdded'</code> + <InvalidArgument> + <code><![CDATA['OCA\\User_LDAP\\User\\User::postLDAPBackendAdded']]></code> </InvalidArgument> - <TooManyArguments occurrences="1"> + <TooManyArguments> <code>dispatch</code> </TooManyArguments> </file> <file src="apps/user_ldap/lib/Connection.php"> - <ParadoxicalCondition occurrences="1"/> + <NoValue> + <code>$subj</code> + </NoValue> + <ParadoxicalCondition> + <code>default: + $subj = $key; + break;</code> + </ParadoxicalCondition> </file> <file src="apps/user_ldap/lib/Group_LDAP.php"> - <InvalidScalarArgument occurrences="1"> + <InvalidScalarArgument> <code>$groupID</code> </InvalidScalarArgument> </file> <file src="apps/user_ldap/lib/Group_Proxy.php"> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$gid</code> </ParamNameMismatch> </file> <file src="apps/user_ldap/lib/Jobs/Sync.php"> - <InvalidOperand occurrences="1"> + <InvalidOperand> <code>$i</code> </InvalidOperand> - <NullArgument occurrences="1"> + <NullArgument> <code>null</code> </NullArgument> </file> <file src="apps/user_ldap/lib/Mapping/AbstractMapping.php"> - <RedundantCondition occurrences="1"> + <RedundantCondition> <code>isset($qb)</code> </RedundantCondition> - <TypeDoesNotContainNull occurrences="1"> + <TypeDoesNotContainNull> <code>isset($qb)</code> </TypeDoesNotContainNull> </file> <file src="apps/user_ldap/lib/Proxy.php"> - <InvalidDocblock occurrences="1"> + <InvalidDocblock> <code>protected function handleRequest($id, $method, $parameters, $passOnWhen = false) {</code> </InvalidDocblock> </file> <file src="apps/user_ldap/lib/User/Manager.php"> - <InvalidDocblock occurrences="1"> + <InvalidDocblock> <code>public function setLdapAccess(Access $access) {</code> </InvalidDocblock> </file> <file src="apps/user_ldap/lib/User/User.php"> - <FalsableReturnStatement occurrences="1"> - <code>$this->avatarImage</code> + <FalsableReturnStatement> + <code><![CDATA[$this->avatarImage]]></code> </FalsableReturnStatement> - <InvalidPropertyAssignmentValue occurrences="1"> - <code>$this->refreshedFeatures</code> + <InvalidPropertyAssignmentValue> + <code><![CDATA[$this->refreshedFeatures]]></code> </InvalidPropertyAssignmentValue> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>null</code> </InvalidReturnType> + <RedundantCondition> + <code><![CDATA[$aQuota && (count($aQuota) > 0)]]></code> + </RedundantCondition> </file> <file src="apps/user_ldap/lib/User_LDAP.php"> - <ImplementedReturnTypeMismatch occurrences="1"> + <ImplementedReturnTypeMismatch> <code>string|false</code> </ImplementedReturnTypeMismatch> - <MoreSpecificImplementedParamType occurrences="2"> + <MoreSpecificImplementedParamType> <code>$limit</code> <code>$offset</code> </MoreSpecificImplementedParamType> - <NullableReturnStatement occurrences="1"> + <NullableReturnStatement> <code>null</code> </NullableReturnStatement> + <RedundantCondition> + <code><![CDATA[$displayName && (count($displayName) > 0)]]></code> + <code>is_string($dn)</code> + </RedundantCondition> </file> <file src="apps/user_ldap/lib/User_Proxy.php"> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$uid</code> </ParamNameMismatch> </file> + <file src="apps/user_ldap/lib/Wizard.php"> + <InvalidArrayOffset> + <code>$possibleAttrs[$i]</code> + </InvalidArrayOffset> + </file> <file src="apps/user_status/lib/AppInfo/Application.php"> - <UndefinedInterfaceMethod occurrences="1"> + <UndefinedInterfaceMethod> <code>registerProvider</code> </UndefinedInterfaceMethod> </file> + <file src="apps/user_status/lib/Listener/BeforeTemplateRenderedListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/user_status/lib/Listener/UserDeletedListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="apps/user_status/lib/Listener/UserLiveStatusListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> <file src="apps/workflowengine/lib/Check/AbstractStringCheck.php"> - <NullArgument occurrences="1"> + <NullArgument> <code>null</code> </NullArgument> </file> <file src="apps/workflowengine/lib/Check/FileSize.php"> - <FalsableReturnStatement occurrences="1"> - <code>$this->size</code> + <FalsableReturnStatement> + <code><![CDATA[$this->size]]></code> </FalsableReturnStatement> - <InvalidPropertyAssignmentValue occurrences="1"> + <InvalidPropertyAssignmentValue> <code>$size</code> </InvalidPropertyAssignmentValue> - <InvalidReturnStatement occurrences="1"> - <code>$this->size</code> + <InvalidReturnStatement> + <code><![CDATA[$this->size]]></code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>string</code> </InvalidReturnType> </file> + <file src="apps/workflowengine/lib/Check/FileSystemTags.php"> + <UndefinedDocblockClass> + <code><![CDATA[$this->storage]]></code> + </UndefinedDocblockClass> + </file> <file src="apps/workflowengine/lib/Check/RequestRemoteAddress.php"> - <InvalidScalarArgument occurrences="4"> + <InvalidArgument> <code>$decodedValue[1]</code> <code>$decodedValue[1]</code> <code>$decodedValue[1]</code> <code>$decodedValue[1]</code> - </InvalidScalarArgument> + </InvalidArgument> </file> <file src="apps/workflowengine/lib/Check/RequestTime.php"> - <InvalidScalarArgument occurrences="2"> + <InvalidScalarArgument> <code>$hour1</code> <code>$minute1</code> </InvalidScalarArgument> </file> <file src="apps/workflowengine/lib/Check/TFileCheck.php"> - <InvalidArgument occurrences="1"> - <code>['app' => Application::APP_ID, 'class' => get_class($subject)]</code> + <InvalidArgument> + <code><![CDATA[['app' => Application::APP_ID, 'class' => get_class($subject)]]]></code> </InvalidArgument> </file> <file src="apps/workflowengine/lib/Entity/File.php"> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>string</code> </InvalidReturnType> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$uid</code> </ParamNameMismatch> </file> + <file src="apps/workflowengine/lib/Listener/LoadAdditionalSettingsScriptsListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> <file src="apps/workflowengine/lib/Manager.php"> - <InvalidArgument occurrences="3"> + <InvalidArgument> + <code>$missingCheck</code> <code>IManager::EVENT_NAME_REG_CHECK</code> <code>IManager::EVENT_NAME_REG_ENTITY</code> <code>IManager::EVENT_NAME_REG_OPERATION</code> </InvalidArgument> - <InvalidOperand occurrences="1"> + <InvalidOperand> <code>$result</code> </InvalidOperand> - <InvalidReturnStatement occurrences="1"> + <InvalidReturnStatement> <code>$result</code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>bool</code> </InvalidReturnType> - <InvalidScalarArgument occurrences="1"> - <code>$missingCheck</code> - </InvalidScalarArgument> - <TooManyArguments occurrences="3"> + <TooManyArguments> <code>dispatch</code> <code>dispatch</code> <code>dispatch</code> </TooManyArguments> </file> <file src="apps/workflowengine/lib/Service/RuleMatcher.php"> - <UndefinedInterfaceMethod occurrences="5"> + <UndefinedInterfaceMethod> <code>getAllConfiguredScopesForOperation</code> <code>getChecks</code> <code>getOperations</code> @@ -1281,805 +1765,919 @@ <code>isUserScopeEnabled</code> </UndefinedInterfaceMethod> </file> - <file src="core/Application.php"> - <InvalidArgument occurrences="10"> - <code>addServiceListener</code> - <code>addServiceListener</code> - <code>addServiceListener</code> - <code>addServiceListener</code> - <code>addServiceListener</code> - <code>addServiceListener</code> - <code>addServiceListener</code> - <code>addServiceListener</code> - <code>addServiceListener</code> - <code>addServiceListener</code> - </InvalidArgument> - </file> <file src="core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php"> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$arguments</code> </ParamNameMismatch> </file> <file src="core/BackgroundJobs/CheckForUserCertificates.php"> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$arguments</code> </ParamNameMismatch> </file> <file src="core/BackgroundJobs/LookupServerSendCheckBackgroundJob.php"> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$arguments</code> </ParamNameMismatch> </file> <file src="core/Command/App/Install.php"> - <TypeDoesNotContainType occurrences="1"> + <TypeDoesNotContainType> <code>$result === false</code> </TypeDoesNotContainType> </file> <file src="core/Command/App/ListApps.php"> - <LessSpecificImplementedReturnType occurrences="1"> + <LessSpecificImplementedReturnType> <code>array</code> </LessSpecificImplementedReturnType> </file> + <file src="core/Command/App/Update.php"> + <RedundantCondition> + <code>$result === true</code> + </RedundantCondition> + </file> <file src="core/Command/Config/Import.php"> - <InvalidScalarArgument occurrences="2"> + <InvalidScalarArgument> <code>0</code> <code>1</code> </InvalidScalarArgument> </file> <file src="core/Command/Config/ListConfigs.php"> - <FalsableReturnStatement occurrences="1"> - <code>$this->appConfig->getValues($app, false)</code> + <FalsableReturnStatement> + <code><![CDATA[$this->appConfig->getValues($app, false)]]></code> </FalsableReturnStatement> - <TooManyArguments occurrences="1"> + <TooManyArguments> <code>getFilteredValues</code> </TooManyArguments> </file> <file src="core/Command/Db/AddMissingColumns.php"> - <InvalidArgument occurrences="1"> + <InvalidArgument> <code>IDBConnection::ADD_MISSING_COLUMNS_EVENT</code> </InvalidArgument> - <TooManyArguments occurrences="1"> + <TooManyArguments> <code>dispatch</code> </TooManyArguments> </file> <file src="core/Command/Db/AddMissingIndices.php"> - <InvalidArgument occurrences="1"> + <InvalidArgument> <code>IDBConnection::ADD_MISSING_INDEXES_EVENT</code> </InvalidArgument> - <TooManyArguments occurrences="1"> + <TooManyArguments> <code>dispatch</code> </TooManyArguments> </file> <file src="core/Command/Db/AddMissingPrimaryKeys.php"> - <InvalidArgument occurrences="1"> + <InvalidArgument> <code>IDBConnection::ADD_MISSING_PRIMARY_KEYS_EVENT</code> </InvalidArgument> - <TooManyArguments occurrences="1"> + <TooManyArguments> <code>dispatch</code> </TooManyArguments> </file> <file src="core/Command/Db/ConvertType.php"> - <InvalidScalarArgument occurrences="2"> + <InvalidScalarArgument> <code>0</code> <code>1</code> </InvalidScalarArgument> </file> <file src="core/Command/Encryption/Enable.php"> - <NullArgument occurrences="1"> + <NullArgument> <code>null</code> </NullArgument> </file> <file src="core/Command/Log/File.php"> - <InvalidReturnStatement occurrences="1"> + <InvalidReturnStatement> <code>[0]</code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>string[]</code> </InvalidReturnType> </file> <file src="core/Command/Log/Manage.php"> - <InvalidScalarArgument occurrences="1"> + <InvalidArgument> <code>$levelNum</code> - </InvalidScalarArgument> + </InvalidArgument> </file> <file src="core/Command/Maintenance/DataFingerprint.php"> - <InvalidScalarArgument occurrences="1"> - <code>$this->timeFactory->getTime()</code> + <InvalidScalarArgument> + <code><![CDATA[$this->timeFactory->getTime()]]></code> </InvalidScalarArgument> </file> <file src="core/Command/Maintenance/Mimetype/UpdateDB.php"> - <UndefinedInterfaceMethod occurrences="2"> + <UndefinedInterfaceMethod> <code>getAllMappings</code> <code>updateFilecache</code> </UndefinedInterfaceMethod> </file> <file src="core/Command/Maintenance/Mimetype/UpdateJS.php"> - <UndefinedInterfaceMethod occurrences="1"> + <UndefinedInterfaceMethod> <code>getAllAliases</code> </UndefinedInterfaceMethod> </file> <file src="core/Command/Preview/Repair.php"> - <UndefinedInterfaceMethod occurrences="2"> + <UndefinedInterfaceMethod> <code>section</code> <code>section</code> </UndefinedInterfaceMethod> </file> <file src="core/Command/Preview/ResetRenderedTexts.php"> - <InvalidReturnStatement occurrences="1"> + <InvalidReturnStatement> <code>[]</code> </InvalidReturnStatement> </file> <file src="core/Controller/ClientFlowLoginV2Controller.php"> - <TypeDoesNotContainType occurrences="1"> + <TypeDoesNotContainType> <code>!is_string($stateToken)</code> </TypeDoesNotContainType> </file> <file src="core/Controller/CollaborationResourcesController.php"> - <UndefinedInterfaceMethod occurrences="1"> + <UndefinedInterfaceMethod> <code>searchCollections</code> </UndefinedInterfaceMethod> </file> + <file src="core/Controller/LostController.php"> + <RedundantCast> + <code><![CDATA[(int)$e->getCode()]]></code> + </RedundantCast> + </file> <file src="core/Controller/UnifiedSearchController.php"> - <NullArgument occurrences="1"> + <NullArgument> <code>null</code> </NullArgument> - <UndefinedInterfaceMethod occurrences="1"> + <UndefinedInterfaceMethod> <code>findMatchingRoute</code> </UndefinedInterfaceMethod> </file> + <file src="core/Listener/BeforeTemplateRenderedListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> <file src="core/Middleware/TwoFactorMiddleware.php"> - <NoInterfaceProperties occurrences="1"> - <code>$this->request->server</code> + <NoInterfaceProperties> + <code><![CDATA[$this->request->server]]></code> </NoInterfaceProperties> </file> <file src="core/routes.php"> - <InvalidScope occurrences="2"> + <InvalidScope> + <code>$this</code> <code>$this</code> + <code><![CDATA[$this->create('core_ajax_update', '/core/ajax/update.php')]]></code> </InvalidScope> </file> <file src="core/templates/layout.public.php"> - <UndefinedInterfaceMethod occurrences="1"> + <UndefinedInterfaceMethod> <code>getIcon</code> </UndefinedInterfaceMethod> </file> <file src="lib/autoloader.php"> - <RedundantCondition occurrences="2"> - <code>$this->memoryCache</code> - <code>$this->memoryCache</code> + <RedundantCondition> + <code><![CDATA[$this->memoryCache]]></code> </RedundantCondition> </file> <file src="lib/base.php"> - <InvalidArgument occurrences="1"> + <InvalidArgument> <code>$restrictions</code> </InvalidArgument> </file> <file src="lib/private/Accounts/AccountManager.php"> - <InvalidArgument occurrences="1"> - <code>'OC\AccountManager::userUpdated'</code> + <InvalidArgument> + <code><![CDATA['OC\AccountManager::userUpdated']]></code> </InvalidArgument> - <TooManyArguments occurrences="1"> + <TooManyArguments> <code>dispatch</code> </TooManyArguments> </file> <file src="lib/private/Activity/Event.php"> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$affectedUser</code> </ParamNameMismatch> </file> <file src="lib/private/Activity/Manager.php"> - <InvalidPropertyAssignmentValue occurrences="3"> - <code>$this->filterClasses</code> - <code>$this->providerClasses</code> - <code>$this->settingsClasses</code> + <InvalidPropertyAssignmentValue> + <code><![CDATA[$this->filterClasses]]></code> + <code><![CDATA[$this->providerClasses]]></code> + <code><![CDATA[$this->settingsClasses]]></code> </InvalidPropertyAssignmentValue> - <TypeDoesNotContainType occurrences="1"> - <code>!is_string($currentUserId) && $currentUserId !== null</code> + <TypeDoesNotContainType> + <code><![CDATA[!is_string($currentUserId) && $currentUserId !== null]]></code> </TypeDoesNotContainType> </file> <file src="lib/private/AllConfig.php"> - <MoreSpecificImplementedParamType occurrences="1"> + <MoreSpecificImplementedParamType> <code>$key</code> </MoreSpecificImplementedParamType> + <TypeDoesNotContainType> + <code>!is_array($userIds)</code> + </TypeDoesNotContainType> </file> <file src="lib/private/App/AppManager.php"> - <InvalidArgument occurrences="3"> + <InvalidArgument> <code>ManagerEvent::EVENT_APP_DISABLE</code> <code>ManagerEvent::EVENT_APP_ENABLE</code> <code>ManagerEvent::EVENT_APP_ENABLE_FOR_GROUPS</code> </InvalidArgument> - <LessSpecificImplementedReturnType occurrences="2"> + <LessSpecificImplementedReturnType> <code>array</code> <code>array</code> </LessSpecificImplementedReturnType> - <TooManyArguments occurrences="3"> + <TooManyArguments> <code>dispatch</code> <code>dispatch</code> <code>dispatch</code> </TooManyArguments> </file> <file src="lib/private/App/AppStore/Fetcher/Fetcher.php"> - <TooManyArguments occurrences="1"> + <TooManyArguments> <code>fetch</code> </TooManyArguments> </file> <file src="lib/private/App/DependencyAnalyzer.php"> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>bool</code> </InvalidNullableReturnType> - <NullableReturnStatement occurrences="1"> + <NullableReturnStatement> <code>version_compare($first, $second, $operator)</code> </NullableReturnStatement> </file> <file src="lib/private/App/InfoParser.php"> - <InvalidArrayOffset occurrences="2"> + <InvalidArrayOffset> <code>$array[$element][]</code> <code>$array[$element][]</code> </InvalidArrayOffset> - <InvalidReturnStatement occurrences="1"> + <InvalidReturnStatement> <code>(string)$xml</code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>array</code> </InvalidReturnType> </file> <file src="lib/private/AppConfig.php"> - <FalsableReturnStatement occurrences="1"> + <FalsableReturnStatement> <code>$values</code> </FalsableReturnStatement> - <NullableReturnStatement occurrences="1"> + <NullableReturnStatement> <code>$default</code> </NullableReturnStatement> </file> <file src="lib/private/AppFramework/Bootstrap/Coordinator.php"> - <InvalidPropertyAssignmentValue occurrences="1"> - <code>$this->bootedApps</code> + <InvalidPropertyAssignmentValue> + <code><![CDATA[$this->bootedApps]]></code> </InvalidPropertyAssignmentValue> </file> <file src="lib/private/AppFramework/Bootstrap/FunctionInjector.php"> - <UndefinedMethod occurrences="1"> + <UndefinedMethod> <code>getName</code> </UndefinedMethod> </file> <file src="lib/private/AppFramework/DependencyInjection/DIContainer.php"> - <ImplementedReturnTypeMismatch occurrences="1"> + <ImplementedReturnTypeMismatch> <code>boolean|null</code> </ImplementedReturnTypeMismatch> - <InvalidReturnStatement occurrences="1"> - <code>$this->server</code> + <InvalidReturnStatement> + <code><![CDATA[$this->server]]></code> </InvalidReturnStatement> - <InvalidReturnType occurrences="2"> + <InvalidReturnType> <code>\OCP\IServerContainer</code> <code>mixed</code> </InvalidReturnType> - <UndefinedInterfaceMethod occurrences="1"> + <UndefinedInterfaceMethod> <code>getAppDataDir</code> </UndefinedInterfaceMethod> </file> <file src="lib/private/AppFramework/Http/Dispatcher.php"> - <InvalidScalarArgument occurrences="1"> - <code>$throwable->getCode()</code> - </InvalidScalarArgument> - <NoInterfaceProperties occurrences="1"> - <code>$this->request->method</code> + <NoInterfaceProperties> + <code><![CDATA[$this->request->method]]></code> </NoInterfaceProperties> - <NullArgument occurrences="1"> + <NullArgument> <code>null</code> </NullArgument> </file> <file src="lib/private/AppFramework/Http/Output.php"> - <InvalidReturnStatement occurrences="2"> + <InvalidReturnStatement> <code>@readfile($path)</code> <code>http_response_code()</code> </InvalidReturnStatement> - <InvalidReturnType occurrences="2"> + <InvalidReturnType> <code>bool</code> <code>int</code> </InvalidReturnType> </file> <file src="lib/private/AppFramework/Http/Request.php"> - <NullableReturnStatement occurrences="9"> - <code>$host</code> + <MissingTemplateParam> + <code>\ArrayAccess</code> + </MissingTemplateParam> + <NullableReturnStatement> <code>$name</code> <code>$remoteAddress</code> - <code>$this->getOverwriteHost()</code> - <code>$this->method</code> + <code><![CDATA[$this->getOverwriteHost()]]></code> + <code><![CDATA[$this->method]]></code> <code>$uri</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> + <code><![CDATA[isset($this->cookies[$key]) ? $this->cookies[$key] : null]]></code> + <code><![CDATA[isset($this->env[$key]) ? $this->env[$key] : null]]></code> + <code><![CDATA[isset($this->files[$key]) ? $this->files[$key] : null]]></code> </NullableReturnStatement> - <RedundantCondition occurrences="1"> + <RedundantCondition> <code>\is_array($params)</code> </RedundantCondition> - <UndefinedFunction occurrences="1"> + <UndefinedFunction> <code>\Sabre\HTTP\decodePath($pathInfo)</code> </UndefinedFunction> </file> <file src="lib/private/AppFramework/Logger.php"> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>log</code> </InvalidReturnType> </file> <file src="lib/private/AppFramework/Middleware/AdditionalScriptsMiddleware.php"> - <InvalidArgument occurrences="2"> + <InvalidArgument> <code>TemplateResponse::EVENT_LOAD_ADDITIONAL_SCRIPTS</code> <code>TemplateResponse::EVENT_LOAD_ADDITIONAL_SCRIPTS_LOGGEDIN</code> </InvalidArgument> - <TooManyArguments occurrences="2"> + <TooManyArguments> <code>dispatch</code> <code>dispatch</code> </TooManyArguments> </file> <file src="lib/private/AppFramework/Middleware/OCSMiddleware.php"> - <InternalMethod occurrences="1"> + <InternalMethod> <code>setOCSVersion</code> </InternalMethod> </file> <file src="lib/private/AppFramework/Middleware/Security/CORSMiddleware.php"> - <NoInterfaceProperties occurrences="2"> - <code>$this->request->server</code> - <code>$this->request->server</code> + <NoInterfaceProperties> + <code><![CDATA[$this->request->server]]></code> + <code><![CDATA[$this->request->server]]></code> </NoInterfaceProperties> </file> <file src="lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php"> - <NoInterfaceProperties occurrences="1"> - <code>$this->request->server</code> + <NoInterfaceProperties> + <code><![CDATA[$this->request->server]]></code> </NoInterfaceProperties> - <UndefinedClass occurrences="1"> + <UndefinedClass> <code>\OCA\Talk\Controller\PageController</code> </UndefinedClass> </file> <file src="lib/private/AppFramework/Routing/RouteConfig.php"> - <InvalidArrayOffset occurrences="1"> - <code>$action['url-postfix']</code> + <InvalidArrayOffset> + <code><![CDATA[$action['url-postfix']]]></code> </InvalidArrayOffset> </file> <file src="lib/private/AppFramework/Services/AppConfig.php"> - <MoreSpecificImplementedParamType occurrences="1"> + <MoreSpecificImplementedParamType> <code>$default</code> </MoreSpecificImplementedParamType> </file> + <file src="lib/private/AppFramework/Utility/SimpleContainer.php"> + <MissingTemplateParam> + <code>ArrayAccess</code> + </MissingTemplateParam> + <RedundantCast> + <code><![CDATA[(int) $e->getCode()]]></code> + </RedundantCast> + </file> <file src="lib/private/Archive/TAR.php"> - <UndefinedDocblockClass occurrences="1"> - <code>$this->tar->extractInString($path)</code> + <UndefinedDocblockClass> + <code><![CDATA[$this->tar->extractInString($path)]]></code> </UndefinedDocblockClass> </file> + <file src="lib/private/Authentication/Listeners/UserDeletedFilesCleanupListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> + <file src="lib/private/Authentication/Listeners/UserDeletedWebAuthnCleanupListener.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> <file src="lib/private/Authentication/LoginCredentials/Store.php"> - <RedundantCondition occurrences="1"> + <RedundantCondition> <code>$trySession</code> </RedundantCondition> </file> + <file src="lib/private/Authentication/Token/IToken.php"> + <AmbiguousConstantInheritance> + <code>DO_NOT_REMEMBER</code> + <code>PERMANENT_TOKEN</code> + <code>REMEMBER</code> + <code>TEMPORARY_TOKEN</code> + <code>WIPE_TOKEN</code> + </AmbiguousConstantInheritance> + </file> <file src="lib/private/Authentication/Token/PublicKeyToken.php"> - <UndefinedMagicMethod occurrences="16"/> + <UndefinedMagicMethod> + <code>getExpires</code> + <code>getLastCheck</code> + <code>getLoginName</code> + <code>getName</code> + <code>getPassword</code> + <code>getRemember</code> + <code>getScope</code> + <code>setExpires</code> + <code>setLastCheck</code> + <code>setName</code> + <code>setPassword</code> + <code>setPasswordInvalid</code> + <code>setScope</code> + <code>setScope</code> + <code>setToken</code> + <code>setType</code> + </UndefinedMagicMethod> </file> <file src="lib/private/Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDao.php"> - <InvalidReturnStatement occurrences="1"/> - <InvalidReturnType occurrences="1"> + <InvalidReturnStatement> + <code><![CDATA[array_map(function (array $row) { + return [ + 'provider_id' => $row['provider_id'], + 'uid' => $row['uid'], + 'enabled' => 1 === (int) $row['enabled'], + ]; + }, $rows)]]></code> + </InvalidReturnStatement> + <InvalidReturnType> <code>int[]</code> </InvalidReturnType> </file> <file src="lib/private/Authentication/TwoFactorAuth/Manager.php"> - <InvalidArgument occurrences="2"> + <InvalidArgument> <code>IProvider::EVENT_FAILED</code> <code>IProvider::EVENT_SUCCESS</code> </InvalidArgument> - <TooManyArguments occurrences="2"> + <TooManyArguments> <code>dispatch</code> <code>dispatch</code> </TooManyArguments> </file> <file src="lib/private/Authentication/TwoFactorAuth/ProviderSet.php"> - <InvalidArgument occurrences="1"> - <code>$this->providers</code> + <InvalidArgument> + <code><![CDATA[$this->providers]]></code> </InvalidArgument> - <InvalidPropertyAssignmentValue occurrences="2"> - <code>$this->providers</code> + <InvalidPropertyAssignmentValue> + <code><![CDATA[$this->providers]]></code> <code>[]</code> </InvalidPropertyAssignmentValue> - <InvalidReturnStatement occurrences="1"> - <code>$this->providers</code> + <InvalidReturnStatement> + <code><![CDATA[$this->providers]]></code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>IProvider[]</code> </InvalidReturnType> - <UndefinedInterfaceMethod occurrences="1"> - <code>$this->providers</code> + <UndefinedInterfaceMethod> + <code><![CDATA[$this->providers]]></code> </UndefinedInterfaceMethod> </file> <file src="lib/private/Authentication/TwoFactorAuth/Registry.php"> - <InvalidArrayAccess occurrences="1"> - <code>$provider['provider_id']</code> + <InvalidArrayAccess> + <code><![CDATA[$provider['provider_id']]]></code> </InvalidArrayAccess> </file> <file src="lib/private/BackgroundJob/QueuedJob.php"> - <MoreSpecificImplementedParamType occurrences="1"> + <MoreSpecificImplementedParamType> + <code>$jobList</code> <code>$jobList</code> </MoreSpecificImplementedParamType> </file> + <file src="lib/private/Cache/CappedMemoryCache.php"> + <MissingTemplateParam> + <code>\ArrayAccess</code> + </MissingTemplateParam> + </file> <file src="lib/private/Cache/File.php"> - <LessSpecificImplementedReturnType occurrences="2"> + <LessSpecificImplementedReturnType> <code>bool|mixed</code> <code>bool|mixed</code> </LessSpecificImplementedReturnType> </file> - <file src="lib/private/Collaboration/Reference/File/FileReferenceEventListener.php"> - <InvalidArgument occurrences="3"> - <code>addServiceListener</code> - <code>addServiceListener</code> - <code>addServiceListener</code> - </InvalidArgument> - </file> - <file src="lib/private/Collaboration/Reference/RenderReferenceEventListener.php"> - <InvalidArgument occurrences="1"> - <code>addServiceListener</code> - </InvalidArgument> + <file src="lib/private/Calendar/Manager.php"> + <NamedArgumentNotAllowed> + <code><![CDATA[array_map(function ($registration) use ($principalUri, $calendarUris) { + try { + /** @var ICalendarProvider $provider */ + $provider = $this->container->get($registration->getService()); + } catch (Throwable $e) { + $this->logger->error('Could not load calendar provider ' . $registration->getService() . ': ' . $e->getMessage(), [ + 'exception' => $e, + ]); + return []; + } + + return $provider->getCalendars($principalUri, $calendarUris); + }, $context->getCalendarProviders())]]></code> + </NamedArgumentNotAllowed> </file> <file src="lib/private/Command/CallableJob.php"> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$serializedCallable</code> </ParamNameMismatch> </file> <file src="lib/private/Command/ClosureJob.php"> - <ParamNameMismatch occurrences="1"> + <InvalidArgument> + <code>[LaravelClosure::class, OpisClosure::class]</code> + </InvalidArgument> + <ParamNameMismatch> <code>$serializedCallable</code> </ParamNameMismatch> </file> <file src="lib/private/Command/CommandJob.php"> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$serializedCommand</code> </ParamNameMismatch> </file> <file src="lib/private/Comments/Comment.php"> - <ImplementedReturnTypeMismatch occurrences="1"> + <ImplementedReturnTypeMismatch> <code>\DateTime|null</code> </ImplementedReturnTypeMismatch> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$timestamp</code> </ParamNameMismatch> - <TypeDoesNotContainType occurrences="1"> + <TypeDoesNotContainType> <code>!is_array($mentions[0])</code> </TypeDoesNotContainType> </file> <file src="lib/private/Comments/Manager.php"> - <InvalidDocblock occurrences="1"> + <InvalidDocblock> <code>public function getForObjectSince(</code> </InvalidDocblock> + <RedundantCast> + <code>(string)$id</code> + </RedundantCast> </file> <file src="lib/private/Config.php"> - <InvalidOperand occurrences="2"> - <code>$this->delete($key)</code> - <code>$this->set($key, $value)</code> + <InvalidOperand> + <code><![CDATA[$this->delete($key)]]></code> + <code><![CDATA[$this->set($key, $value)]]></code> </InvalidOperand> - <UndefinedVariable occurrences="2"> + <UndefinedVariable> <code>$CONFIG</code> <code>$CONFIG</code> </UndefinedVariable> </file> <file src="lib/private/Console/Application.php"> - <InvalidArgument occurrences="1"> + <InvalidArgument> <code>ConsoleEvent::EVENT_RUN</code> </InvalidArgument> - <NoInterfaceProperties occurrences="1"> - <code>$this->request->server</code> + <NoInterfaceProperties> + <code><![CDATA[$this->request->server]]></code> </NoInterfaceProperties> - <TooManyArguments occurrences="1"> + <TooManyArguments> <code>dispatch</code> </TooManyArguments> </file> <file src="lib/private/ContactsManager.php"> - <InvalidNullableReturnType occurrences="3"> + <InvalidArgument> + <code>$searchOptions</code> + </InvalidArgument> + <InvalidNullableReturnType> <code>IAddressBook</code> <code>array</code> <code>bool</code> </InvalidNullableReturnType> - <NullableReturnStatement occurrences="5"> + <NullableReturnStatement> <code>null</code> <code>null</code> <code>null</code> <code>null</code> <code>null</code> </NullableReturnStatement> - <ParamNameMismatch occurrences="2"> + <ParamNameMismatch> <code>$addressBook</code> <code>$addressBook</code> </ParamNameMismatch> </file> <file src="lib/private/DB/Adapter.php"> - <InvalidReturnStatement occurrences="1"> - <code>$builder->execute()</code> + <InvalidReturnStatement> + <code><![CDATA[$builder->execute()]]></code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>int</code> </InvalidReturnType> </file> <file src="lib/private/DB/AdapterMySQL.php"> - <InternalMethod occurrences="1"> + <InternalMethod> <code>getParams</code> </InternalMethod> + <InvalidArrayOffset> + <code><![CDATA[$params['collation']]]></code> + </InvalidArrayOffset> </file> <file src="lib/private/DB/Connection.php"> - <InternalMethod occurrences="1"> + <InternalMethod> <code>getParams</code> </InternalMethod> - <InvalidReturnStatement occurrences="1"> - <code>$this->adapter->lastInsertId($seqName)</code> + <InvalidArgument> + <code>$params</code> + </InvalidArgument> + <InvalidArrayOffset> + <code><![CDATA[$params['adapter']]]></code> + <code><![CDATA[$params['tablePrefix']]]></code> + </InvalidArrayOffset> + <InvalidReturnStatement> + <code><![CDATA[$this->adapter->lastInsertId($seqName)]]></code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>string</code> </InvalidReturnType> - <ParamNameMismatch occurrences="2"> + <ParamNameMismatch> <code>$seqName</code> <code>$statement</code> </ParamNameMismatch> </file> + <file src="lib/private/DB/Exceptions/DbalException.php"> + <RedundantCondition> + <code><![CDATA[is_int($original->getCode())]]></code> + </RedundantCondition> + <TypeDoesNotContainType> + <code>0</code> + </TypeDoesNotContainType> + </file> <file src="lib/private/DB/MigrationService.php"> - <InvalidOperand occurrences="2"> + <InvalidOperand> <code>$offset</code> <code>$offset</code> </InvalidOperand> </file> <file src="lib/private/DB/OracleConnection.php"> - <InvalidArrayAccess occurrences="1"> + <InvalidArrayAccess> <code>$key[0]</code> </InvalidArrayAccess> </file> <file src="lib/private/DB/QueryBuilder/ExpressionBuilder/ExpressionBuilder.php"> - <ImplicitToStringCast occurrences="1"> - <code>$this->functionBuilder->lower($x)</code> + <ImplicitToStringCast> + <code><![CDATA[$this->functionBuilder->lower($x)]]></code> </ImplicitToStringCast> - <InvalidScalarArgument occurrences="2"> + <InvalidArgument> <code>$y</code> <code>$y</code> - </InvalidScalarArgument> + </InvalidArgument> </file> <file src="lib/private/DB/QueryBuilder/ExpressionBuilder/MySqlExpressionBuilder.php"> - <InternalMethod occurrences="1"> + <InternalMethod> <code>getParams</code> </InternalMethod> + <InvalidArrayOffset> + <code><![CDATA[$params['collation']]]></code> + </InvalidArrayOffset> </file> <file src="lib/private/DB/QueryBuilder/QueryBuilder.php"> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>string</code> </InvalidNullableReturnType> - <NullableReturnStatement occurrences="1"> + <NullableReturnStatement> <code>$alias</code> </NullableReturnStatement> - <ParamNameMismatch occurrences="2"> + <ParamNameMismatch> <code>$groupBys</code> <code>$selects</code> </ParamNameMismatch> </file> <file src="lib/private/DB/QueryBuilder/QuoteHelper.php"> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>string</code> </InvalidNullableReturnType> - <NullableReturnStatement occurrences="1"> + <NullableReturnStatement> <code>$string</code> </NullableReturnStatement> </file> <file src="lib/private/DateTimeFormatter.php"> - <FalsableReturnStatement occurrences="1"/> - <InvalidDocblock occurrences="2"> + <FalsableReturnStatement> + <code><![CDATA[$l->l($type, $timestamp, [ + 'width' => $format, + ])]]></code> + </FalsableReturnStatement> + <InvalidDocblock> <code>public function formatDateSpan($timestamp, $baseTimestamp = null, \OCP\IL10N $l = null) {</code> <code>public function formatTimeSpan($timestamp, $baseTimestamp = null, \OCP\IL10N $l = null) {</code> </InvalidDocblock> - <InvalidReturnStatement occurrences="1"/> - <InvalidReturnType occurrences="1"> + <InvalidReturnStatement> + <code><![CDATA[$l->l($type, $timestamp, [ + 'width' => $format, + ])]]></code> + </InvalidReturnStatement> + <InvalidReturnType> <code>string</code> </InvalidReturnType> </file> <file src="lib/private/DateTimeZone.php"> - <InvalidScalarArgument occurrences="1"> + <InvalidScalarArgument> <code>$timestamp</code> </InvalidScalarArgument> </file> <file src="lib/private/Diagnostics/Query.php"> - <ImplementedReturnTypeMismatch occurrences="1"> + <ImplementedReturnTypeMismatch> <code>float</code> </ImplementedReturnTypeMismatch> </file> <file src="lib/private/Diagnostics/QueryLogger.php"> - <InvalidReturnType occurrences="1"> + <InvalidArgument> + <code>microtime(true)</code> + </InvalidArgument> + <InvalidReturnType> <code>stopQuery</code> </InvalidReturnType> - <InvalidScalarArgument occurrences="1"> - <code>microtime(true)</code> - </InvalidScalarArgument> </file> <file src="lib/private/DirectEditing/Manager.php"> - <InvalidReturnStatement occurrences="1"> - <code>$query->execute()</code> + <InvalidReturnStatement> + <code><![CDATA[$query->execute()]]></code> </InvalidReturnStatement> - <InvalidReturnType occurrences="2"> + <InvalidReturnType> <code>TemplateResponse</code> <code>int</code> </InvalidReturnType> - <UndefinedMethod occurrences="2"> + <UndefinedMethod> + <code>$template</code> + <code>$template</code> <code>$template</code> <code>$template</code> </UndefinedMethod> </file> <file src="lib/private/DirectEditing/Token.php"> - <UndefinedMethod occurrences="1"> + <UndefinedMethod> <code>getShareForToken</code> </UndefinedMethod> </file> <file src="lib/private/Encryption/Keys/Storage.php"> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>deleteUserKey</code> </InvalidNullableReturnType> - <NullArgument occurrences="3"> + <NullArgument> <code>null</code> <code>null</code> <code>null</code> </NullArgument> </file> <file src="lib/private/Encryption/Manager.php"> - <ImplementedReturnTypeMismatch occurrences="1"> + <ImplementedReturnTypeMismatch> <code>bool</code> </ImplementedReturnTypeMismatch> </file> <file src="lib/private/EventDispatcher/EventDispatcher.php"> - <TooManyArguments occurrences="1"> + <TooManyArguments> <code>dispatch</code> </TooManyArguments> </file> <file src="lib/private/EventDispatcher/SymfonyAdapter.php"> - <ImplementedParamTypeMismatch occurrences="1"> + <ImplementedParamTypeMismatch> <code>$eventName</code> </ImplementedParamTypeMismatch> - <ParamNameMismatch occurrences="1"> + <NoValue> + <code>$listener</code> + </NoValue> + <ParamNameMismatch> <code>$eventName</code> </ParamNameMismatch> - <TooManyArguments occurrences="1"> + <TooManyArguments> <code>dispatch</code> </TooManyArguments> </file> <file src="lib/private/Federation/CloudFederationProviderManager.php"> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$providerId</code> </ParamNameMismatch> </file> <file src="lib/private/Files/Cache/Cache.php"> - <InvalidArgument occurrences="1"> + <InvalidArgument> <code>$parentData</code> </InvalidArgument> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>array</code> </InvalidNullableReturnType> - <InvalidScalarArgument occurrences="3"> - <code>$path</code> + <InvalidScalarArgument> <code>$path</code> <code>\OC_Util::normalizeUnicode($path)</code> </InvalidScalarArgument> - <NullableReturnStatement occurrences="2"> + <NullableReturnStatement> <code>null</code> <code>null</code> </NullableReturnStatement> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$searchQuery</code> </ParamNameMismatch> </file> <file src="lib/private/Files/Cache/FailedCache.php"> - <InvalidReturnStatement occurrences="1"> + <InvalidReturnStatement> <code>[]</code> </InvalidReturnStatement> - <InvalidReturnType occurrences="3"> + <InvalidReturnType> <code>getIncomplete</code> <code>insert</code> <code>put</code> </InvalidReturnType> </file> <file src="lib/private/Files/Cache/HomeCache.php"> - <FalsableReturnStatement occurrences="1"> + <FalsableReturnStatement> <code>$data</code> </FalsableReturnStatement> - <MoreSpecificImplementedParamType occurrences="1"/> + <MoreSpecificImplementedParamType> + <code>$file</code> + <code>$file</code> + </MoreSpecificImplementedParamType> </file> <file src="lib/private/Files/Cache/Scanner.php"> - <InvalidReturnStatement occurrences="1"> + <InvalidArgument> + <code>self::SCAN_RECURSIVE_INCOMPLETE</code> + </InvalidArgument> + <InvalidReturnStatement> <code>$existingChildren</code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>array[]</code> </InvalidReturnType> - <InvalidScalarArgument occurrences="1"> - <code>self::SCAN_RECURSIVE_INCOMPLETE</code> - </InvalidScalarArgument> </file> <file src="lib/private/Files/Cache/Storage.php"> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>array</code> </InvalidNullableReturnType> - <NullableReturnStatement occurrences="1"> - <code>self::getGlobalCache()->getStorageInfo($storageId)</code> + <NullableReturnStatement> + <code><![CDATA[self::getGlobalCache()->getStorageInfo($storageId)]]></code> </NullableReturnStatement> </file> <file src="lib/private/Files/Cache/Updater.php"> - <RedundantCondition occurrences="1"> - <code>$this->cache instanceof Cache</code> + <RedundantCondition> + <code><![CDATA[$this->cache instanceof Cache]]></code> </RedundantCondition> </file> <file src="lib/private/Files/Cache/Wrapper/CacheWrapper.php"> - <LessSpecificImplementedReturnType occurrences="1"> + <LessSpecificImplementedReturnType> + <code>array</code> <code>array</code> </LessSpecificImplementedReturnType> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$searchQuery</code> </ParamNameMismatch> </file> <file src="lib/private/Files/Config/MountProviderCollection.php"> - <InvalidOperand occurrences="1"> + <InvalidOperand> <code>$user</code> </InvalidOperand> - <RedundantCondition occurrences="1"> - <code>get_class($provider) !== 'OCA\Files_Sharing\MountProvider'</code> + <RedundantCondition> + <code><![CDATA[get_class($provider) !== 'OCA\Files_Sharing\MountProvider']]></code> </RedundantCondition> - <TypeDoesNotContainType occurrences="1"> - <code>get_class($provider) === 'OCA\Files_Sharing\MountProvider'</code> + <TypeDoesNotContainType> + <code><![CDATA[get_class($provider) === 'OCA\Files_Sharing\MountProvider']]></code> </TypeDoesNotContainType> </file> <file src="lib/private/Files/Config/UserMountCache.php"> - <InvalidReturnType occurrences="2"> + <InvalidReturnType> <code>remoteStorageMounts</code> <code>removeUserStorageMount</code> </InvalidReturnType> - <LessSpecificImplementedReturnType occurrences="1"> + <LessSpecificImplementedReturnType> <code>array</code> </LessSpecificImplementedReturnType> </file> + <file src="lib/private/Files/FileInfo.php"> + <MissingTemplateParam> + <code>\ArrayAccess</code> + </MissingTemplateParam> + </file> <file src="lib/private/Files/Filesystem.php"> - <TooManyArguments occurrences="1"> + <TooManyArguments> <code>addStorageWrapper</code> </TooManyArguments> </file> <file src="lib/private/Files/Mount/MountPoint.php"> - <InvalidScalarArgument occurrences="1"> - <code>$exception->getCode()</code> - </InvalidScalarArgument> - <UndefinedInterfaceMethod occurrences="1"> + <UndefinedInterfaceMethod> <code>wrap</code> </UndefinedInterfaceMethod> </file> <file src="lib/private/Files/Mount/ObjectHomeMountProvider.php"> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>\OCP\Files\Mount\IMountPoint</code> </InvalidNullableReturnType> - <NullableReturnStatement occurrences="1"> + <NullableReturnStatement> <code>null</code> </NullableReturnStatement> </file> <file src="lib/private/Files/Node/File.php"> - <InvalidReturnStatement occurrences="1"> - <code>$this->view->hash($type, $this->path, $raw)</code> + <InvalidReturnStatement> + <code><![CDATA[$this->view->hash($type, $this->path, $raw)]]></code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> - <code>string</code> + <InvalidReturnType> <code>string</code> </InvalidReturnType> </file> <file src="lib/private/Files/Node/Folder.php"> - <MoreSpecificImplementedParamType occurrences="1"> + <MoreSpecificImplementedParamType> <code>$node</code> </MoreSpecificImplementedParamType> </file> <file src="lib/private/Files/Node/HookConnector.php"> - <InvalidArgument occurrences="13"> - <code>'\OCP\Files::postCopy'</code> - <code>'\OCP\Files::postCreate'</code> - <code>'\OCP\Files::postDelete'</code> - <code>'\OCP\Files::postRename'</code> - <code>'\OCP\Files::postTouch'</code> - <code>'\OCP\Files::postWrite'</code> - <code>'\OCP\Files::preCopy'</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> + <code><![CDATA['\OCP\Files::postCopy']]></code> + <code><![CDATA['\OCP\Files::postCreate']]></code> + <code><![CDATA['\OCP\Files::postDelete']]></code> + <code><![CDATA['\OCP\Files::postRename']]></code> + <code><![CDATA['\OCP\Files::postTouch']]></code> + <code><![CDATA['\OCP\Files::postWrite']]></code> + <code><![CDATA['\OCP\Files::preCopy']]></code> + <code><![CDATA['\OCP\Files::preCreate']]></code> + <code><![CDATA['\OCP\Files::preDelete']]></code> + <code><![CDATA['\OCP\Files::preRename']]></code> + <code><![CDATA['\OCP\Files::preTouch']]></code> + <code><![CDATA['\OCP\Files::preWrite']]></code> + <code><![CDATA['\OCP\Files::read']]></code> </InvalidArgument> - <TooManyArguments occurrences="13"> + <TooManyArguments> <code>dispatch</code> <code>dispatch</code> <code>dispatch</code> @@ -2094,7 +2692,7 @@ <code>dispatch</code> <code>dispatch</code> </TooManyArguments> - <UndefinedInterfaceMethod occurrences="13"> + <UndefinedInterfaceMethod> <code>emit</code> <code>emit</code> <code>emit</code> @@ -2111,344 +2709,317 @@ </UndefinedInterfaceMethod> </file> <file src="lib/private/Files/Node/LazyFolder.php"> - <InvalidReturnStatement occurrences="1"> - <code>$this->__call(__FUNCTION__, func_get_args())</code> + <InvalidReturnStatement> + <code><![CDATA[$this->__call(__FUNCTION__, func_get_args())]]></code> </InvalidReturnStatement> </file> <file src="lib/private/Files/Node/Node.php"> - <ImplementedReturnTypeMismatch occurrences="1"> + <ImplementedReturnTypeMismatch> <code>Node</code> </ImplementedReturnTypeMismatch> - <InvalidArgument occurrences="1"> - <code>'\OCP\Files::' . $hook</code> + <InvalidArgument> + <code><![CDATA['\OCP\Files::' . $hook]]></code> </InvalidArgument> - <InvalidNullableReturnType occurrences="1"/> - <InvalidReturnType occurrences="1"> + <InvalidNullableReturnType> + <code>FileInfo</code> + </InvalidNullableReturnType> + <InvalidReturnType> <code>getChecksum</code> </InvalidReturnType> - <NullableReturnStatement occurrences="1"/> - <ParamNameMismatch occurrences="1"> + <NullableReturnStatement> + <code><![CDATA[$this->fileInfo]]></code> + </NullableReturnStatement> + <ParamNameMismatch> <code>$type</code> </ParamNameMismatch> - <TooManyArguments occurrences="1"> + <TooManyArguments> <code>dispatch</code> </TooManyArguments> - <UndefinedInterfaceMethod occurrences="1"> - <code>$this->fileInfo</code> + <UndefinedInterfaceMethod> + <code><![CDATA[$this->fileInfo]]></code> + <code><![CDATA[$this->fileInfo]]></code> </UndefinedInterfaceMethod> </file> <file src="lib/private/Files/Node/Root.php"> - <ImplementedReturnTypeMismatch occurrences="1"> + <ImplementedReturnTypeMismatch> <code>Node</code> </ImplementedReturnTypeMismatch> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>\OC\User\User</code> </InvalidNullableReturnType> - <NullableReturnStatement occurrences="1"> - <code>$this->user</code> + <NullableReturnStatement> + <code><![CDATA[$this->user]]></code> </NullableReturnStatement> - <UndefinedMethod occurrences="1"> + <UndefinedMethod> <code>remove</code> </UndefinedMethod> </file> <file src="lib/private/Files/ObjectStore/HomeObjectStoreStorage.php"> - <ImplementedReturnTypeMismatch occurrences="1"> + <ImplementedReturnTypeMismatch> <code>false|string</code> </ImplementedReturnTypeMismatch> </file> <file src="lib/private/Files/ObjectStore/NoopScanner.php"> - <MoreSpecificImplementedParamType occurrences="1"> + <MoreSpecificImplementedParamType> <code>$cacheData</code> </MoreSpecificImplementedParamType> </file> <file src="lib/private/Files/ObjectStore/ObjectStoreStorage.php"> - <InvalidScalarArgument occurrences="1"> + <InvalidScalarArgument> <code>$source</code> </InvalidScalarArgument> </file> <file src="lib/private/Files/ObjectStore/S3ConnectionTrait.php"> - <InternalClass occurrences="1"> + <InternalClass> + <code>ClientResolver::_default_signature_provider()</code> <code>ClientResolver::_default_signature_provider()</code> </InternalClass> - <InternalMethod occurrences="1"> + <InternalMethod> <code>ClientResolver::_default_signature_provider()</code> </InternalMethod> - <UndefinedFunction occurrences="2"> - <code>\Aws\or_chain([self::class, 'legacySignatureProvider'], ClientResolver::_default_signature_provider())</code> + <UndefinedFunction> + <code>Promise\promise_for( + new Credentials($key, $secret) + )</code> + <code><![CDATA[\Aws\or_chain([self::class, 'legacySignatureProvider'], ClientResolver::_default_signature_provider())]]></code> </UndefinedFunction> </file> <file src="lib/private/Files/ObjectStore/S3ObjectTrait.php"> - <InternalMethod occurrences="1"> + <InternalMethod> <code>upload</code> </InternalMethod> - <UndefinedFunction occurrences="1"> + <UndefinedFunction> <code>\Aws\serialize($command)</code> </UndefinedFunction> </file> <file src="lib/private/Files/ObjectStore/S3Signature.php"> - <NullArgument occurrences="1"> + <NullArgument> <code>null</code> </NullArgument> </file> <file src="lib/private/Files/ObjectStore/StorageObjectStore.php"> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>string</code> </InvalidReturnType> </file> <file src="lib/private/Files/Storage/Common.php"> - <ImplementedReturnTypeMismatch occurrences="1"> + <ImplementedReturnTypeMismatch> <code>string|false</code> </ImplementedReturnTypeMismatch> - <InvalidOperand occurrences="2"> + <InvalidOperand> <code>!$permissions</code> - <code>$this->copyFromStorage($sourceStorage, $sourceInternalPath . '/' . $file, $targetInternalPath . '/' . $file)</code> + <code><![CDATA[$this->copyFromStorage($sourceStorage, $sourceInternalPath . '/' . $file, $targetInternalPath . '/' . $file)]]></code> </InvalidOperand> - <NoInterfaceProperties occurrences="8"> - <code>$storage->cache</code> - <code>$storage->cache</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> + <code><![CDATA[$storage->cache]]></code> + <code><![CDATA[$storage->cache]]></code> + <code><![CDATA[$storage->propagator]]></code> + <code><![CDATA[$storage->propagator]]></code> + <code><![CDATA[$storage->scanner]]></code> + <code><![CDATA[$storage->scanner]]></code> + <code><![CDATA[$storage->updater]]></code> + <code><![CDATA[$storage->updater]]></code> </NoInterfaceProperties> </file> <file src="lib/private/Files/Storage/DAV.php"> - <InvalidClass occurrences="2"> + <InvalidClass> <code>ArrayCache</code> <code>ArrayCache</code> </InvalidClass> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>getETag</code> </InvalidNullableReturnType> - <InvalidReturnStatement occurrences="1"> - <code>$response->getBody()</code> + <InvalidReturnStatement> + <code><![CDATA[$response->getBody()]]></code> + <code>IteratorDirectory::wrap($content)</code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>fopen</code> + <code>opendir</code> </InvalidReturnType> - <NullableReturnStatement occurrences="1"> + <NullableReturnStatement> <code>null</code> </NullableReturnStatement> </file> <file src="lib/private/Files/Storage/FailedStorage.php"> - <InvalidReturnStatement occurrences="2"> + <InvalidReturnStatement> <code>new FailedCache()</code> <code>true</code> </InvalidReturnStatement> - <InvalidReturnType occurrences="2"> + <InvalidReturnType> <code>getCache</code> <code>verifyPath</code> </InvalidReturnType> - <InvalidScalarArgument occurrences="38"> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - <code>$this->e->getCode()</code> - </InvalidScalarArgument> </file> <file src="lib/private/Files/Storage/Local.php"> - <ImplicitToStringCast occurrences="1"> + <ImplicitToStringCast> <code>$file</code> </ImplicitToStringCast> - <InvalidOperand occurrences="1"> + <InvalidOperand> <code>$result</code> </InvalidOperand> - <InvalidReturnStatement occurrences="1"> + <InvalidReturnStatement> <code>$result</code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>rename</code> </InvalidReturnType> - <TypeDoesNotContainNull occurrences="2"> + <TypeDoesNotContainNull> <code>$space === false || is_null($space)</code> <code>is_null($space)</code> </TypeDoesNotContainNull> - <TypeDoesNotContainType occurrences="1"> + <TypeDoesNotContainType> <code>$stat === false</code> </TypeDoesNotContainType> </file> <file src="lib/private/Files/Storage/LocalRootStorage.php"> - <NoInterfaceProperties occurrences="2"> - <code>$storage->scanner</code> - <code>$storage->scanner</code> + <NoInterfaceProperties> + <code><![CDATA[$storage->scanner]]></code> + <code><![CDATA[$storage->scanner]]></code> </NoInterfaceProperties> </file> <file src="lib/private/Files/Storage/Wrapper/Encoding.php"> - <InvalidScalarArgument occurrences="3"> + <InvalidArgument> <code>\Normalizer::FORM_C</code> <code>\Normalizer::FORM_C</code> <code>\Normalizer::FORM_D</code> - </InvalidScalarArgument> - <UndefinedInterfaceMethod occurrences="13"> - <code>$this->namesCache</code> - <code>$this->namesCache</code> - <code>$this->namesCache</code> - <code>$this->namesCache</code> - <code>$this->namesCache</code> - <code>$this->namesCache</code> - <code>$this->namesCache</code> - <code>$this->namesCache</code> - <code>$this->namesCache</code> - <code>$this->namesCache</code> - <code>$this->namesCache</code> - <code>$this->namesCache</code> - <code>$this->namesCache</code> + </InvalidArgument> + <UndefinedInterfaceMethod> + <code><![CDATA[$this->namesCache]]></code> + <code><![CDATA[$this->namesCache]]></code> + <code><![CDATA[$this->namesCache]]></code> + <code><![CDATA[$this->namesCache]]></code> + <code><![CDATA[$this->namesCache]]></code> + <code><![CDATA[$this->namesCache]]></code> + <code><![CDATA[$this->namesCache]]></code> + <code><![CDATA[$this->namesCache]]></code> + <code><![CDATA[$this->namesCache]]></code> + <code><![CDATA[$this->namesCache]]></code> + <code><![CDATA[$this->namesCache]]></code> + <code><![CDATA[$this->namesCache]]></code> + <code><![CDATA[$this->namesCache]]></code> + <code><![CDATA[$this->namesCache]]></code> + <code><![CDATA[$this->namesCache]]></code> + <code><![CDATA[$this->namesCache]]></code> + <code><![CDATA[$this->namesCache]]></code> </UndefinedInterfaceMethod> </file> <file src="lib/private/Files/Storage/Wrapper/Encryption.php"> - <FalsableReturnStatement occurrences="1"> + <FalsableReturnStatement> <code>false</code> </FalsableReturnStatement> - <InvalidOperand occurrences="3"> + <InvalidOperand> <code>$result</code> <code>$result</code> - <code>$this->copyFromStorage($sourceStorage, $sourceInternalPath . '/' . $file, $targetInternalPath . '/' . $file, false, $isRename)</code> + <code><![CDATA[$this->copyFromStorage($sourceStorage, $sourceInternalPath . '/' . $file, $targetInternalPath . '/' . $file, false, $isRename)]]></code> </InvalidOperand> - <InvalidReturnStatement occurrences="3"> + <InvalidReturnStatement> <code>$newUnencryptedSize</code> <code>$result</code> - <code>$this->storage->file_get_contents($path)</code> + <code><![CDATA[$this->storage->file_get_contents($path)]]></code> </InvalidReturnStatement> - <InvalidReturnType occurrences="3"> + <InvalidReturnType> <code>bool</code> <code>int</code> <code>string</code> </InvalidReturnType> - <InvalidScalarArgument occurrences="4"> + <InvalidScalarArgument> <code>$lastChunkPos</code> - <code>$newUnencryptedSize</code> <code>$size</code> - <code>$size</code> - <code>$sourceStorage->filemtime($sourceInternalPath)</code> </InvalidScalarArgument> </file> <file src="lib/private/Files/Storage/Wrapper/Jail.php"> - <InvalidReturnStatement occurrences="1"> - <code>$this->getWrapperStorage()->filetype($this->getUnjailedPath($path))</code> + <InvalidReturnStatement> + <code><![CDATA[$this->getWrapperStorage()->filetype($this->getUnjailedPath($path))]]></code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>bool</code> </InvalidReturnType> </file> - <file src="lib/private/Files/Storage/Wrapper/Quota.php"> - <InvalidScalarArgument occurrences="1"> - <code>$free</code> - </InvalidScalarArgument> - </file> <file src="lib/private/Files/Storage/Wrapper/Wrapper.php"> - <InvalidReturnStatement occurrences="1"> - <code>$this->getWrapperStorage()->test()</code> + <InvalidReturnStatement> + <code><![CDATA[$this->getWrapperStorage()->test()]]></code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>true</code> </InvalidReturnType> </file> <file src="lib/private/Files/Stream/SeekableHttpStream.php"> - <InvalidReturnType occurrences="2"> + <InvalidReturnType> <code>stream_close</code> <code>stream_flush</code> </InvalidReturnType> </file> <file src="lib/private/Files/Template/TemplateManager.php"> - <RedundantCondition occurrences="1"> + <RedundantCondition> <code>!$isDefaultTemplates</code> </RedundantCondition> </file> <file src="lib/private/Files/Type/Detection.php"> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$mimetype</code> </ParamNameMismatch> </file> <file src="lib/private/Files/Type/Loader.php"> - <InvalidReturnStatement occurrences="1"> - <code>$update->execute()</code> + <InvalidReturnStatement> + <code><![CDATA[$update->execute()]]></code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>int</code> </InvalidReturnType> </file> <file src="lib/private/Files/View.php"> - <InvalidScalarArgument occurrences="1"> + <InvalidScalarArgument> <code>$mtime</code> </InvalidScalarArgument> + <UndefinedInterfaceMethod> + <code>acquireLock</code> + <code>changeLock</code> + <code>releaseLock</code> + </UndefinedInterfaceMethod> </file> <file src="lib/private/FullTextSearch/Model/IndexDocument.php"> - <TypeDoesNotContainNull occurrences="1"> - <code>is_null($this->getContent())</code> + <TypeDoesNotContainNull> + <code><![CDATA[is_null($this->getContent())]]></code> </TypeDoesNotContainNull> </file> <file src="lib/private/Group/Database.php"> - <InvalidArrayOffset occurrences="1"> - <code>$this->groupCache[$gid]['displayname']</code> + <InvalidArrayOffset> + <code><![CDATA[$this->groupCache[$gid]['displayname']]]></code> </InvalidArrayOffset> - <InvalidPropertyAssignmentValue occurrences="3"> - <code>$this->groupCache</code> - <code>$this->groupCache</code> - <code>$this->groupCache</code> + <InvalidPropertyAssignmentValue> + <code><![CDATA[$this->groupCache]]></code> + <code><![CDATA[$this->groupCache]]></code> + <code><![CDATA[$this->groupCache]]></code> </InvalidPropertyAssignmentValue> </file> + <file src="lib/private/Group/DisplayNameCache.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> <file src="lib/private/Group/Group.php"> - <InvalidArgument occurrences="7"> - <code>IGroup::class . '::postAddUser'</code> - <code>IGroup::class . '::postDelete'</code> - <code>IGroup::class . '::postRemoveUser'</code> - <code>IGroup::class . '::preAddUser'</code> - <code>IGroup::class . '::preDelete'</code> - <code>IGroup::class . '::preRemoveUser'</code> + <InvalidArgument> + <code><![CDATA[IGroup::class . '::postAddUser']]></code> + <code><![CDATA[IGroup::class . '::postDelete']]></code> + <code><![CDATA[IGroup::class . '::postRemoveUser']]></code> + <code><![CDATA[IGroup::class . '::preAddUser']]></code> + <code><![CDATA[IGroup::class . '::preDelete']]></code> + <code><![CDATA[IGroup::class . '::preRemoveUser']]></code> <code>bool</code> </InvalidArgument> - <InvalidOperand occurrences="1"> + <InvalidOperand> <code>$hide</code> </InvalidOperand> - <MoreSpecificImplementedParamType occurrences="1"> + <MoreSpecificImplementedParamType> <code>$user</code> </MoreSpecificImplementedParamType> - <RedundantCondition occurrences="6"> - <code>$this->emitter</code> - <code>$this->emitter</code> - <code>$this->emitter</code> - <code>$this->emitter</code> - <code>$this->emitter</code> - <code>$this->emitter</code> + <RedundantCondition> + <code><![CDATA[$this->emitter]]></code> + <code><![CDATA[$this->emitter]]></code> + <code><![CDATA[$this->emitter]]></code> </RedundantCondition> - <TooManyArguments occurrences="6"> + <TooManyArguments> <code>dispatch</code> <code>dispatch</code> <code>dispatch</code> @@ -2456,7 +3027,7 @@ <code>dispatch</code> <code>dispatch</code> </TooManyArguments> - <UndefinedMethod occurrences="4"> + <UndefinedMethod> <code>addToGroup</code> <code>countUsersInGroup</code> <code>deleteGroup</code> @@ -2464,170 +3035,225 @@ </UndefinedMethod> </file> <file src="lib/private/Group/Manager.php"> - <UndefinedInterfaceMethod occurrences="3"> + <UndefinedInterfaceMethod> <code>createGroup</code> <code>getGroupDetails</code> <code>isAdmin</code> </UndefinedInterfaceMethod> </file> <file src="lib/private/Http/Client/Response.php"> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>string|resource</code> </InvalidNullableReturnType> - <NullableReturnStatement occurrences="1"/> + <NullableReturnStatement> + <code><![CDATA[$this->stream ? + $this->response->getBody()->detach(): + $this->response->getBody()->getContents()]]></code> + </NullableReturnStatement> </file> <file src="lib/private/Installer.php"> - <FalsableReturnStatement occurrences="1"> + <FalsableReturnStatement> <code>false</code> </FalsableReturnStatement> - <InvalidArgument occurrences="2"> + <InvalidArgument> <code>false</code> <code>false</code> </InvalidArgument> - <InvalidArrayOffset occurrences="2"> - <code>$app['path']</code> - <code>$app['path']</code> + <InvalidArrayOffset> + <code><![CDATA[$app['path']]]></code> + <code><![CDATA[$app['path']]]></code> </InvalidArrayOffset> - <NullArgument occurrences="1"> + <NullArgument> <code>null</code> </NullArgument> </file> <file src="lib/private/IntegrityCheck/Checker.php"> - <InvalidArrayAccess occurrences="3"> - <code>$x509->getDN(X509::DN_OPENSSL)['CN']</code> - <code>$x509->getDN(X509::DN_OPENSSL)['CN']</code> - <code>$x509->getDN(true)['CN']</code> + <InvalidArrayAccess> + <code><![CDATA[$x509->getDN(X509::DN_OPENSSL)['CN']]]></code> + <code><![CDATA[$x509->getDN(X509::DN_OPENSSL)['CN']]]></code> + <code><![CDATA[$x509->getDN(true)['CN']]]></code> </InvalidArrayAccess> - <UndefinedInterfaceMethod occurrences="2"> + <UndefinedInterfaceMethod> <code>getAllAliases</code> <code>getOnlyDefaultAliases</code> </UndefinedInterfaceMethod> </file> + <file src="lib/private/IntegrityCheck/Iterator/ExcludeFileByNameFilterIterator.php"> + <MissingTemplateParam> + <code>ExcludeFileByNameFilterIterator</code> + </MissingTemplateParam> + </file> + <file src="lib/private/IntegrityCheck/Iterator/ExcludeFoldersByPathFilterIterator.php"> + <MissingTemplateParam> + <code>ExcludeFoldersByPathFilterIterator</code> + </MissingTemplateParam> + </file> <file src="lib/private/L10N/Factory.php"> - <ImplementedReturnTypeMismatch occurrences="1"> + <ImplementedReturnTypeMismatch> <code>null|string</code> </ImplementedReturnTypeMismatch> - <LessSpecificImplementedReturnType occurrences="1"> + <LessSpecificImplementedReturnType> <code>array|mixed</code> </LessSpecificImplementedReturnType> </file> <file src="lib/private/LargeFileHelper.php"> - <InvalidOperand occurrences="1"> + <InvalidOperand> <code>$matches[1]</code> </InvalidOperand> - <InvalidScalarArgument occurrences="1"> - <code>$data</code> - </InvalidScalarArgument> </file> <file src="lib/private/Lockdown/Filesystem/NullCache.php"> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>get</code> </InvalidNullableReturnType> - <InvalidReturnStatement occurrences="1"> + <InvalidReturnStatement> <code>[]</code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>getIncomplete</code> </InvalidReturnType> - <NullableReturnStatement occurrences="1"/> + <NullableReturnStatement> + <code><![CDATA[$file !== '' ? null : + new CacheEntry([ + 'fileid' => -1, + 'parent' => -1, + 'name' => '', + 'path' => '', + 'size' => '0', + 'mtime' => time(), + 'storage_mtime' => time(), + 'etag' => '', + 'mimetype' => FileInfo::MIMETYPE_FOLDER, + 'mimepart' => 'httpd', + 'permissions' => Constants::PERMISSION_READ + ])]]></code> + </NullableReturnStatement> </file> <file src="lib/private/Lockdown/Filesystem/NullStorage.php"> - <InvalidNullableReturnType occurrences="2"> + <InvalidNullableReturnType> <code>getOwner</code> <code>getPermissions</code> </InvalidNullableReturnType> - <InvalidReturnStatement occurrences="2"> + <InvalidReturnStatement> <code>new IteratorDirectory([])</code> <code>new NullCache()</code> </InvalidReturnStatement> - <InvalidReturnType occurrences="2"> + <InvalidReturnType> <code>getCache</code> <code>opendir</code> </InvalidReturnType> - <NullableReturnStatement occurrences="2"> + <NullableReturnStatement> <code>null</code> <code>null</code> </NullableReturnStatement> - <TooManyArguments occurrences="1"> + <TooManyArguments> <code>new IteratorDirectory([])</code> </TooManyArguments> </file> <file src="lib/private/Lockdown/LockdownManager.php"> - <InvalidFunctionCall occurrences="1"> + <InvalidFunctionCall> <code>$callback()</code> </InvalidFunctionCall> - <InvalidPropertyAssignmentValue occurrences="1"> + <InvalidPropertyAssignmentValue> <code>$sessionCallback</code> </InvalidPropertyAssignmentValue> </file> <file src="lib/private/Log.php"> - <RedundantCondition occurrences="2"> - <code>$request</code> + <RedundantCondition> <code>$request</code> </RedundantCondition> </file> <file src="lib/private/Log/File.php"> - <TypeDoesNotContainNull occurrences="1"> + <TypeDoesNotContainNull> <code>$limit === null</code> </TypeDoesNotContainNull> </file> <file src="lib/private/Log/LogDetails.php"> - <RedundantCondition occurrences="1"> - <code>is_string($request->getMethod())</code> + <RedundantCondition> + <code><![CDATA[is_string($request->getMethod())]]></code> </RedundantCondition> </file> <file src="lib/private/Log/Rotate.php"> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$dummy</code> </ParamNameMismatch> </file> <file src="lib/private/Log/Systemdlog.php"> - <UndefinedFunction occurrences="1"/> + <UndefinedFunction> + <code><![CDATA[sd_journal_send('PRIORITY='.$journal_level, + 'SYSLOG_IDENTIFIER='.$this->syslogId, + 'MESSAGE=' . $this->logDetailsAsJSON($app, $message, $level))]]></code> + </UndefinedFunction> </file> <file src="lib/private/Memcache/APCu.php"> - <InvalidReturnStatement occurrences="1"> - <code>apcu_add($this->getPrefix() . $key, $value, $ttl)</code> + <InvalidClass> + <code>\APCUIterator</code> + </InvalidClass> + <InvalidReturnStatement> + <code><![CDATA[apcu_add($this->getPrefix() . $key, $value, $ttl)]]></code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>bool</code> </InvalidReturnType> </file> <file src="lib/private/Memcache/Cache.php"> - <LessSpecificImplementedReturnType occurrences="4"> + <LessSpecificImplementedReturnType> <code>mixed</code> <code>mixed</code> <code>mixed</code> <code>mixed</code> </LessSpecificImplementedReturnType> + <MissingTemplateParam> + <code>\ArrayAccess</code> + </MissingTemplateParam> + </file> + <file src="lib/private/Memcache/ProfilerWrapperCache.php"> + <MissingTemplateParam> + <code>\ArrayAccess</code> + </MissingTemplateParam> </file> <file src="lib/private/Memcache/Redis.php"> - <InvalidMethodCall occurrences="2"> + <InvalidMethodCall> <code>exec</code> <code>exec</code> </InvalidMethodCall> </file> + <file src="lib/private/Metadata/Provider/ExifProvider.php"> + <InvalidReturnStatement> + <code>$exifData</code> + </InvalidReturnStatement> + <InvalidReturnType> + <code><![CDATA[array{'gps': FileMetadata, 'size': FileMetadata}]]></code> + </InvalidReturnType> + </file> <file src="lib/private/NavigationManager.php"> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$id</code> </ParamNameMismatch> </file> <file src="lib/private/Preview/BackgroundCleanupJob.php"> - <InvalidReturnStatement occurrences="1"> + <InvalidReturnStatement> <code>[]</code> </InvalidReturnStatement> </file> <file src="lib/private/Preview/Generator.php"> - <InvalidArgument occurrences="2"> + <InvalidArgument> <code>$maxPreviewImage</code> + <code>$semId</code> <code>IPreview::EVENT</code> </InvalidArgument> - <MismatchingDocblockParamType occurrences="1"> + <InvalidReturnStatement> + <code>$sem</code> + </InvalidReturnStatement> + <InvalidReturnType> + <code>false|resource</code> + </InvalidReturnType> + <MismatchingDocblockParamType> <code>ISimpleFile</code> </MismatchingDocblockParamType> - <TooManyArguments occurrences="1"> + <TooManyArguments> <code>dispatch</code> </TooManyArguments> - <UndefinedInterfaceMethod occurrences="7"> + <UndefinedInterfaceMethod> <code>height</code> <code>height</code> <code>preciseResizeCopy</code> @@ -2638,118 +3264,123 @@ </UndefinedInterfaceMethod> </file> <file src="lib/private/Preview/ProviderV1Adapter.php"> - <InvalidReturnStatement occurrences="1"> + <InvalidReturnStatement> <code>$thumbnail === false ? null: $thumbnail</code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>?IImage</code> </InvalidReturnType> </file> <file src="lib/private/RedisFactory.php"> - <InvalidScalarArgument occurrences="1"> + <InvalidArgument> <code>\RedisCluster::OPT_SLAVE_FAILOVER</code> - </InvalidScalarArgument> + </InvalidArgument> </file> <file src="lib/private/Remote/Api/OCS.php"> - <ImplementedReturnTypeMismatch occurrences="1"> + <ImplementedReturnTypeMismatch> <code>array</code> </ImplementedReturnTypeMismatch> </file> <file src="lib/private/Remote/Instance.php"> - <InvalidReturnStatement occurrences="1"> - <code>$request->getBody()</code> + <InvalidReturnStatement> + <code><![CDATA[$request->getBody()]]></code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>bool|string</code> </InvalidReturnType> - <InvalidScalarArgument occurrences="1"> + <InvalidScalarArgument> <code>$response</code> </InvalidScalarArgument> </file> <file src="lib/private/Repair/Owncloud/CleanPreviews.php"> - <InvalidArgument occurrences="1"> + <InvalidArgument> <code>false</code> </InvalidArgument> </file> <file src="lib/private/Repair/Owncloud/CleanPreviewsBackgroundJob.php"> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$arguments</code> </ParamNameMismatch> </file> <file src="lib/private/Repair/Owncloud/MoveAvatarsBackgroundJob.php"> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$arguments</code> </ParamNameMismatch> - <TypeDoesNotContainType occurrences="1"> + <TypeDoesNotContainType> <code>$counter % 100 === 0</code> </TypeDoesNotContainType> </file> <file src="lib/private/Repair/RemoveLinkShares.php"> - <InvalidPropertyAssignmentValue occurrences="1"> - <code>$this->userToNotify</code> + <InvalidPropertyAssignmentValue> + <code><![CDATA[$this->userToNotify]]></code> </InvalidPropertyAssignmentValue> </file> <file src="lib/private/Repair/RepairInvalidShares.php"> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$out</code> </ParamNameMismatch> </file> <file src="lib/private/Repair/RepairMimeTypes.php"> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$out</code> </ParamNameMismatch> </file> <file src="lib/private/Repair/SqliteAutoincrement.php"> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$out</code> </ParamNameMismatch> </file> <file src="lib/private/Route/Router.php"> - <InvalidClass occurrences="1"> + <InvalidClass> <code>\OC_APP</code> </InvalidClass> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>string</code> </InvalidNullableReturnType> - <NullableReturnStatement occurrences="1"> - <code>$this->collectionName</code> + <NullableReturnStatement> + <code><![CDATA[$this->collectionName]]></code> </NullableReturnStatement> </file> <file src="lib/private/Search.php"> - <RedundantCondition occurrences="1"> + <RedundantCondition> <code>$provider instanceof Provider</code> </RedundantCondition> </file> <file src="lib/private/Search/Result/File.php"> - <InvalidPropertyAssignmentValue occurrences="4"> - <code>$data->getId()</code> - <code>$data->getMtime()</code> - <code>$data->getPermissions()</code> - <code>$this->hasPreview($data)</code> + <InvalidPropertyAssignmentValue> + <code><![CDATA[$data->getId()]]></code> + <code><![CDATA[$data->getMtime()]]></code> + <code><![CDATA[$data->getPermissions()]]></code> + <code><![CDATA[$this->hasPreview($data)]]></code> </InvalidPropertyAssignmentValue> </file> <file src="lib/private/Security/Bruteforce/Throttler.php"> - <NullArgument occurrences="1"> + <NullArgument> <code>null</code> </NullArgument> </file> <file src="lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php"> - <NoInterfaceProperties occurrences="1"> - <code>$this->request->server</code> + <NoInterfaceProperties> + <code><![CDATA[$this->request->server]]></code> </NoInterfaceProperties> </file> + <file src="lib/private/Security/CSRF/CsrfToken.php"> + <InvalidArgument> + <code><![CDATA[\strlen($this->value)]]></code> + </InvalidArgument> + </file> <file src="lib/private/Security/CredentialsManager.php"> - <InvalidReturnStatement occurrences="2"> - <code>$qb->execute()</code> - <code>$qb->execute()</code> + <InvalidReturnStatement> + <code><![CDATA[$qb->execute()]]></code> + <code><![CDATA[$qb->execute()]]></code> </InvalidReturnStatement> - <InvalidReturnType occurrences="2"> + <InvalidReturnType> <code>int</code> <code>int</code> </InvalidReturnType> </file> <file src="lib/private/Security/Crypto.php"> - <InternalMethod occurrences="6"> + <InternalMethod> <code>decrypt</code> <code>encrypt</code> <code>setIV</code> @@ -2759,85 +3390,99 @@ </InternalMethod> </file> <file src="lib/private/Server.php"> - <ImplementedReturnTypeMismatch occurrences="3"> + <ImplementedReturnTypeMismatch> <code>\OCP\Calendar\Resource\IManager</code> <code>\OCP\Calendar\Room\IManager</code> <code>\OCP\Files\Folder|null</code> </ImplementedReturnTypeMismatch> - <InvalidArgument occurrences="1"> + <InvalidArgument> <code>new GenericEvent($user)</code> </InvalidArgument> - <UndefinedDocblockClass occurrences="1"> + <UndefinedDocblockClass> <code>\OC\OCSClient</code> </UndefinedDocblockClass> </file> <file src="lib/private/ServerContainer.php"> - <InvalidPropertyAssignmentValue occurrences="1"> - <code>$this->hasNoAppContainer</code> + <InvalidPropertyAssignmentValue> + <code><![CDATA[$this->hasNoAppContainer]]></code> </InvalidPropertyAssignmentValue> + <NoValue> + <code><![CDATA[return $this->appContainers[$namespace];]]></code> + </NoValue> + </file> + <file src="lib/private/Session/CryptoSessionData.php"> + <MissingTemplateParam> + <code>\ArrayAccess</code> + </MissingTemplateParam> </file> <file src="lib/private/Session/Internal.php"> - <MoreSpecificImplementedParamType occurrences="1"> + <MoreSpecificImplementedParamType> <code>$value</code> </MoreSpecificImplementedParamType> </file> <file src="lib/private/Session/Memory.php"> - <MoreSpecificImplementedParamType occurrences="1"> + <MoreSpecificImplementedParamType> <code>$value</code> </MoreSpecificImplementedParamType> </file> + <file src="lib/private/Session/Session.php"> + <MissingTemplateParam> + <code>\ArrayAccess</code> + </MissingTemplateParam> + </file> <file src="lib/private/Setup.php"> - <RedundantCondition occurrences="2"> - <code>$content !== ''</code> - <code>$type === 'pdo'</code> + <RedundantCondition> + <code><![CDATA[$content !== '']]></code> + <code><![CDATA[$type === 'pdo']]></code> </RedundantCondition> - <UndefinedVariable occurrences="1"> + <UndefinedVariable> <code>$vendor</code> </UndefinedVariable> </file> <file src="lib/private/Setup/AbstractDatabase.php"> - <UndefinedThisPropertyFetch occurrences="4"> - <code>$this->dbprettyname</code> - <code>$this->dbprettyname</code> - <code>$this->dbprettyname</code> - <code>$this->dbprettyname</code> + <TypeDoesNotContainType> + <code><![CDATA[ctype_digit($this->dbPort)]]></code> + </TypeDoesNotContainType> + <UndefinedThisPropertyFetch> + <code><![CDATA[$this->dbprettyname]]></code> + <code><![CDATA[$this->dbprettyname]]></code> + <code><![CDATA[$this->dbprettyname]]></code> + <code><![CDATA[$this->dbprettyname]]></code> </UndefinedThisPropertyFetch> </file> <file src="lib/private/Share/Share.php"> - <InvalidOperand occurrences="1"> + <InvalidOperand> <code>!self::isResharingAllowed()</code> </InvalidOperand> - <UndefinedInterfaceMethod occurrences="2"> + <UndefinedInterfaceMethod> <code>getParents</code> <code>getParents</code> </UndefinedInterfaceMethod> </file> <file src="lib/private/Share20/DefaultShareProvider.php"> - <InvalidScalarArgument occurrences="3"> - <code>$share->getId()</code> - <code>$share->getId()</code> - <code>(int)$data['id']</code> - </InvalidScalarArgument> - <TooManyArguments occurrences="1"> + <InvalidArgument> + <code><![CDATA[$share->getId()]]></code> + <code><![CDATA[$share->getId()]]></code> + <code><![CDATA[(int)$data['id']]]></code> + </InvalidArgument> + <TooManyArguments> <code>set</code> </TooManyArguments> - <UndefinedInterfaceMethod occurrences="1"> + <UndefinedInterfaceMethod> <code>getParent</code> </UndefinedInterfaceMethod> </file> <file src="lib/private/Share20/Manager.php"> - <InvalidArgument occurrences="6"> - <code>'OCP\Share::postAcceptShare'</code> - <code>'OCP\Share::postShare'</code> - <code>'OCP\Share::postUnshare'</code> - <code>'OCP\Share::postUnshareFromSelf'</code> - <code>'OCP\Share::preShare'</code> - <code>'OCP\Share::preUnshare'</code> - </InvalidArgument> - <InvalidScalarArgument occurrences="1"> + <InvalidArgument> <code>$id</code> - </InvalidScalarArgument> - <TooManyArguments occurrences="7"> + <code><![CDATA['OCP\Share::postAcceptShare']]></code> + <code><![CDATA['OCP\Share::postShare']]></code> + <code><![CDATA['OCP\Share::postUnshare']]></code> + <code><![CDATA['OCP\Share::postUnshareFromSelf']]></code> + <code><![CDATA['OCP\Share::preShare']]></code> + <code><![CDATA['OCP\Share::preUnshare']]></code> + </InvalidArgument> + <TooManyArguments> <code>dispatch</code> <code>dispatch</code> <code>dispatch</code> @@ -2846,27 +3491,27 @@ <code>dispatch</code> <code>update</code> </TooManyArguments> - <UndefinedClass occurrences="1"> + <UndefinedClass> <code>\OCA\Circles\Api\v1\Circles</code> </UndefinedClass> - <UndefinedInterfaceMethod occurrences="1"> + <UndefinedInterfaceMethod> <code>getChildren</code> </UndefinedInterfaceMethod> </file> <file src="lib/private/Share20/ProviderFactory.php"> - <InvalidNullableReturnType occurrences="2"> + <InvalidNullableReturnType> <code>FederatedShareProvider</code> <code>ShareByMailProvider</code> </InvalidNullableReturnType> - <InvalidReturnStatement occurrences="3"> + <InvalidReturnStatement> <code>$provider</code> <code>$provider</code> - <code>$this->shareByCircleProvider</code> + <code><![CDATA[$this->shareByCircleProvider]]></code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>getProviderForType</code> </InvalidReturnType> - <NullableReturnStatement occurrences="6"> + <NullableReturnStatement> <code>null</code> <code>null</code> <code>null</code> @@ -2874,20 +3519,20 @@ <code>null</code> <code>null</code> </NullableReturnStatement> - <ParamNameMismatch occurrences="1"> + <ParamNameMismatch> <code>$shareProviderClass</code> </ParamNameMismatch> - <UndefinedClass occurrences="1"> + <UndefinedClass> <code>\OCA\Circles\ShareByCircleProvider</code> </UndefinedClass> - <UndefinedDocblockClass occurrences="5"> + <UndefinedDocblockClass> <code>RoomShareProvider</code> <code>\OCA\Circles\ShareByCircleProvider</code> <code>\OCA\Talk\Share\RoomShareProvider</code> <code>private $roomShareProvider = null;</code> <code>private $shareByCircleProvider = null;</code> </UndefinedDocblockClass> - <UndefinedInterfaceMethod occurrences="4"> + <UndefinedInterfaceMethod> <code>getLazyRootFolder</code> <code>getLazyRootFolder</code> <code>getLazyRootFolder</code> @@ -2895,262 +3540,317 @@ </UndefinedInterfaceMethod> </file> <file src="lib/private/Streamer.php"> - <InvalidArgument occurrences="1"> + <InvalidArgument> <code>$stream</code> </InvalidArgument> - <UndefinedInterfaceMethod occurrences="1"> + <UndefinedInterfaceMethod> <code>get</code> </UndefinedInterfaceMethod> </file> <file src="lib/private/SubAdmin.php"> - <UndefinedInterfaceMethod occurrences="2"> + <UndefinedInterfaceMethod> <code>listen</code> <code>listen</code> </UndefinedInterfaceMethod> </file> <file src="lib/private/Support/Subscription/Registry.php"> - <UndefinedInterfaceMethod occurrences="1"> + <UndefinedInterfaceMethod> <code>getSupportedApps</code> </UndefinedInterfaceMethod> </file> <file src="lib/private/SystemTag/SystemTagManager.php"> - <InvalidArgument occurrences="3"> + <InvalidArgument> <code>ManagerEvent::EVENT_CREATE</code> <code>ManagerEvent::EVENT_DELETE</code> <code>ManagerEvent::EVENT_UPDATE</code> </InvalidArgument> - <TooManyArguments occurrences="3"> + <TooManyArguments> <code>dispatch</code> <code>dispatch</code> <code>dispatch</code> </TooManyArguments> </file> <file src="lib/private/SystemTag/SystemTagObjectMapper.php"> - <InvalidArgument occurrences="2"> + <InvalidArgument> <code>MapperEvent::EVENT_ASSIGN</code> <code>MapperEvent::EVENT_UNASSIGN</code> </InvalidArgument> - <TooManyArguments occurrences="2"> + <TooManyArguments> <code>dispatch</code> <code>dispatch</code> </TooManyArguments> </file> <file src="lib/private/TagManager.php"> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>\OCP\ITags</code> </InvalidNullableReturnType> - <NullableReturnStatement occurrences="1"> + <NullableReturnStatement> <code>null</code> </NullableReturnStatement> </file> <file src="lib/private/Tags.php"> - <InvalidScalarArgument occurrences="2"> + <InvalidScalarArgument> <code>$from</code> <code>$names</code> </InvalidScalarArgument> - <MoreSpecificImplementedParamType occurrences="1"> + <MoreSpecificImplementedParamType> <code>$tag</code> </MoreSpecificImplementedParamType> </file> <file src="lib/private/TempManager.php"> - <FalsableReturnStatement occurrences="2"> + <FalsableReturnStatement> <code>false</code> <code>false</code> </FalsableReturnStatement> </file> <file src="lib/private/Template/CSSResourceLocator.php"> - <ParamNameMismatch occurrences="2"> + <ParamNameMismatch> <code>$style</code> <code>$style</code> </ParamNameMismatch> </file> <file src="lib/private/Template/JSConfigHelper.php"> - <NullArgument occurrences="2"> + <NullArgument> <code>null</code> <code>null</code> </NullArgument> </file> <file src="lib/private/Template/JSResourceLocator.php"> - <InvalidArgument occurrences="1"> + <InvalidArgument> <code>false</code> </InvalidArgument> - <ParamNameMismatch occurrences="2"> + <ParamNameMismatch> <code>$script</code> <code>$script</code> </ParamNameMismatch> </file> <file src="lib/private/TemplateLayout.php"> - <InvalidParamDefault occurrences="2"> + <InvalidParamDefault> <code>string</code> <code>string</code> </InvalidParamDefault> - <InvalidScalarArgument occurrences="2"> + <InvalidScalarArgument> <code>$appName</code> <code>$appName</code> </InvalidScalarArgument> - <UndefinedInterfaceMethod occurrences="1"> + <UndefinedInterfaceMethod> <code>getInitialStates</code> </UndefinedInterfaceMethod> </file> <file src="lib/private/URLGenerator.php"> - <InvalidReturnStatement occurrences="1"> + <InvalidReturnStatement> <code>$path</code> </InvalidReturnStatement> </file> <file src="lib/private/User/Database.php"> - <FalsableReturnStatement occurrences="1"> + <FalsableReturnStatement> <code>false</code> </FalsableReturnStatement> </file> + <file src="lib/private/User/DisplayNameCache.php"> + <MissingTemplateParam> + <code>IEventListener</code> + </MissingTemplateParam> + </file> <file src="lib/private/User/Manager.php"> - <ImplementedReturnTypeMismatch occurrences="1"> + <ImplementedReturnTypeMismatch> <code>IUser|false</code> </ImplementedReturnTypeMismatch> - <InvalidArgument occurrences="1"> + <InvalidArgument> <code>$backend</code> </InvalidArgument> - <UndefinedInterfaceMethod occurrences="2"> + <UndefinedInterfaceMethod> <code>createUser</code> <code>getUsersForUserValueCaseInsensitive</code> </UndefinedInterfaceMethod> </file> <file src="lib/private/User/Session.php"> - <ImplementedReturnTypeMismatch occurrences="1"> + <ImplementedReturnTypeMismatch> <code>boolean|null</code> </ImplementedReturnTypeMismatch> - <InvalidArgument occurrences="1"> - <code>IUser::class . '::firstLogin'</code> + <InvalidArgument> + <code><![CDATA[IUser::class . '::firstLogin']]></code> </InvalidArgument> - <NoInterfaceProperties occurrences="2"> - <code>$request->server</code> - <code>$request->server</code> + <NoInterfaceProperties> + <code><![CDATA[$request->server]]></code> + <code><![CDATA[$request->server]]></code> </NoInterfaceProperties> - <TooManyArguments occurrences="1"> + <TooManyArguments> <code>dispatch</code> </TooManyArguments> </file> <file src="lib/private/User/User.php"> - <InvalidArgument occurrences="5"> - <code>IUser::class . '::changeUser'</code> - <code>IUser::class . '::postDelete'</code> - <code>IUser::class . '::postSetPassword'</code> - <code>IUser::class . '::preDelete'</code> - <code>IUser::class . '::preSetPassword'</code> + <InvalidArgument> + <code><![CDATA[IUser::class . '::changeUser']]></code> + <code><![CDATA[IUser::class . '::postDelete']]></code> + <code><![CDATA[IUser::class . '::postSetPassword']]></code> + <code><![CDATA[IUser::class . '::preDelete']]></code> + <code><![CDATA[IUser::class . '::preSetPassword']]></code> </InvalidArgument> - <TooManyArguments occurrences="5"> + <TooManyArguments> <code>dispatch</code> <code>dispatch</code> <code>dispatch</code> <code>dispatch</code> <code>dispatch</code> </TooManyArguments> + <UndefinedInterfaceMethod> + <code>emit</code> + <code>emit</code> + <code>emit</code> + <code>emit</code> + <code>emit</code> + </UndefinedInterfaceMethod> </file> <file src="lib/private/legacy/OC_API.php"> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>int</code> </InvalidNullableReturnType> - <NullableReturnStatement occurrences="1"> + <NullableReturnStatement> <code>null</code> </NullableReturnStatement> </file> <file src="lib/private/legacy/OC_App.php"> - <InvalidArgument occurrences="2"> + <InvalidArgument> <code>$groupsList</code> <code>ManagerEvent::EVENT_APP_UPDATE</code> </InvalidArgument> - <InvalidArrayOffset occurrences="2"> - <code>$dir['path']</code> - <code>$dir['url']</code> + <InvalidArrayOffset> + <code><![CDATA[$dir['path']]]></code> + <code><![CDATA[$dir['url']]]></code> </InvalidArrayOffset> - <NullArgument occurrences="1"> + <NullArgument> <code>null</code> </NullArgument> - <NullableReturnStatement occurrences="1"> + <NullableReturnStatement> <code>null</code> </NullableReturnStatement> - <TooManyArguments occurrences="1"> + <TooManyArguments> <code>dispatch</code> </TooManyArguments> - <TypeDoesNotContainNull occurrences="2"> + <TypeDoesNotContainNull> <code>$appId === null</code> <code>$appId === null</code> </TypeDoesNotContainNull> </file> <file src="lib/private/legacy/OC_FileChunking.php"> - <UndefinedDocblockClass occurrences="1"> + <UndefinedDocblockClass> <code>\OC\InsufficientStorageException</code> </UndefinedDocblockClass> </file> <file src="lib/private/legacy/OC_Files.php"> - <RedundantCondition occurrences="2"> + <RedundantCondition> <code>$getType === self::ZIP_DIR</code> <code>$getType === self::ZIP_DIR</code> </RedundantCondition> - <UndefinedInterfaceMethod occurrences="2"> + <UndefinedInterfaceMethod> <code>get</code> <code>get</code> </UndefinedInterfaceMethod> </file> <file src="lib/private/legacy/OC_Helper.php"> - <InvalidOperand occurrences="1"> - <code>$matches[1][$last_match][0]</code> - </InvalidOperand> - <InvalidScalarArgument occurrences="1"> + <InvalidArrayOffset> + <code>$matches[0][$last_match]</code> + <code>$matches[1][$last_match]</code> + </InvalidArrayOffset> + <InvalidScalarArgument> <code>$path</code> </InvalidScalarArgument> - <RedundantCondition occurrences="1"> - <code>count($obd_values) > 0</code> - </RedundantCondition> + <UndefinedInterfaceMethod> + <code>getQuota</code> + </UndefinedInterfaceMethod> + </file> + <file src="lib/private/legacy/OC_Template.php"> + <InvalidReturnType> + <code>bool|string</code> + </InvalidReturnType> </file> <file src="lib/private/legacy/OC_User.php"> - <UndefinedClass occurrences="1"> + <UndefinedClass> <code>\Test\Util\User\Dummy</code> </UndefinedClass> </file> + <file src="lib/private/legacy/OC_Util.php"> + <InvalidOperand> + <code>$version</code> + <code>$version</code> + </InvalidOperand> + <InvalidReturnType> + <code>void</code> + </InvalidReturnType> + </file> <file src="lib/public/AppFramework/ApiController.php"> - <NoInterfaceProperties occurrences="1"> - <code>$this->request->server</code> + <NoInterfaceProperties> + <code><![CDATA[$this->request->server]]></code> </NoInterfaceProperties> </file> <file src="lib/public/AppFramework/App.php"> - <InternalMethod occurrences="1"> - <code>new RouteConfig($this->container, $router, $routes)</code> + <InternalMethod> + <code><![CDATA[new RouteConfig($this->container, $router, $routes)]]></code> </InternalMethod> </file> <file src="lib/public/AppFramework/Db/Entity.php"> - <InvalidNullableReturnType occurrences="1"> + <InvalidNullableReturnType> <code>string</code> </InvalidNullableReturnType> - <NullableReturnStatement occurrences="1"> + <NullableReturnStatement> <code>$column</code> </NullableReturnStatement> </file> <file src="lib/public/AppFramework/Http/JSONResponse.php"> - <InvalidReturnStatement occurrences="1"> - <code>$this->data</code> + <InvalidReturnStatement> + <code><![CDATA[$this->data]]></code> </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> + <InvalidReturnType> <code>array</code> </InvalidReturnType> </file> + <file src="lib/public/Authentication/TwoFactorAuth/IProvider.php"> + <AmbiguousConstantInheritance> + <code>EVENT_FAILED</code> + <code>EVENT_SUCCESS</code> + </AmbiguousConstantInheritance> + </file> <file src="lib/public/BackgroundJob/TimedJob.php"> - <MoreSpecificImplementedParamType occurrences="1"> + <MoreSpecificImplementedParamType> + <code>$jobList</code> <code>$jobList</code> </MoreSpecificImplementedParamType> </file> + <file src="lib/public/Cache/CappedMemoryCache.php"> + <MissingTemplateParam> + <code>\ArrayAccess</code> + </MissingTemplateParam> + </file> <file src="lib/public/Diagnostics/IQueryLogger.php"> - <LessSpecificImplementedReturnType occurrences="1"> + <LessSpecificImplementedReturnType> <code>mixed</code> </LessSpecificImplementedReturnType> </file> + <file src="lib/public/EventDispatcher/GenericEvent.php"> + <MissingTemplateParam> + <code>ArrayAccess</code> + <code>IteratorAggregate</code> + </MissingTemplateParam> + </file> <file src="lib/public/Files.php"> - <FalsableReturnStatement occurrences="1"> + <FalsableReturnStatement> <code>\OC_App::getStorage($app)</code> </FalsableReturnStatement> </file> + <file src="lib/public/Files/Cache/ICacheEntry.php"> + <MissingTemplateParam> + <code>ArrayAccess</code> + </MissingTemplateParam> + </file> <file src="lib/public/Files/Storage.php"> - <InvalidParamDefault occurrences="1"> + <InvalidParamDefault> <code>array</code> </InvalidParamDefault> </file> + <file src="lib/public/L10N/ILanguageIterator.php"> + <MissingTemplateParam> + <code>\Iterator</code> + </MissingTemplateParam> + </file> </files> diff --git a/psalm-ocp.xml b/psalm-ocp.xml index 47804e30fde..e5cef0a28b0 100644 --- a/psalm-ocp.xml +++ b/psalm-ocp.xml @@ -6,7 +6,7 @@ xmlns="https://getpsalm.org/schema/config" xsi:schemaLocation="https://getpsalm.org/schema/config" errorBaseline="build/psalm-baseline-ocp.xml" - findUnusedBaselineEntry="true" + findUnusedBaselineEntry="false" findUnusedCode="false" > <plugins> diff --git a/psalm.xml b/psalm.xml index cd50a2722da..dbe6d1f29df 100644 --- a/psalm.xml +++ b/psalm.xml @@ -6,7 +6,7 @@ xmlns="https://getpsalm.org/schema/config" xsi:schemaLocation="https://getpsalm.org/schema/config" errorBaseline="build/psalm-baseline.xml" - findUnusedBaselineEntry="true" + findUnusedBaselineEntry="false" findUnusedCode="false" > <plugins> diff --git a/vendor-bin/psalm/composer.json b/vendor-bin/psalm/composer.json index 4274f9323ab..b342aeedd91 100644 --- a/vendor-bin/psalm/composer.json +++ b/vendor-bin/psalm/composer.json @@ -1,6 +1,6 @@ { "require": { - "vimeo/psalm": "^4.30" + "vimeo/psalm": "^5.9" }, "config": { "platform": { diff --git a/vendor-bin/psalm/composer.lock b/vendor-bin/psalm/composer.lock index 617f6cf5075..1794df5aa8d 100644 --- a/vendor-bin/psalm/composer.lock +++ b/vendor-bin/psalm/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "74200460a7dbe18316eb477367d697a8", + "content-hash": "3c6bc45f8cc92ede530a2a5c08b4ad70", "packages": [ { "name": "amphp/amp", @@ -173,79 +173,6 @@ "time": "2021-03-30T17:13:30+00:00" }, { - "name": "composer/package-versions-deprecated", - "version": "1.11.99.5", - "source": { - "type": "git", - "url": "https://github.com/composer/package-versions-deprecated.git", - "reference": "b4f54f74ef3453349c24a845d22392cd31e65f1d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/composer/package-versions-deprecated/zipball/b4f54f74ef3453349c24a845d22392cd31e65f1d", - "reference": "b4f54f74ef3453349c24a845d22392cd31e65f1d", - "shasum": "" - }, - "require": { - "composer-plugin-api": "^1.1.0 || ^2.0", - "php": "^7 || ^8" - }, - "replace": { - "ocramius/package-versions": "1.11.99" - }, - "require-dev": { - "composer/composer": "^1.9.3 || ^2.0@dev", - "ext-zip": "^1.13", - "phpunit/phpunit": "^6.5 || ^7" - }, - "type": "composer-plugin", - "extra": { - "class": "PackageVersions\\Installer", - "branch-alias": { - "dev-master": "1.x-dev" - } - }, - "autoload": { - "psr-4": { - "PackageVersions\\": "src/PackageVersions" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Marco Pivetta", - "email": "ocramius@gmail.com" - }, - { - "name": "Jordi Boggiano", - "email": "j.boggiano@seld.be" - } - ], - "description": "Composer plugin that provides efficient querying for installed package versions (no runtime IO)", - "support": { - "issues": "https://github.com/composer/package-versions-deprecated/issues", - "source": "https://github.com/composer/package-versions-deprecated/tree/1.11.99.5" - }, - "funding": [ - { - "url": "https://packagist.com", - "type": "custom" - }, - { - "url": "https://github.com/composer", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", - "type": "tidelift" - } - ], - "time": "2022-01-17T14:14:24+00:00" - }, - { "name": "composer/pcre", "version": "3.0.2", "source": { @@ -602,6 +529,67 @@ "time": "2022-03-02T22:36:06+00:00" }, { + "name": "fidry/cpu-core-counter", + "version": "0.5.1", + "source": { + "type": "git", + "url": "https://github.com/theofidry/cpu-core-counter.git", + "reference": "b58e5a3933e541dc286cc91fc4f3898bbc6f1623" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theofidry/cpu-core-counter/zipball/b58e5a3933e541dc286cc91fc4f3898bbc6f1623", + "reference": "b58e5a3933e541dc286cc91fc4f3898bbc6f1623", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "fidry/makefile": "^0.2.0", + "phpstan/extension-installer": "^1.2.0", + "phpstan/phpstan": "^1.9.2", + "phpstan/phpstan-deprecation-rules": "^1.0.0", + "phpstan/phpstan-phpunit": "^1.2.2", + "phpstan/phpstan-strict-rules": "^1.4.4", + "phpunit/phpunit": "^9.5.26 || ^8.5.31", + "theofidry/php-cs-fixer-config": "^1.0", + "webmozarts/strict-phpunit": "^7.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "Fidry\\CpuCoreCounter\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Théo FIDRY", + "email": "theo.fidry@gmail.com" + } + ], + "description": "Tiny utility to get the number of CPU cores.", + "keywords": [ + "CPU", + "core" + ], + "support": { + "issues": "https://github.com/theofidry/cpu-core-counter/issues", + "source": "https://github.com/theofidry/cpu-core-counter/tree/0.5.1" + }, + "funding": [ + { + "url": "https://github.com/theofidry", + "type": "github" + } + ], + "time": "2022-12-24T12:35:10+00:00" + }, + { "name": "netresearch/jsonmapper", "version": "v4.0.0", "source": { @@ -709,59 +697,6 @@ "time": "2022-09-04T07:30:47+00:00" }, { - "name": "openlss/lib-array2xml", - "version": "1.0.0", - "source": { - "type": "git", - "url": "https://github.com/nullivex/lib-array2xml.git", - "reference": "a91f18a8dfc69ffabe5f9b068bc39bb202c81d90" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nullivex/lib-array2xml/zipball/a91f18a8dfc69ffabe5f9b068bc39bb202c81d90", - "reference": "a91f18a8dfc69ffabe5f9b068bc39bb202c81d90", - "shasum": "" - }, - "require": { - "php": ">=5.3.2" - }, - "type": "library", - "autoload": { - "psr-0": { - "LSS": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "Apache-2.0" - ], - "authors": [ - { - "name": "Bryan Tong", - "email": "bryan@nullivex.com", - "homepage": "https://www.nullivex.com" - }, - { - "name": "Tony Butler", - "email": "spudz76@gmail.com", - "homepage": "https://www.nullivex.com" - } - ], - "description": "Array2XML conversion library credit to lalit.org", - "homepage": "https://www.nullivex.com", - "keywords": [ - "array", - "array conversion", - "xml", - "xml conversion" - ], - "support": { - "issues": "https://github.com/nullivex/lib-array2xml/issues", - "source": "https://github.com/nullivex/lib-array2xml/tree/master" - }, - "time": "2019-03-29T20:06:56+00:00" - }, - { "name": "phpdocumentor/reflection-common", "version": "2.2.0", "source": { @@ -1091,6 +1026,69 @@ "time": "2020-10-26T13:10:38+00:00" }, { + "name": "spatie/array-to-xml", + "version": "3.1.5", + "source": { + "type": "git", + "url": "https://github.com/spatie/array-to-xml.git", + "reference": "13f76acef5362d15c71ae1ac6350cc3df5e25e43" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/array-to-xml/zipball/13f76acef5362d15c71ae1ac6350cc3df5e25e43", + "reference": "13f76acef5362d15c71ae1ac6350cc3df5e25e43", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "php": "^8.0" + }, + "require-dev": { + "mockery/mockery": "^1.2", + "pestphp/pest": "^1.21", + "spatie/pest-plugin-snapshots": "^1.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\ArrayToXml\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://freek.dev", + "role": "Developer" + } + ], + "description": "Convert an array to xml", + "homepage": "https://github.com/spatie/array-to-xml", + "keywords": [ + "array", + "convert", + "xml" + ], + "support": { + "source": "https://github.com/spatie/array-to-xml/tree/3.1.5" + }, + "funding": [ + { + "url": "https://spatie.be/open-source/support-us", + "type": "custom" + }, + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2022-12-24T13:43:51+00:00" + }, + { "name": "symfony/console", "version": "v5.4.15", "source": { @@ -1257,6 +1255,70 @@ "time": "2022-01-02T09:53:40+00:00" }, { + "name": "symfony/filesystem", + "version": "v5.4.21", + "source": { + "type": "git", + "url": "https://github.com/symfony/filesystem.git", + "reference": "e75960b1bbfd2b8c9e483e0d74811d555ca3de9f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/e75960b1bbfd2b8c9e483e0d74811d555ca3de9f", + "reference": "e75960b1bbfd2b8c9e483e0d74811d555ca3de9f", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-mbstring": "~1.8", + "symfony/polyfill-php80": "^1.16" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Filesystem\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides basic utilities for the filesystem", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/filesystem/tree/v5.4.21" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-02-14T08:03:56+00:00" + }, + { "name": "symfony/polyfill-ctype", "version": "v1.26.0", "source": { @@ -1919,24 +1981,24 @@ }, { "name": "vimeo/psalm", - "version": "4.30.0", + "version": "5.9.0", "source": { "type": "git", "url": "https://github.com/vimeo/psalm.git", - "reference": "d0bc6e25d89f649e4f36a534f330f8bb4643dd69" + "reference": "8b9ad1eb9e8b7d3101f949291da2b9f7767cd163" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vimeo/psalm/zipball/d0bc6e25d89f649e4f36a534f330f8bb4643dd69", - "reference": "d0bc6e25d89f649e4f36a534f330f8bb4643dd69", + "url": "https://api.github.com/repos/vimeo/psalm/zipball/8b9ad1eb9e8b7d3101f949291da2b9f7767cd163", + "reference": "8b9ad1eb9e8b7d3101f949291da2b9f7767cd163", "shasum": "" }, "require": { "amphp/amp": "^2.4.2", "amphp/byte-stream": "^1.5", - "composer/package-versions-deprecated": "^1.8.0", + "composer-runtime-api": "^2", "composer/semver": "^1.4 || ^2.0 || ^3.0", - "composer/xdebug-handler": "^1.1 || ^2.0 || ^3.0", + "composer/xdebug-handler": "^2.0 || ^3.0", "dnoegel/php-xdg-base-dir": "^0.1.1", "ext-ctype": "*", "ext-dom": "*", @@ -1945,35 +2007,35 @@ "ext-mbstring": "*", "ext-simplexml": "*", "ext-tokenizer": "*", - "felixfbecker/advanced-json-rpc": "^3.0.3", - "felixfbecker/language-server-protocol": "^1.5", + "felixfbecker/advanced-json-rpc": "^3.1", + "felixfbecker/language-server-protocol": "^1.5.2", + "fidry/cpu-core-counter": "^0.4.1 || ^0.5.1", "netresearch/jsonmapper": "^1.0 || ^2.0 || ^3.0 || ^4.0", - "nikic/php-parser": "^4.13", - "openlss/lib-array2xml": "^1.0", - "php": "^7.1|^8", - "sebastian/diff": "^3.0 || ^4.0", - "symfony/console": "^3.4.17 || ^4.1.6 || ^5.0 || ^6.0", - "symfony/polyfill-php80": "^1.25", - "webmozart/path-util": "^2.3" + "nikic/php-parser": "^4.14", + "php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0", + "sebastian/diff": "^4.0 || ^5.0", + "spatie/array-to-xml": "^2.17.0 || ^3.0", + "symfony/console": "^4.1.6 || ^5.0 || ^6.0", + "symfony/filesystem": "^5.4 || ^6.0" }, "provide": { "psalm/psalm": "self.version" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.2", - "brianium/paratest": "^4.0||^6.0", + "amphp/phpunit-util": "^2.0", + "bamarni/composer-bin-plugin": "^1.4", + "brianium/paratest": "^6.9", "ext-curl": "*", + "mockery/mockery": "^1.5", + "nunomaduro/mock-final-classes": "^1.1", "php-parallel-lint/php-parallel-lint": "^1.2", - "phpdocumentor/reflection-docblock": "^5", - "phpmyadmin/sql-parser": "5.1.0||dev-master", - "phpspec/prophecy": ">=1.9.0", - "phpstan/phpdoc-parser": "1.2.* || 1.6.4", - "phpunit/phpunit": "^9.0", - "psalm/plugin-phpunit": "^0.16", - "slevomat/coding-standard": "^7.0", - "squizlabs/php_codesniffer": "^3.5", - "symfony/process": "^4.3 || ^5.0 || ^6.0", - "weirdan/prophecy-shim": "^1.0 || ^2.0" + "phpstan/phpdoc-parser": "^1.6", + "phpunit/phpunit": "^9.6", + "psalm/plugin-mockery": "^1.1", + "psalm/plugin-phpunit": "^0.18", + "slevomat/coding-standard": "^8.4", + "squizlabs/php_codesniffer": "^3.6", + "symfony/process": "^4.4 || ^5.0 || ^6.0" }, "suggest": { "ext-curl": "In order to send data to shepherd", @@ -1989,17 +2051,14 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.x-dev", + "dev-master": "5.x-dev", + "dev-4.x": "4.x-dev", "dev-3.x": "3.x-dev", "dev-2.x": "2.x-dev", "dev-1.x": "1.x-dev" } }, "autoload": { - "files": [ - "src/functions.php", - "src/spl_object_id.php" - ], "psr-4": { "Psalm\\": "src/Psalm/" } @@ -2017,13 +2076,14 @@ "keywords": [ "code", "inspection", - "php" + "php", + "static analysis" ], "support": { "issues": "https://github.com/vimeo/psalm/issues", - "source": "https://github.com/vimeo/psalm/tree/4.30.0" + "source": "https://github.com/vimeo/psalm/tree/5.9.0" }, - "time": "2022-11-06T20:37:08+00:00" + "time": "2023-03-29T21:38:21+00:00" }, { "name": "webmozart/assert", @@ -2082,57 +2142,6 @@ "source": "https://github.com/webmozarts/assert/tree/1.11.0" }, "time": "2022-06-03T18:03:27+00:00" - }, - { - "name": "webmozart/path-util", - "version": "2.3.0", - "source": { - "type": "git", - "url": "https://github.com/webmozart/path-util.git", - "reference": "d939f7edc24c9a1bb9c0dee5cb05d8e859490725" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/webmozart/path-util/zipball/d939f7edc24c9a1bb9c0dee5cb05d8e859490725", - "reference": "d939f7edc24c9a1bb9c0dee5cb05d8e859490725", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "webmozart/assert": "~1.0" - }, - "require-dev": { - "phpunit/phpunit": "^4.6", - "sebastian/version": "^1.0.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.3-dev" - } - }, - "autoload": { - "psr-4": { - "Webmozart\\PathUtil\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Bernhard Schussek", - "email": "bschussek@gmail.com" - } - ], - "description": "A robust cross-platform utility for normalizing, comparing and modifying file paths.", - "support": { - "issues": "https://github.com/webmozart/path-util/issues", - "source": "https://github.com/webmozart/path-util/tree/2.3.0" - }, - "abandoned": "symfony/filesystem", - "time": "2015-12-17T08:42:14+00:00" } ], "packages-dev": [], |