}
$attribute = $this->connection->getFromCache($uuidAttr);
- if (!$attribute === null) {
+ if ($attribute !== null) {
$this->connection->$uuidAttr = $attribute;
return true;
}
*
* @package OCA\UserStatus\Db
*
+ * @psalm-suppress MoreSpecificImplementedParamType
+ *
* @method UserStatus insert(UserStatus $entity)
* @method UserStatus update(UserStatus $entity)
* @method UserStatus insertOrUpdate(UserStatus $entity)
'.jshintrc',
'.mailmap',
'.npmignore',
- '.php_cs.dist',
+ '.php-cs-fixer.dist.php',
'.scrutinizer.yml',
'.tag',
'.tx',
'tests',
'themes',
'version.php',
+ 'vendor-bin',
'webpack.common.js',
'webpack.dev.js',
'webpack.prod.js',
<code>registerProvider</code>
</UndefinedInterfaceMethod>
</file>
- <file src="apps/user_status/lib/Db/UserStatusMapper.php">
- <MoreSpecificImplementedParamType occurrences="4">
- <code>UserStatus insert(UserStatus $entity)</code>
- <code>UserStatus insert(UserStatus $entity)</code>
- <code>UserStatus insert(UserStatus $entity)</code>
- <code>UserStatus insert(UserStatus $entity)</code>
- </MoreSpecificImplementedParamType>
- </file>
<file src="apps/workflowengine/lib/AppInfo/Application.php">
<InvalidArgument occurrences="1">
<code>registerEventListener</code>
*/
public function searchCollections(IUser $user, string $filter, int $limit = 50, int $start = 0): array {
$query = $this->connection->getQueryBuilder();
- $userId = $user instanceof IUser ? $user->getUID() : '';
+ $userId = $user->getUID();
$query->select('c.*', 'a.access')
->from(self::TABLE_COLLECTIONS, 'c')
throw new \InvalidArgumentException('The given notification has been processed');
}
- if (!($notification instanceof INotification) || !$notification->isValidParsed()) {
+ if (!$notification->isValidParsed()) {
throw new \InvalidArgumentException('The given notification has not been handled');
}
}
- if (!($notification instanceof INotification) || !$notification->isValidParsed()) {
+ if (!$notification->isValidParsed()) {
throw new \InvalidArgumentException('The given notification has not been handled');
}
'default_charset' => 'UTF-8',
],
];
+ /** @var array<array-key, bool|string|int> $missingDependencies */
$missingDependencies = [];
$invalidIniSettings = [];
}
foreach ($invalidIniSettings as $setting) {
if (is_bool($setting[1])) {
- $setting[1] = $setting[1] ? 'on' : 'off';
+ $setting[1] = $setting[1] === true ? 'on' : 'off';
}
$errors[] = [
'error' => $l->t('PHP setting "%s" is not set to "%s".', [$setting[0], var_export($setting[1], true)]),