</NullableReturnStatement>
</file>
<file src="apps/dav/lib/CalDAV/CalDavBackend.php">
- <ImplicitToStringCast occurrences="8">
+ <ImplicitToStringCast occurrences="7">
<code>$query->createParameter('principaluri')</code>
<code>$query->createNamedParameter(self::ACCESS_PUBLIC)</code>
<code>$query->createNamedParameter(self::ACCESS_PUBLIC)</code>
- <code>$query->createNamedParameter($value)</code>
<code>$query->createParameter('uri')</code>
<code>$outerQuery->createFunction($innerQuery->getSQL())</code>
<code>$calendarObjectIdQuery->createNamedParameter($componentTypes, IQueryBuilder::PARAM_STR_ARRAY)</code>
</TypeDoesNotContainNull>
</file>
<file src="apps/federatedfilesharing/lib/FederatedShareProvider.php">
- <ImplicitToStringCast occurrences="17">
- <code>$qb->createNamedParameter($shareType)</code>
- <code>$qb->createNamedParameter($itemType)</code>
- <code>$qb->createNamedParameter($itemSource)</code>
- <code>$qb->createNamedParameter($itemSource)</code>
- <code>$qb->createNamedParameter($shareWith)</code>
- <code>$qb->createNamedParameter($uidOwner)</code>
- <code>$qb->createNamedParameter($sharedBy)</code>
- <code>$qb->createNamedParameter($permissions)</code>
- <code>$qb->createNamedParameter($token)</code>
- <code>$qb->createNamedParameter(time())</code>
- <code>$qb->createNamedParameter('')</code>
+ <ImplicitToStringCast occurrences="6">
<code>$qb->createNamedParameter($this->supportedShareType, IQueryBuilder::PARAM_INT_ARRAY)</code>
<code>$qb->createNamedParameter($this->supportedShareType, IQueryBuilder::PARAM_INT_ARRAY)</code>
<code>$qb->createNamedParameter($this->supportedShareType, IQueryBuilder::PARAM_INT_ARRAY)</code>
</TooManyArguments>
</file>
<file src="apps/files_external/lib/Service/DBConfigService.php">
- <ImplicitToStringCast occurrences="10">
+ <ImplicitToStringCast occurrences="1">
<code>$builder->createNamedParameter($groupIds, IQueryBuilder::PARAM_STR_ARRAY)</code>
- <code>$builder->createNamedParameter($mountId, IQueryBuilder::PARAM_INT)</code>
- <code>$builder->createNamedParameter($key, IQueryBuilder::PARAM_STR)</code>
- <code>$builder->createNamedParameter($value, IQueryBuilder::PARAM_STR)</code>
- <code>$builder->createNamedParameter($mountId, IQueryBuilder::PARAM_INT)</code>
- <code>$builder->createNamedParameter($key, IQueryBuilder::PARAM_STR)</code>
- <code>$builder->createNamedParameter(json_encode($value), IQueryBuilder::PARAM_STR)</code>
- <code>$builder->createNamedParameter($mountId)</code>
- <code>$builder->createNamedParameter($type)</code>
- <code>$builder->createNamedParameter($value)</code>
</ImplicitToStringCast>
<NullableReturnStatement occurrences="1">
<code>null</code>
</UndefinedVariable>
</file>
<file src="apps/files_sharing/lib/AppInfo/Application.php">
- <UndefinedClass occurrences="3">
+ <UndefinedClass occurrences="2">
<code>'ExternalMountProvider'</code>
- <code>'OCP\Collaboration\Resources::loadAdditionalScripts'</code>
- <code>'OCP\Share::postShare'</code>
+ <code>'\OCP\Collaboration\Resources::loadAdditionalScripts'</code>
</UndefinedClass>
</file>
<file src="apps/files_sharing/lib/Cache.php">
<FalsableReturnStatement occurrences="1">
<code>false</code>
</FalsableReturnStatement>
- <InvalidArgument occurrences="1">
- <code>$ma</code>
- </InvalidArgument>
- <InvalidReturnStatement occurrences="1">
- <code>$query->execute([$uid])</code>
- </InvalidReturnStatement>
- <InvalidReturnType occurrences="1">
- <code>bool</code>
- </InvalidReturnType>
<InvalidScalarArgument occurrences="2">
<code>$timestamp</code>
<code>$timestamp</code>
<code>getURLGenerator</code>
</TooManyArguments>
</file>
- <file src="apps/lookup_server_connector/lib/AppInfo/Application.php">
- <UndefinedClass occurrences="1">
- <code>'OC\AccountManager::userUpdated'</code>
- </UndefinedClass>
- </file>
<file src="apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php">
<InvalidArrayOffset occurrences="10">
<code>$publicData[IAccountManager::PROPERTY_DISPLAYNAME]['value']</code>
</UndefinedInterfaceMethod>
</file>
<file src="apps/settings/lib/Controller/CheckSetupController.php">
- <InvalidArgument occurrences="2">
+ <InvalidArgument occurrences="3">
<code>IDBConnection::CHECK_MISSING_INDEXES_EVENT</code>
+ <code>IDBConnection::CHECK_MISSING_PRIMARY_KEYS_EVENT</code>
<code>IDBConnection::CHECK_MISSING_COLUMNS_EVENT</code>
</InvalidArgument>
<InvalidOperand occurrences="1">
<code>0</code>
<code>$lastCronRun</code>
</InvalidScalarArgument>
- <TooManyArguments occurrences="2">
+ <TooManyArguments occurrences="3">
+ <code>dispatch</code>
<code>dispatch</code>
<code>dispatch</code>
</TooManyArguments>
</NullableReturnStatement>
</file>
<file src="apps/sharebymail/lib/ShareByMailProvider.php">
- <ImplicitToStringCast occurrences="15">
- <code>$qb->createNamedParameter(IShare::TYPE_EMAIL)</code>
- <code>$qb->createNamedParameter($itemType)</code>
- <code>$qb->createNamedParameter($itemSource)</code>
- <code>$qb->createNamedParameter($itemSource)</code>
- <code>$qb->createNamedParameter($shareWith)</code>
- <code>$qb->createNamedParameter($uidOwner)</code>
- <code>$qb->createNamedParameter($sharedBy)</code>
- <code>$qb->createNamedParameter($permissions)</code>
- <code>$qb->createNamedParameter($token)</code>
- <code>$qb->createNamedParameter($password)</code>
- <code>$qb->createNamedParameter($sendPasswordByTalk, IQueryBuilder::PARAM_BOOL)</code>
- <code>$qb->createNamedParameter(time())</code>
- <code>$qb->createNamedParameter((int)$hideDownload, IQueryBuilder::PARAM_INT)</code>
- <code>$qb->createNamedParameter('')</code>
+ <ImplicitToStringCast occurrences="1">
<code>$qb->createNamedParameter($ids, IQueryBuilder::PARAM_INT_ARRAY)</code>
</ImplicitToStringCast>
<InvalidReturnStatement occurrences="1">
<InvalidReturnType occurrences="1">
<code>string[]</code>
</InvalidReturnType>
- <InvalidScalarArgument occurrences="13">
+ <InvalidScalarArgument occurrences="4">
<code>[$attr => $result['values']]</code>
<code>$key</code>
<code>$key</code>
<code>$e->getCode()</code>
- <code>$nameAttribute</code>
- <code>$filter</code>
- <code>$this->connection->ldapLoginFilter</code>
- <code>$this->connection->ldapLoginFilter</code>
- <code>$this->connection->ldapUserDisplayName</code>
- <code>$this->connection->ldapUserDisplayName</code>
- <code>$this->connection->ldapGroupDisplayName</code>
- <code>$filter</code>
</InvalidScalarArgument>
<NullArgument occurrences="1">
<code>$cookie</code>
<InvalidReturnType occurrences="1">
<code>bool</code>
</InvalidReturnType>
- <InvalidScalarArgument occurrences="26">
- <code>$gAssoc</code>
- <code>$this->access->connection->ldapLoginFilter</code>
- <code>$this->access->connection->ldapDynamicGroupMemberURL</code>
- <code>$this->access->connection->ldapGroupFilter</code>
- <code>$this->access->connection->ldapGroupMemberAssocAttr</code>
- <code>$this->access->connection->ldapGidNumber</code>
+ <InvalidScalarArgument occurrences="2">
<code>$groupID</code>
<code>$groupID</code>
- <code>$this->access->connection->ldapDynamicGroupMemberURL</code>
- <code>$this->access->connection->ldapGroupFilter</code>
- <code>$this->access->connection->ldapUserDisplayName</code>
- <code>$this->access->connection->ldapGroupMemberAssocAttr</code>
- <code>[strtolower($this->access->connection->ldapGroupMemberAssocAttr), $this->access->connection->ldapGroupDisplayName, 'dn']</code>
- <code>$this->access->connection->ldapLoginFilter</code>
- <code>$this->access->connection->ldapUserDisplayName</code>
- <code>$this->access->connection->ldapLoginFilter</code>
- <code>$this->access->connection->ldapUserDisplayName</code>
- <code>[$this->access->connection->ldapGroupDisplayName, 'dn']</code>
- <code>$this->access->connection->ldapGroupFilter</code>
- <code>$this->access->connection->ldapGroupDisplayName</code>
</InvalidScalarArgument>
<RedundantCondition occurrences="4">
<code>!is_array($members) || count($members) === 0</code>
<InvalidDocblock occurrences="1">
<code>public function setLdapAccess(Access $access) {</code>
</InvalidDocblock>
- <InvalidScalarArgument occurrences="2">
- <code>$homeRule</code>
- <code>$homeRule</code>
- </InvalidScalarArgument>
</file>
<file src="apps/user_ldap/lib/User/User.php">
<FalsableReturnStatement occurrences="1">
<code>null</code>
<code>null</code>
</InvalidReturnType>
- <InvalidScalarArgument occurrences="15">
- <code>$this->connection->ldapQuotaAttribute</code>
- <code>$this->connection->ldapUserDisplayName</code>
- <code>$this->connection->ldapUserDisplayName2</code>
- <code>$this->connection->ldapEmailAttribute</code>
- <code>$this->connection->homeFolderNamingRule</code>
- <code>$this->connection->homeFolderNamingRule</code>
+ <InvalidScalarArgument occurrences="3">
<code>$this->getHomePath($ldapEntry[$attr][0])</code>
- <code>$this->connection->ldapExtStorageHomeAttribute</code>
- <code>$this->access->connection->homeFolderNamingRule</code>
- <code>$this->access->connection->homeFolderNamingRule</code>
<code>true</code>
<code>1</code>
- <code>$emailAttribute</code>
- <code>$quotaAttribute</code>
- <code>$this->connection->ldapExtStorageHomeAttribute</code>
</InvalidScalarArgument>
</file>
<file src="apps/user_ldap/lib/User_LDAP.php">
<ImplementedReturnTypeMismatch occurrences="1">
<code>string|false</code>
</ImplementedReturnTypeMismatch>
- <InvalidScalarArgument occurrences="8">
- <code>$this->access->connection->ldapUserFilter</code>
- <code>$this->access->connection->ldapUserFilter</code>
+ <InvalidScalarArgument occurrences="3">
<code>$path</code>
- <code>$additionalAttribute</code>
- <code>$this->access->connection->ldapUserDisplayName</code>
<code>$limit</code>
<code>$offset</code>
</InvalidScalarArgument>
</file>
<file src="core/Command/Broadcast/Test.php">
<UndefinedClass occurrences="1">
- <code>broadcasttest</code>
+ <code>'broadcasttest'</code>
</UndefinedClass>
</file>
<file src="core/Command/Config/App/GetConfig.php">
<code>dispatch</code>
</TooManyArguments>
</file>
+ <file src="core/Command/Db/AddMissingPrimaryKeys.php">
+ <InvalidArgument occurrences="1">
+ <code>IDBConnection::ADD_MISSING_PRIMARY_KEYS_EVENT</code>
+ </InvalidArgument>
+ <TooManyArguments occurrences="1">
+ <code>dispatch</code>
+ </TooManyArguments>
+ </file>
<file src="core/Command/Db/ConvertType.php">
- <ImplicitToStringCast occurrences="1">
- <code>$insertQuery->createParameter($key)</code>
- </ImplicitToStringCast>
<InternalMethod occurrences="1">
<code>setFilterSchemaAssetsExpression</code>
</InternalMethod>
<InvalidScope occurrences="2">
<code>$this</code>
<code>$this</code>
- <code>$this</code>
</InvalidScope>
</file>
<file src="core/templates/layout.public.php">
<code>$default</code>
</MoreSpecificImplementedParamType>
</file>
- <file src="lib/private/AppFramework/Services/InitialState.php">
- <ImplementedParamTypeMismatch occurrences="1">
- <code>$closure</code>
- </ImplementedParamTypeMismatch>
- </file>
<file src="lib/private/Archive/TAR.php">
<FalsableReturnStatement occurrences="1">
<code>false</code>
</NullableReturnStatement>
</file>
<file src="lib/private/DB/Adapter.php">
- <ImplicitToStringCast occurrences="1">
- <code>$builder->createNamedParameter($value)</code>
- </ImplicitToStringCast>
<InvalidReturnStatement occurrences="1">
<code>$builder->execute()</code>
</InvalidReturnStatement>
<FalsableReturnStatement occurrences="1">
<code>$this->conn->fetchColumn('SELECT lastval()')</code>
</FalsableReturnStatement>
- <ImplicitToStringCast occurrences="1">
- <code>$builder->createNamedParameter($value)</code>
- </ImplicitToStringCast>
</file>
<file src="lib/private/DB/Connection.php">
<ImplementedReturnTypeMismatch occurrences="1">
</TooManyArguments>
</file>
<file src="lib/private/Files/Cache/Cache.php">
- <ImplicitToStringCast occurrences="3">
- <code>$builder->createNamedParameter($value)</code>
+ <ImplicitToStringCast occurrences="2">
<code>$fun->md5($newPathFunction)</code>
<code>$newPathFunction</code>
</ImplicitToStringCast>
<code>$filesData</code>
<code>$data</code>
</UndefinedInterfaceMethod>
- <UndefinedMagicMethod occurrences="1">
- <code>closeCursor</code>
- </UndefinedMagicMethod>
</file>
<file src="lib/private/Files/Cache/LocalRootScanner.php">
<InvalidNullableReturnType occurrences="2">
<file src="lib/private/Files/Cache/Propagator.php">
<ImplicitToStringCast occurrences="4">
<code>$builder->func()->greatest('mtime', $builder->createNamedParameter((int)$time, IQueryBuilder::PARAM_INT))</code>
- <code>$query->createFunction('GREATEST(' . $query->getColumnName('mtime') . ', ' . $query->createParameter('time') . ')')</code>
+ <code>$query->func()->greatest('mtime', $query->createParameter('time'))</code>
<code>$sizeQuery->func()->add('size', $sizeQuery->createParameter('size'))</code>
</ImplicitToStringCast>
</file>
<code>true</code>
</InvalidReturnType>
</file>
- <file src="lib/private/Files/Stream/Encryption.php">
- <InvalidScalarArgument occurrences="1">
- <code>$position</code>
- </InvalidScalarArgument>
- <UndefinedInterfaceMethod occurrences="1"/>
- </file>
<file src="lib/private/Files/Stream/SeekableHttpStream.php">
<FalsableReturnStatement occurrences="3">
<code>false</code>
</TypeDoesNotContainNull>
</file>
<file src="lib/private/Group/Database.php">
- <ImplicitToStringCast occurrences="4">
- <code>$builder->createNamedParameter($gid)</code>
- <code>$builder->createNamedParameter($gid)</code>
- <code>$qb->createNamedParameter($uid)</code>
- <code>$qb->createNamedParameter($gid)</code>
- </ImplicitToStringCast>
<InvalidArgument occurrences="1"/>
<InvalidArrayOffset occurrences="1">
<code>$this->groupCache[$gid]['displayname']</code>
<code>$permsFunc</code>
</ImplicitToStringCast>
</file>
- <file src="lib/private/Repair/RepairMimeTypes.php">
- <InvalidOperand occurrences="1">
- <code>\OC_DB::executeAudited(self::updateByNameStmt(), [$mimetypeId, $this->folderMimeTypeId, $mimetypeId, '%.' . $extension])</code>
- </InvalidOperand>
- </file>
<file src="lib/private/Route/Router.php">
<InvalidClass occurrences="1">
<code>\OC_APP</code>
</InvalidPropertyAssignmentValue>
</file>
<file src="lib/private/Security/Bruteforce/Throttler.php">
- <ImplicitToStringCast occurrences="1">
- <code>$qb->createNamedParameter($value)</code>
- </ImplicitToStringCast>
<NullArgument occurrences="1">
<code>null</code>
</NullArgument>
</file>
<file src="lib/private/Share/Helper.php">
<ImplicitToStringCast occurrences="3">
- <code>$query->createNamedParameter($parents, IQueryBuilder::PARAM_INT_ARRAY)</code>
- <code>$query->createNamedParameter($changeParent, IQueryBuilder::PARAM_INT_ARRAY)</code>
- <code>$query->createNamedParameter($ids, IQueryBuilder::PARAM_INT_ARRAY)</code>
+ <code>$query->createNamedParameter($changeParent, IQueryBuilder::PARAM_INT_ARRAY)</code>
+ <code>$query->createNamedParameter($ids, IQueryBuilder::PARAM_INT_ARRAY)</code>
</ImplicitToStringCast>
</file>
<file src="lib/private/Share/Share.php">
</UndefinedInterfaceMethod>
</file>
<file src="lib/private/Share20/DefaultShareProvider.php">
- <ImplicitToStringCast occurrences="27">
- <code>$qb->createNamedParameter($share->getShareType())</code>
- <code>$qb->createNamedParameter($share->getSharedWith())</code>
- <code>$qb->createNamedParameter(IShare::STATUS_PENDING)</code>
- <code>$qb->createNamedParameter($share->getExpirationDate(), 'datetime')</code>
- <code>$qb->createNamedParameter($share->getSharedWith())</code>
- <code>$qb->createNamedParameter($share->getExpirationDate(), 'datetime')</code>
- <code>$qb->createNamedParameter($share->getLabel())</code>
- <code>$qb->createNamedParameter($share->getToken())</code>
- <code>$qb->createNamedParameter($share->getPassword())</code>
- <code>$qb->createNamedParameter($share->getSendPasswordByTalk(), IQueryBuilder::PARAM_BOOL)</code>
- <code>$qb->createNamedParameter($share->getExpirationDate(), 'datetime')</code>
- <code>$qb->createNamedParameter($share->getParent())</code>
- <code>$qb->createParameter('itemType')</code>
- <code>$qb->createNamedParameter($share->getNode()->getId())</code>
- <code>$qb->createNamedParameter($share->getNode()->getId())</code>
- <code>$qb->createNamedParameter($share->getPermissions())</code>
- <code>$qb->createNamedParameter($share->getSharedBy())</code>
- <code>$qb->createNamedParameter($share->getShareOwner())</code>
- <code>$qb->createNamedParameter($share->getTarget())</code>
- <code>$qb->createNamedParameter(time())</code>
+ <ImplicitToStringCast occurrences="7">
<code>$qb->createNamedParameter($ids, IQueryBuilder::PARAM_INT_ARRAY)</code>
<code>$qb->createNamedParameter($chunk, IQueryBuilder::PARAM_INT_ARRAY)</code>
<code>$qb->createNamedParameter($chunk, IQueryBuilder::PARAM_INT_ARRAY)</code>
<code>string</code>
<code>string</code>
</InvalidParamDefault>
- <InvalidScalarArgument occurrences="4">
- <code>\OC_User::getUser()</code>
+ <InvalidScalarArgument occurrences="3">
<code>\OC_User::getUser()</code>
<code>$appName</code>
<code>$appName</code>
<code>$column</code>
</NullableReturnStatement>
</file>
- <file src="lib/public/AppFramework/Db/QBMapper.php">
- <ImplicitToStringCast occurrences="1">
- <code>$qb->createNamedParameter($value, $type)</code>
- </ImplicitToStringCast>
- </file>
<file src="lib/public/AppFramework/Http/DataResponse.php">
<InvalidReturnStatement occurrences="1">
<code>$this->data</code>
<code>$this->resources</code>
</InvalidPropertyAssignmentValue>
</file>
- <file src="lib/public/AppFramework/Services/IInitialState.php">
- <MismatchingDocblockParamType occurrences="1">
- <code>Closure</code>
- </MismatchingDocblockParamType>
- <UndefinedDocblockClass occurrences="1">
- <code>Closure</code>
- </UndefinedDocblockClass>
- </file>
<file src="lib/public/BackgroundJob/TimedJob.php">
<MoreSpecificImplementedParamType occurrences="1">
<code>$jobList</code>