Skip to content

Commit

Permalink
fix(setupcheck): Migrate to public API
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Sep 16, 2024
1 parent d8f9ae6 commit da945cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lib/SetupCheck/BackgroundBlurLoading.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
*/
namespace OCA\Talk\SetupCheck;

use OCA\Settings\SetupChecks\CheckServerResponseTrait;
use OCP\Http\Client\IClientService;
use OCP\IConfig;
use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\SetupCheck\CheckServerResponseTrait;
use OCP\SetupCheck\ISetupCheck;
use OCP\SetupCheck\SetupResult;
use Psr\Log\LoggerInterface;
Expand Down Expand Up @@ -43,7 +43,7 @@ public function getName(): string {
public function run(): SetupResult {
$url = $this->urlGenerator->linkTo('spreed', 'js/tflite.wasm');
$noResponse = true;
$responses = $this->runHEAD($url);
$responses = $this->runRequest('HEAD', $url);
foreach ($responses as $response) {
$noResponse = false;
if ($response->getStatusCode() === 200) {
Expand Down
7 changes: 1 addition & 6 deletions tests/psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.25.0@01a8eb06b9e9cc6cfb6a320bf9fb14331919d505">
<files psalm-version="5.26.0@4787eaf414e16c661902b94dfe5d882223e5b513">
<file src="lib/AppInfo/Application.php">
<UndefinedClass>
<code><![CDATA[BeforeTemplateRenderedEvent]]></code>
Expand Down Expand Up @@ -81,11 +81,6 @@
<code><![CDATA[NoUserException]]></code>
</UndefinedClass>
</file>
<file src="lib/SetupCheck/BackgroundBlurLoading.php">
<UndefinedTrait>
<code><![CDATA[CheckServerResponseTrait]]></code>
</UndefinedTrait>
</file>
<file src="lib/Share/Listener.php">
<UndefinedClass>
<code><![CDATA[$event->getView()]]></code>
Expand Down

0 comments on commit da945cc

Please sign in to comment.