Skip to content

Commit

Permalink
fixup! Cleanup tags and Share component
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlSchwan committed Aug 1, 2022
1 parent b954f25 commit 016c90e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 37 deletions.
32 changes: 2 additions & 30 deletions build/psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1112,12 +1112,6 @@
<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>
<file src="apps/files_external/lib/Lib/Backend/Backend.php">
<InvalidReturnType occurrences="1">
<code>self</code>
Expand Down Expand Up @@ -1294,16 +1288,6 @@
<code>$_</code>
</UndefinedVariable>
</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/Cache.php">
<FalsableReturnStatement occurrences="1">
<code>false</code>
Expand Down Expand Up @@ -1924,17 +1908,7 @@
</UndefinedInterfaceMethod>
</file>
<file src="core/Application.php">
<InvalidArgument occurrences="9">
<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>
<InvalidArgument occurrences="8"/>
</file>
<file src="core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php">
<ParamNameMismatch occurrences="1">
Expand Down Expand Up @@ -2141,10 +2115,8 @@
<code>getAppsNeedingUpgrade</code>
<code>getIncompatibleApps</code>
</InternalMethod>
<InvalidArgument occurrences="3">
<InvalidArgument occurrences="1">
<code>$restrictions</code>
<code>addServiceListener</code>
<code>addServiceListener</code>
</InvalidArgument>
<RedundantCondition occurrences="1">
<code>((array)$request-&gt;getParam('appid')) !== ''</code>
Expand Down
3 changes: 0 additions & 3 deletions lib/private/Authentication/Listeners/LoginFailedListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@
use OCP\IUserManager;
use OCP\Util;

/**
* @template-implements IEventListener<\OC\Authentication\Events\LoginFailed>
*/
class LoginFailedListener implements IEventListener {

/** @var IEventDispatcher */
Expand Down
3 changes: 0 additions & 3 deletions lib/private/Authentication/Listeners/UserLoggedInListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@
use OCP\EventDispatcher\IEventListener;
use OCP\User\Events\PostLoginEvent;

/**
* @template-implements IEventListener<\OCP\User\Events\PostLoginEvent>
*/
class UserLoggedInListener implements IEventListener {

/** @var Manager */
Expand Down
2 changes: 1 addition & 1 deletion lib/public/EventDispatcher/IEventDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function removeListener(string $eventName, callable $listener): void;
* @param string $eventName preferably the fully-qualified class name of the Event sub class to listen for
* @psalm-param string|class-string<T> $eventName preferably the fully-qualified class name of the Event sub class to listen for
* @param string $className fully qualified class name (or ::class notation) of a \OCP\EventDispatcher\IEventListener that can be built by the DI container
* @psalm-param class-string<\OCP\EventDispatcher\IEventListener<T>> $className fully qualified class name that can be built by the DI container
* @psalm-param class-string<\OCP\EventDispatcher\IEventListener> $className fully qualified class name that can be built by the DI container
* @param int $priority The higher this value, the earlier an event
* listener will be triggered in the chain (defaults to 0)
*
Expand Down

0 comments on commit 016c90e

Please sign in to comment.