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/
.phpunit.result.cache
.vscode/settings.json
.php-cs-fixer.cache

View File

@ -14,8 +14,8 @@
},
"require-dev": {
"phpunit/phpunit": "^8.5 || ^9.3",
"friendsofphp/php-cs-fixer": "^2.16",
"nextcloud/coding-standard": "^0.5.0",
"friendsofphp/php-cs-fixer": "^3",
"nextcloud/coding-standard": "^1.0.0",
"phpstan/phpstan": "^0.12.29",
"christophwurst/nextcloud": "^22.0 || ^23.0 || ^24.0",
"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;
class MeetingListener implements IEventListener {
/** @var IActivityManager */
private $activityManager;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -10,7 +10,6 @@ use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep;
class Version000000Date20200617055735 extends SimpleMigrationStep {
/**
* @param IOutput $output
* @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!
*/
class Version000000Date20200826100844 extends SimpleMigrationStep {
/**
* @param IOutput $output
* @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!
*/
class Version000000Date20200829112301 extends SimpleMigrationStep {
/**
* @param IOutput $output
* @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!
*/
class Version000000Date20210122164501 extends SimpleMigrationStep {
/**
* @param IOutput $output
* @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!
*/
class Version000000Date20210419132000 extends SimpleMigrationStep {
/**
* @param IOutput $output
* @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!
*/
class Version000000Date20210729200144 extends SimpleMigrationStep {
/**
* @param IOutput $output
* @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!
*/
class Version000000Date20220316151400 extends SimpleMigrationStep {
/**
* @param IOutput $output
* @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!
*/
class Version000000Date20220728083700 extends SimpleMigrationStep {
/**
* @param IOutput $output
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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