chore: update php cs fixer

pull/225/head
sualko 2022-10-26 19:16:51 +02:00
parent b4a75dba9a
commit c6738cbbaf
31 changed files with 227 additions and 484 deletions

1
.gitignore vendored
View File

@ -9,3 +9,4 @@ node_modules/
/archives/ /archives/
.phpunit.result.cache .phpunit.result.cache
.vscode/settings.json .vscode/settings.json
.php-cs-fixer.cache

View File

@ -14,8 +14,8 @@
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^8.5 || ^9.3", "phpunit/phpunit": "^8.5 || ^9.3",
"friendsofphp/php-cs-fixer": "^2.16", "friendsofphp/php-cs-fixer": "^3",
"nextcloud/coding-standard": "^0.5.0", "nextcloud/coding-standard": "^1.0.0",
"phpstan/phpstan": "^0.12.29", "phpstan/phpstan": "^0.12.29",
"christophwurst/nextcloud": "^22.0 || ^23.0 || ^24.0", "christophwurst/nextcloud": "^22.0 || ^23.0 || ^24.0",
"vimeo/psalm": "^4.5" "vimeo/psalm": "^4.5"

666
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -12,7 +12,6 @@ use OCP\EventDispatcher\IEventListener;
use OCP\IUserSession; use OCP\IUserSession;
class MeetingListener implements IEventListener { class MeetingListener implements IEventListener {
/** @var IActivityManager */ /** @var IActivityManager */
private $activityManager; private $activityManager;

View File

@ -15,7 +15,6 @@ use OCP\IUserManager;
use OCP\L10N\IFactory; use OCP\L10N\IFactory;
class Provider implements IProvider { class Provider implements IProvider {
/** @var string */ /** @var string */
public const ROOM_CREATED = 'room_created'; public const ROOM_CREATED = 'room_created';

View File

@ -10,7 +10,6 @@ use OCP\EventDispatcher\Event;
use OCP\EventDispatcher\IEventListener; use OCP\EventDispatcher\IEventListener;
class RoomListener implements IEventListener { class RoomListener implements IEventListener {
/** @var IActivityManager */ /** @var IActivityManager */
private $activityManager; private $activityManager;

View File

@ -14,7 +14,6 @@ use OCP\EventDispatcher\IEventListener;
use OCP\IGroupManager; use OCP\IGroupManager;
class RoomShareListener implements IEventListener { class RoomShareListener implements IEventListener {
/** @var IActivityManager */ /** @var IActivityManager */
private $activityManager; private $activityManager;

View File

@ -10,7 +10,6 @@ use OCP\BackgroundJob\IJobList;
use OCP\BackgroundJob\TimedJob; use OCP\BackgroundJob\TimedJob;
class IsRunningJob extends TimedJob { class IsRunningJob extends TimedJob {
/** @var IJobList */ /** @var IJobList */
private $jobList; private $jobList;

View File

@ -9,7 +9,7 @@ class Presentation {
public function __construct(string $url, string $filename) { public function __construct(string $url, string $filename) {
$this->url = $url; $this->url = $url;
$this->filename = preg_replace('/[^\x20-\x7E]+/','#', $filename); $this->filename = preg_replace('/[^\x20-\x7E]+/', '#', $filename);
} }
public function getUrl(): string { public function getUrl(): string {

View File

@ -8,7 +8,6 @@ use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
class ClearAvatarCache extends Command { class ClearAvatarCache extends Command {
/** /**
* @var AvatarRepository * @var AvatarRepository
*/ */

View File

@ -6,7 +6,6 @@ use OCA\BigBlueButton\Db\Room;
use OCP\EventDispatcher\Event; use OCP\EventDispatcher\Event;
abstract class RoomEvent extends Event { abstract class RoomEvent extends Event {
/** @var Room */ /** @var Room */
private $room; private $room;

View File

@ -6,7 +6,6 @@ use OCA\BigBlueButton\Db\RoomShare;
use OCP\EventDispatcher\Event; use OCP\EventDispatcher\Event;
abstract class RoomShareEvent extends Event { abstract class RoomShareEvent extends Event {
/** @var RoomShare */ /** @var RoomShare */
private $roomShare; private $roomShare;

View File

@ -10,7 +10,6 @@ use OCP\EventDispatcher\IEventListener;
use OCP\User\Events\UserDeletedEvent; use OCP\User\Events\UserDeletedEvent;
class UserDeletedListener implements IEventListener { class UserDeletedListener implements IEventListener {
/** @var IActivityManager */ /** @var IActivityManager */
private $activityManager; private $activityManager;

View File

@ -10,7 +10,6 @@ use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep; use OCP\Migration\SimpleMigrationStep;
class Version000000Date20200416124731 extends SimpleMigrationStep { class Version000000Date20200416124731 extends SimpleMigrationStep {
/** /**
* @param IOutput $output * @param IOutput $output
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`

View File

@ -10,7 +10,6 @@ use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep; use OCP\Migration\SimpleMigrationStep;
class Version000000Date20200613111242 extends SimpleMigrationStep { class Version000000Date20200613111242 extends SimpleMigrationStep {
/** /**
* @param IOutput $output * @param IOutput $output
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`

View File

@ -10,7 +10,6 @@ use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep; use OCP\Migration\SimpleMigrationStep;
class Version000000Date20200617055735 extends SimpleMigrationStep { class Version000000Date20200617055735 extends SimpleMigrationStep {
/** /**
* @param IOutput $output * @param IOutput $output
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`

View File

@ -13,7 +13,6 @@ use OCP\Migration\SimpleMigrationStep;
* Auto-generated migration step: Please modify to your needs! * Auto-generated migration step: Please modify to your needs!
*/ */
class Version000000Date20200826100844 extends SimpleMigrationStep { class Version000000Date20200826100844 extends SimpleMigrationStep {
/** /**
* @param IOutput $output * @param IOutput $output
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`

View File

@ -13,7 +13,6 @@ use OCP\Migration\SimpleMigrationStep;
* Auto-generated migration step: Please modify to your needs! * Auto-generated migration step: Please modify to your needs!
*/ */
class Version000000Date20200829112301 extends SimpleMigrationStep { class Version000000Date20200829112301 extends SimpleMigrationStep {
/** /**
* @param IOutput $output * @param IOutput $output
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`

View File

@ -13,7 +13,6 @@ use OCP\Migration\SimpleMigrationStep;
* Auto-generated migration step: Please modify to your needs! * Auto-generated migration step: Please modify to your needs!
*/ */
class Version000000Date20210122164501 extends SimpleMigrationStep { class Version000000Date20210122164501 extends SimpleMigrationStep {
/** /**
* @param IOutput $output * @param IOutput $output
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`

View File

@ -13,7 +13,6 @@ use OCP\Migration\SimpleMigrationStep;
* Auto-generated migration step: Please modify to your needs! * Auto-generated migration step: Please modify to your needs!
*/ */
class Version000000Date20210419132000 extends SimpleMigrationStep { class Version000000Date20210419132000 extends SimpleMigrationStep {
/** /**
* @param IOutput $output * @param IOutput $output
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`

View File

@ -13,8 +13,6 @@ use OCP\Migration\SimpleMigrationStep;
* Auto-generated migration step: Please modify to your needs! * Auto-generated migration step: Please modify to your needs!
*/ */
class Version000000Date20210729200144 extends SimpleMigrationStep { class Version000000Date20210729200144 extends SimpleMigrationStep {
/** /**
* @param IOutput $output * @param IOutput $output
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`

View File

@ -13,8 +13,6 @@ use OCP\Migration\SimpleMigrationStep;
* Auto-generated migration step: Please modify to your needs! * Auto-generated migration step: Please modify to your needs!
*/ */
class Version000000Date20220316151400 extends SimpleMigrationStep { class Version000000Date20220316151400 extends SimpleMigrationStep {
/** /**
* @param IOutput $output * @param IOutput $output
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`

View File

@ -13,8 +13,6 @@ use OCP\Migration\SimpleMigrationStep;
* Auto-generated migration step: Please modify to your needs! * Auto-generated migration step: Please modify to your needs!
*/ */
class Version000000Date20220728083700 extends SimpleMigrationStep { class Version000000Date20220728083700 extends SimpleMigrationStep {
/** /**
* @param IOutput $output * @param IOutput $output
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`

View File

@ -13,7 +13,6 @@ use OCP\IGroupManager;
use OCP\IUserManager; use OCP\IUserManager;
class Permission { class Permission {
/** @var IUserManager */ /** @var IUserManager */
private $userManager; private $userManager;

View File

@ -16,7 +16,6 @@ use OCP\IConfig;
use OCP\Security\ISecureRandom; use OCP\Security\ISecureRandom;
class RoomService { class RoomService {
/** @var RoomMapper */ /** @var RoomMapper */
private $mapper; private $mapper;
@ -61,9 +60,9 @@ class RoomService {
return $this->mapper->find($id); return $this->mapper->find($id);
// in order to be able to plug in different storage backends like files // in order to be able to plug in different storage backends like files
// for instance it is a good idea to turn storage related exceptions // for instance it is a good idea to turn storage related exceptions
// into service related exceptions so controllers and service users // into service related exceptions so controllers and service users
// have to deal with only one type of exception // have to deal with only one type of exception
} catch (Exception $e) { } catch (Exception $e) {
$this->handleException($e); $this->handleException($e);
} }

View File

@ -14,7 +14,6 @@ use OCP\AppFramework\Db\MultipleObjectsReturnedException;
use OCP\EventDispatcher\IEventDispatcher; use OCP\EventDispatcher\IEventDispatcher;
class RoomShareService { class RoomShareService {
/** @var RoomShareMapper */ /** @var RoomShareMapper */
private $mapper; private $mapper;

View File

@ -7,7 +7,6 @@ use OCP\IConfig;
use OCP\Settings\ISettings; use OCP\Settings\ISettings;
class Admin implements ISettings { class Admin implements ISettings {
/** @var IConfig */ /** @var IConfig */
private $config; private $config;

View File

@ -2,7 +2,7 @@
/** @var $_ array */ /** @var $_ array */
/** @var $l \OCP\IL10N */ /** @var $l \OCP\IL10N */
style('core', 'guest'); style('core', 'guest');
?> ?>
<div class="update bbb"> <div class="update bbb">
<h2><?php p($_['room']) ?></h2> <h2><?php p($_['room']) ?></h2>

View File

@ -3,7 +3,7 @@
/** @var $l \OCP\IL10N */ /** @var $l \OCP\IL10N */
style('core', 'guest'); style('core', 'guest');
script('bbb', 'join'); script('bbb', 'join');
?> ?>
<form method="get" action="?"> <form method="get" action="?">
<fieldset class="warning bbb"> <fieldset class="warning bbb">
<h2><?php p($_['room']) ?></h2> <h2><?php p($_['room']) ?></h2>

View File

@ -3,7 +3,7 @@
/** @var $l \OCP\IL10N */ /** @var $l \OCP\IL10N */
style('core', 'guest'); style('core', 'guest');
script('bbb', 'waiting'); script('bbb', 'waiting');
?> ?>
<div class="update bbb"> <div class="update bbb">
<h2><?php p($_['room']); ?></h2> <h2><?php p($_['room']); ?></h2>