fix(cs): Apply coding standard auto fixes
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Родитель
06a7b8bc7d
Коммит
b7b16ea304
|
@ -62,7 +62,7 @@ class MailNotifications {
|
|||
return;
|
||||
}
|
||||
|
||||
$userIds = array_map(static fn(Settings $settings) => $settings->getUserId(), $userSettings);
|
||||
$userIds = array_map(static fn (Settings $settings) => $settings->getUserId(), $userSettings);
|
||||
|
||||
// Batch-read settings
|
||||
$fallbackTimeZone = date_default_timezone_get();
|
||||
|
|
|
@ -171,8 +171,8 @@ class Push {
|
|||
public function filterDeviceList(array $devices, string $app): array {
|
||||
$isTalkNotification = \in_array($app, ['spreed', 'talk', 'admin_notification_talk'], true);
|
||||
|
||||
$talkDevices = array_filter($devices, static fn($device) => $device['apptype'] === 'talk');
|
||||
$otherDevices = array_filter($devices, static fn($device) => $device['apptype'] !== 'talk');
|
||||
$talkDevices = array_filter($devices, static fn ($device) => $device['apptype'] === 'talk');
|
||||
$otherDevices = array_filter($devices, static fn ($device) => $device['apptype'] !== 'talk');
|
||||
|
||||
$this->printInfo('Identified ' . count($talkDevices) . ' Talk devices and ' . count($otherDevices) . ' others.');
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ declare(strict_types=1);
|
|||
*/
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
|
||||
return RectorConfig::configure()
|
||||
->withPaths([
|
||||
__DIR__ . '/appinfo',
|
||||
|
|
|
@ -42,7 +42,7 @@ trait CommandLineTrait {
|
|||
'maintenance:mode',
|
||||
], true);
|
||||
|
||||
$args = array_map(fn($arg) => escapeshellarg($arg), $args);
|
||||
$args = array_map(fn ($arg) => escapeshellarg($arg), $args);
|
||||
$args[] = '--no-ansi';
|
||||
$argString = implode(' ', $args);
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ class NotifierTest extends TestCase {
|
|||
$this->l = $this->createMock(IL10N::class);
|
||||
$this->l->expects($this->any())
|
||||
->method('t')
|
||||
->willReturnCallback(fn($string, $args) => vsprintf($string, $args));
|
||||
->willReturnCallback(fn ($string, $args) => vsprintf($string, $args));
|
||||
$this->factory = $this->createMock(IFactory::class);
|
||||
$this->factory->expects($this->any())
|
||||
->method('get')
|
||||
|
|
Загрузка…
Ссылка в новой задаче