Skip to content

Commit

Permalink
run cs:fix
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
  • Loading branch information
julien-nc committed Sep 26, 2024
1 parent 2a3fb31 commit cef7a3e
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 22 deletions.
8 changes: 4 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/BackgroundJob/CheckOpenTickets.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class CheckOpenTickets extends TimedJob {
public function __construct(
ITimeFactory $time,
private ZammadAPIService $zammadAPIService,
private LoggerInterface $logger
private LoggerInterface $logger,
) {
parent::__construct($time);
// Every 15 minutes
Expand Down
10 changes: 5 additions & 5 deletions lib/Controller/ConfigController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@
use OCA\Zammad\Reference\ZammadReferenceProvider;
use OCA\Zammad\Service\ZammadAPIService;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\DataResponse;
use OCP\AppFramework\Http\RedirectResponse;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\Attribute\NoAdminRequired;
use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
use OCP\AppFramework\Http\Attribute\PasswordConfirmationRequired;
use OCP\IURLGenerator;
use OCP\AppFramework\Http\DataResponse;
use OCP\AppFramework\Http\RedirectResponse;
use OCP\IConfig;
use OCP\IL10N;

use OCP\IRequest;

use OCP\IURLGenerator;
use OCP\PreConditionNotMetException;

class ConfigController extends Controller {
Expand All @@ -39,7 +39,7 @@ public function __construct(
private IL10N $l,
private ZammadAPIService $zammadAPIService,
private ZammadReferenceProvider $zammadReferenceProvider,
private ?string $userId
private ?string $userId,
) {
parent::__construct($appName, $request);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/ZammadAPIController.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __construct(
IRequest $request,
private IConfig $config,
private ZammadAPIService $zammadAPIService,
private ?string $userId
private ?string $userId,
) {
parent::__construct($appName, $request);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Dashboard/ZammadWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ZammadWidget implements IWidget {

public function __construct(
private IL10N $l10n,
private IURLGenerator $url
private IURLGenerator $url,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Notification/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct(
private IFactory $factory,
private IUserManager $userManager,
private INotificationManager $notificationManager,
private IURLGenerator $urlGenerator
private IURLGenerator $urlGenerator,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Reference/ZammadReferenceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct(
private IReferenceManager $referenceManager,
private IURLGenerator $urlGenerator,
private IL10N $l10n,
private ?string $userId
private ?string $userId,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Search/ZammadSearchProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct(
private IConfig $config,
private IURLGenerator $urlGenerator,
private IDateTimeFormatter $dateTimeFormatter,
private ZammadAPIService $service
private ZammadAPIService $service,
) {
}

Expand Down
6 changes: 3 additions & 3 deletions lib/Service/ZammadAPIService.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ class ZammadAPIService {
/**
* Service to make requests to Zammad v3 (JSON) API
*/
public function __construct (
public function __construct(
private IUserManager $userManager,
private LoggerInterface $logger,
private IL10N $l10n,
private IConfig $config,
private INotificationManager $notificationManager,
ICacheFactory $cacheFactory,
IClientService $clientService
IClientService $clientService,
) {
$this->client = $clientService->newClient();
$this->cache = $cacheFactory->createDistributed(Application::APP_ID . '_global_info');
Expand Down Expand Up @@ -443,7 +443,7 @@ public function getOrganizationInfo(string $userId, int $zammadOrgId): array {
* @throws Exception
*/
public function request(
string $userId, string $endPoint, array $params = [], string $method = 'GET', bool $jsonResponse = true
string $userId, string $endPoint, array $params = [], string $method = 'GET', bool $jsonResponse = true,
): array {
$zammadUrl = $this->getZammadUrl($userId);
$this->checkTokenExpiration($userId);
Expand Down
2 changes: 1 addition & 1 deletion lib/Settings/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Admin implements ISettings {

public function __construct(
private IConfig $config,
private IInitialState $initialStateService
private IInitialState $initialStateService,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Settings/AdminSection.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class AdminSection implements IIconSection {

public function __construct(
private IURLGenerator $urlGenerator,
private IL10N $l
private IL10N $l,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Settings/Personal.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Personal implements ISettings {
public function __construct(
private IConfig $config,
private IInitialState $initialStateService,
private ?string $userId
private ?string $userId,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Settings/PersonalSection.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class PersonalSection implements IIconSection {

public function __construct(
private IURLGenerator $urlGenerator,
private IL10N $l
private IL10N $l,
) {
}

Expand Down

0 comments on commit cef7a3e

Please sign in to comment.