-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(lint): avoid risky truthy falsy comparison
Signed-off-by: Max <max@nextcloud.com>
- Loading branch information
1 parent
0d67aa0
commit 50edcb6
Showing
10 changed files
with
53 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,46 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<files psalm-version="5.13.1@086b94371304750d1c673315321a55d15fc59015"> | ||
<files psalm-version="5.23.1@8471a896ccea3526b26d082f4461eeea467f10a4"> | ||
<file src="lib/Controller/AttachmentController.php"> | ||
<NullArgument> | ||
<code><![CDATA[null]]></code> | ||
</NullArgument> | ||
</file> | ||
<file src="lib/Controller/WorkspaceController.php"> | ||
<UndefinedInterfaceMethod> | ||
<code>open</code> | ||
<code><![CDATA[open]]></code> | ||
</UndefinedInterfaceMethod> | ||
</file> | ||
<file src="lib/DAV/WorkspacePlugin.php"> | ||
<UndefinedClass> | ||
<code>ServerPlugin</code> | ||
<code><![CDATA[ServerPlugin]]></code> | ||
</UndefinedClass> | ||
</file> | ||
<file src="lib/DirectEditing/TextDirectEditor.php"> | ||
<UndefinedInterfaceMethod> | ||
<code>getToken</code> | ||
<code><![CDATA[getToken]]></code> | ||
</UndefinedInterfaceMethod> | ||
</file> | ||
<file src="lib/Service/EncodingService.php"> | ||
<RiskyTruthyFalsyComparison> | ||
<code><![CDATA[mb_detect_encoding($string, $this->getEncodings(), true)]]></code> | ||
<code><![CDATA[mb_detect_order()]]></code> | ||
</RiskyTruthyFalsyComparison> | ||
</file> | ||
<file src="vendor/nextcloud/ocp/OCP/AppFramework/Controller.php"> | ||
<MissingClosureParamType> | ||
<code>$data</code> | ||
<code><![CDATA[$data]]></code> | ||
</MissingClosureParamType> | ||
<MissingClosureReturnType> | ||
<code>function ($data) {</code> | ||
<code><![CDATA[function ($data) {]]></code> | ||
</MissingClosureReturnType> | ||
<PossiblyInvalidArgument> | ||
<code><![CDATA[$data->getData()]]></code> | ||
</PossiblyInvalidArgument> | ||
</file> | ||
<file src="vendor/nextcloud/ocp/OCP/AppFramework/OCSController.php"> | ||
<MissingClosureParamType> | ||
<code>$data</code> | ||
<code>$data</code> | ||
<code><![CDATA[$data]]></code> | ||
<code><![CDATA[$data]]></code> | ||
</MissingClosureParamType> | ||
</file> | ||
</files> |