Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 538a5918 authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

lint fix

parent 13c51387
Loading
Loading
Loading
Loading
Loading
+136 −125
Original line number Diff line number Diff line
<?php

declare(strict_types=1);

namespace OCA\Calendar\Controller;

use OCA\DAV\CalDAV\InvitationResponse\InvitationResponseServer;
@@ -12,8 +13,8 @@ use OCP\IRequest;
use Sabre\VObject\ITip\Message;
use Sabre\VObject\Reader;

class InvitationMaybeController extends Controller {

class InvitationMaybeController extends Controller
{
    /** @var IDBConnection */
    private $db;

@@ -32,9 +33,13 @@ class InvitationMaybeController extends Controller {
     * @param ITimeFactory $timeFactory
     * @param InvitationResponseServer $responseServer
     */
	public function __construct(string $appName, IRequest $request,
		IDBConnection $db, ITimeFactory $timeFactory,
		InvitationResponseServer $responseServer) {
    public function __construct(
        string $appName,
        IRequest $request,
        IDBConnection $db,
        ITimeFactory $timeFactory,
        InvitationResponseServer $responseServer
    ) {
        parent::__construct($appName, $request);
        $this->db = $db;
        $this->timeFactory = $timeFactory;
@@ -50,7 +55,8 @@ class InvitationMaybeController extends Controller {
     * @param string $token
     * @return TemplateResponse
     */
	public function tentative(string $token):TemplateResponse {
    public function tentative(string $token): TemplateResponse
    {
        $row = $this->getTokenInformation($token);
        if (!$row) {
            return new TemplateResponse($this->appName, 'schedule-response-error', [], 'guest');
@@ -74,8 +80,12 @@ class InvitationMaybeController extends Controller {
     * @param string|null $comment
     * @return Message
     */
	private function buildITipResponse(array $row, string $partStat, int $guests = null,
		string $comment = null):Message {
    private function buildITipResponse(
        array $row,
        string $partStat,
        int $guests = null,
        string $comment = null
    ): Message {
        $iTipMessage = new Message();
        $iTipMessage->uid = $row['uid'];
        $iTipMessage->component = 'VEVENT';
@@ -132,7 +142,8 @@ EOF;
     * @param string $token
     * @return array|null
     */
	private function getTokenInformation(string $token) {
    private function getTokenInformation(string $token)
    {
        $query = $this->db->getQueryBuilder();
        $query->select('*')
            ->from('calendar_invitations')