diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 94bb1df..401dd6d 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -9,17 +9,15 @@ use OCP\AppFramework\Bootstrap\IBootContext; use OCP\AppFramework\Bootstrap\IBootstrap; use OCP\AppFramework\Bootstrap\IRegistrationContext; -class Application extends App implements IBootstrap { +class Application extends App implements IBootstrap +{ public const APP_ID = 'app_template'; - /** @psalm-suppress PossiblyUnusedMethod */ public function __construct() { parent::__construct(self::APP_ID); } - public function register(IRegistrationContext $context): void { - } + public function register(IRegistrationContext $context): void {} - public function boot(IBootContext $context): void { - } + public function boot(IBootContext $context): void {} } diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php index 70a2563..7fcaf94 100644 --- a/lib/Controller/ApiController.php +++ b/lib/Controller/ApiController.php @@ -10,12 +10,10 @@ use OCP\AppFramework\Http\Attribute\NoAdminRequired; use OCP\AppFramework\Http\DataResponse; use OCP\AppFramework\OCSController; -/** - * @psalm-suppress UnusedClass - */ -class ApiController extends OCSController { +class ApiController extends OCSController +{ /** - * An example API endpoint + * An example API endpoint. * * @return DataResponse * diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index af82037..ed26018 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -12,10 +12,8 @@ use OCP\AppFramework\Http\Attribute\NoCSRFRequired; use OCP\AppFramework\Http\Attribute\OpenAPI; use OCP\AppFramework\Http\TemplateResponse; -/** - * @psalm-suppress UnusedClass - */ -class PageController extends Controller { +class PageController extends Controller +{ #[NoCSRFRequired] #[NoAdminRequired] #[OpenAPI(OpenAPI::SCOPE_IGNORE)] diff --git a/psalm.xml b/psalm.xml index 567b000..df1d5cb 100644 --- a/psalm.xml +++ b/psalm.xml @@ -6,7 +6,7 @@ xmlns="https://getpsalm.org/schema/config" xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" findUnusedBaselineEntry="true" - findUnusedCode="true" + findUnusedCode="false" > diff --git a/rector.php b/rector.php index 63cd22c..881c2f3 100644 --- a/rector.php +++ b/rector.php @@ -6,7 +6,7 @@ use Rector\Config\RectorConfig; return RectorConfig::configure() ->withPaths([ - __DIR__ . '/lib', + __DIR__.'/lib', ]) ->withPhpSets(php80: true) ->withPreparedSets( @@ -25,4 +25,5 @@ return RectorConfig::configure() symfonyConfigs: true, twig: true, phpunit: true, - ); + ) +; diff --git a/src/App.vue b/src/App.vue index e579eba..c6f0df3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -7,7 +7,7 @@