Skip to content

Commit feee39c

Browse files
committed
style: Fix code style
Signed-off-by: Julius Knorr <jus@bitgrid.net>
1 parent 5ca01f2 commit feee39c

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

lib/AppInfo/Application.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@
3434
use OCA\Richdocuments\Preview\OpenDocument;
3535
use OCA\Richdocuments\Preview\Pdf;
3636
use OCA\Richdocuments\Reference\OfficeTargetReferenceProvider;
37+
use OCA\Richdocuments\SetupCheck\CollaboraUpdate;
38+
use OCA\Richdocuments\SetupCheck\ConnectivityCheck;
3739
use OCA\Richdocuments\Storage\SecureViewWrapper;
3840
use OCA\Richdocuments\TaskProcessing\SlideDeckGenerationProvider;
3941
use OCA\Richdocuments\TaskProcessing\SlideDeckGenerationTaskType;
4042
use OCA\Richdocuments\TaskProcessing\TextToDocumentProvider;
4143
use OCA\Richdocuments\TaskProcessing\TextToDocumentTaskType;
4244
use OCA\Richdocuments\TaskProcessing\TextToSpreadsheetProvider;
4345
use OCA\Richdocuments\TaskProcessing\TextToSpreadsheetTaskType;
44-
use OCA\Richdocuments\SetupCheck\CollaboraUpdate;
45-
use OCA\Richdocuments\SetupCheck\ConnectivityCheck;
4646
use OCA\Richdocuments\Template\CollaboraTemplateProvider;
4747
use OCA\Talk\Events\OverwritePublicSharePropertiesEvent;
4848
use OCA\Viewer\Event\LoadViewer;

tests/psalm-baseline.xml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,6 @@
5252
<code><![CDATA[BadResponseException]]></code>
5353
</UndefinedClass>
5454
</file>
55-
<file src="lib/Controller/SettingsController.php">
56-
<UndefinedClass>
57-
<code><![CDATA[NullOutput]]></code>
58-
<code><![CDATA[NullOutput]]></code>
59-
</UndefinedClass>
60-
</file>
6155
<file src="lib/Controller/TemplatesController.php">
6256
<InvalidReturnStatement>
6357
<code><![CDATA[$this->fetchPreview($template, $x, $y, $a, $forceIcon, $mode)]]></code>
@@ -101,10 +95,15 @@
10195
</MissingDependency>
10296
</file>
10397
<file src="lib/Service/ConnectivityService.php">
104-
<UndefinedClass>
105-
<code><![CDATA[OutputInterface]]></code>
106-
<code><![CDATA[OutputInterface]]></code>
107-
</UndefinedClass>
98+
<InvalidCatch>
99+
<code><![CDATA[try {
100+
$result = $client->post($url, array_merge(RemoteOptionsService::getDefaultOptions(), [
101+
'body' => json_encode(['callbackUrl' => $callbackUrl . '/status.php']), 'headers' => ['Content-Type' => 'application/json']
102+
]));
103+
} catch (ClientException $e) {
104+
$result = $e->getResponse();
105+
}]]></code>
106+
</InvalidCatch>
108107
</file>
109108
<file src="lib/Service/FederationService.php">
110109
<TypeDoesNotContainType>

0 commit comments

Comments
 (0)