YetiForceCompany/YetiForceCRM

View on GitHub
app/Integrations/Dav/Backend/CalendarSchedule.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Parameter $server has undeclared type \Sabre\DAV\server
Open

    public function initialize(DAV\Server $server)

Reference to instance property recipient from undeclared class \Sabre\VObject\ITip\message
Open

        if ('mailto' !== parse_url($iTipMessage->recipient, PHP_URL_SCHEME)) {

Class extends undeclared class \Sabre\DAV\serverplugin
Open

class CalendarSchedule extends DAV\ServerPlugin

Property \App\Integrations\Dav\Backend\CalendarSchedule->server has undeclared type \Sabre\DAV\server
Open

    protected $server;

Reference to instance property scheduleStatus from undeclared class \Sabre\VObject\ITip\message
Open

            if (!$iTipMessage->scheduleStatus) {

Reference to instance property scheduleStatus from undeclared class \Sabre\VObject\ITip\message
Open

                $iTipMessage->scheduleStatus = '1.0;We got the message, but it\'s not significant enough to warrant an email';

Reference to instance property sender from undeclared class \Sabre\VObject\ITip\message
Open

        if ('mailto' !== parse_url($iTipMessage->sender, PHP_URL_SCHEME)) {

Call to method on from undeclared class \Sabre\DAV\server
Open

        $server->on('schedule', [$this, 'schedule'], 120);

Reference to instance property significantChange from undeclared class \Sabre\VObject\ITip\message
Open

        if (!$iTipMessage->significantChange) {

Parameter $iTipMessage has undeclared type \Sabre\VObject\ITip\message
Open

    public function schedule(ITip\Message $iTipMessage)

Reference to instance property scheduleStatus from undeclared class \Sabre\VObject\ITip\message
Open

        $iTipMessage->scheduleStatus = '1.1; Scheduling message is sent via ' . $this->getPluginName();

Spaces must be used to indent lines; tabs are not allowed
Open

    /**

Spaces must be used to indent lines; tabs are not allowed
Open

     *

Spaces must be used to indent lines; tabs are not allowed
Open

     * @var DAV\Server

Spaces must be used to indent lines; tabs are not allowed
Open

     */

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Spaces must be used to indent lines; tabs are not allowed
Open

                $iTipMessage->scheduleStatus = '1.0;We got the message, but it\'s not significant enough to warrant an email';

Spaces must be used to indent lines; tabs are not allowed
Open

     * @return string

Spaces must be used to indent lines; tabs are not allowed
Open

     * Browser plugin.

Spaces must be used to indent lines; tabs are not allowed
Open

        $this->server = $server;

Spaces must be used to indent lines; tabs are not allowed
Open

     * Returns a plugin name.

Spaces must be used to indent lines; tabs are not allowed
Open

        return 'Yeti CalDAV Schedule';

Spaces must be used to indent lines; tabs are not allowed
Open

    /** @codeCoverageIgnoreEnd */

Spaces must be used to indent lines; tabs are not allowed
Open

    public function getPluginInfo()

Spaces must be used to indent lines; tabs are not allowed
Open

     * Reference to server object.

Spaces must be used to indent lines; tabs are not allowed
Open

        }

Spaces must be used to indent lines; tabs are not allowed
Open

        return [

Spaces must be used to indent lines; tabs are not allowed
Open

     * @param \Sabre\DAV\Server $server

Spaces must be used to indent lines; tabs are not allowed
Open

     * be sanitized.

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Spaces must be used to indent lines; tabs are not allowed
Open

     * @param ITip\Message $iTipMessage

Spaces must be used to indent lines; tabs are not allowed
Open

    public function schedule(ITip\Message $iTipMessage)

Spaces must be used to indent lines; tabs are not allowed
Open

            if (!$iTipMessage->scheduleStatus) {

Spaces must be used to indent lines; tabs are not allowed
Open

            return;

Spaces must be used to indent lines; tabs are not allowed
Open

            return;

Spaces must be used to indent lines; tabs are not allowed
Open

     * Using this name other plugins will be able to access other plugins

Spaces must be used to indent lines; tabs are not allowed
Open

     * Returns a bunch of meta-data about the plugin.

Spaces must be used to indent lines; tabs are not allowed
Open

            'description' => 'Adds support for invitations, integrated with YetiForce CRM',

Spaces must be used to indent lines; tabs are not allowed
Open

            }

Spaces must be used to indent lines; tabs are not allowed
Open

    public function getPluginName()

Spaces must be used to indent lines; tabs are not allowed
Open

    /**

Spaces must be used to indent lines; tabs are not allowed
Open

     * The description key in the returned array may contain html and will not

Spaces must be used to indent lines; tabs are not allowed
Open

     */

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Spaces must be used to indent lines; tabs are not allowed
Open

        $server->on('schedule', [$this, 'schedule'], 120);

Spaces must be used to indent lines; tabs are not allowed
Open

        // insignificant.

Spaces must be used to indent lines; tabs are not allowed
Open

        }

Spaces must be used to indent lines; tabs are not allowed
Open

    /**

Spaces must be used to indent lines; tabs are not allowed
Open

     * using \Sabre\DAV\Server::getPlugin

Spaces must be used to indent lines; tabs are not allowed
Open

     *

Spaces must be used to indent lines; tabs are not allowed
Open

     *

Spaces must be used to indent lines; tabs are not allowed
Open

    public function initialize(DAV\Server $server)

Spaces must be used to indent lines; tabs are not allowed
Open

        if ('mailto' !== parse_url($iTipMessage->recipient, PHP_URL_SCHEME)) {

Spaces must be used to indent lines; tabs are not allowed
Open

        }

Spaces must be used to indent lines; tabs are not allowed
Open

     * Providing this information is optional, and is mainly displayed by the

Spaces must be used to indent lines; tabs are not allowed
Open

        if ('mailto' !== parse_url($iTipMessage->sender, PHP_URL_SCHEME)) {

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Spaces must be used to indent lines; tabs are not allowed
Open

     */

Spaces must be used to indent lines; tabs are not allowed
Open

     *

Spaces must be used to indent lines; tabs are not allowed
Open

        if (!$iTipMessage->significantChange) {

Spaces must be used to indent lines; tabs are not allowed
Open

     * Initializes the schedule.

Spaces must be used to indent lines; tabs are not allowed
Open

    /**

Spaces must be used to indent lines; tabs are not allowed
Open

     * Event handler for the 'schedule' event.

Line exceeds 120 characters; contains 126 characters
Open

                $iTipMessage->scheduleStatus = '1.0;We got the message, but it\'s not significant enough to warrant an email';

Spaces must be used to indent lines; tabs are not allowed
Open

            return;

Spaces must be used to indent lines; tabs are not allowed
Open

     *

Spaces must be used to indent lines; tabs are not allowed
Open

     *

Spaces must be used to indent lines; tabs are not allowed
Open

    protected $server;

Spaces must be used to indent lines; tabs are not allowed
Open

    /**

Spaces must be used to indent lines; tabs are not allowed
Open

        // Not sending any emails if the system considers the update

Spaces must be used to indent lines; tabs are not allowed
Open

     *

Spaces must be used to indent lines; tabs are not allowed
Open

            'name' => $this->getPluginName(),

Spaces must be used to indent lines; tabs are not allowed
Open

            'link' => 'https://yetiforce.com/',

Spaces must be used to indent lines; tabs are not allowed
Open

     */

Spaces must be used to indent lines; tabs are not allowed
Open

        $iTipMessage->scheduleStatus = '1.1; Scheduling message is sent via ' . $this->getPluginName();

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

     * @return array

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

        ];

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

     */

Spaces must be used to indent lines; tabs are not allowed
Open

     *

There are no issues that match your filters.

Category
Status