YetiForceCompany/YetiForceCRM

View on GitHub
app/Integrations/Dav/Debug.php

Summary

Maintainability
A
35 mins
Test Coverage
F
0%

Function beforeMethod has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

    public function beforeMethod(RequestInterface $request, ResponseInterface $response)
    {
        file_put_contents(self::DEBUG_FILE, '============ ' . date('Y-m-d H:i:s') . ' ====== Request ======' . PHP_EOL, FILE_APPEND);
        if (\in_array($request->getMethod(), ['PROPFIND', 'REPORT', 'PUT'])) {
            $content = $request->getMethod() . ' ' . $request->getUrl() . ' HTTP/' . $request->getHTTPVersion() . "\r\n";
Severity: Minor
Found in app/Integrations/Dav/Debug.php - About 35 mins to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Missing class import via use statement (line '187', column '55').
Open

        throw new \App\Exceptions\AppException($str, 0, new \ErrorException($str, 0, $no, $file, $line));
Severity: Minor
Found in app/Integrations/Dav/Debug.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '187', column '13').
Open

        throw new \App\Exceptions\AppException($str, 0, new \ErrorException($str, 0, $no, $file, $line));
Severity: Minor
Found in app/Integrations/Dav/Debug.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

The method beforeMethod uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            $content = $request->__toString();
        }
Severity: Minor
Found in app/Integrations/Dav/Debug.php by phpmd

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

Source https://phpmd.org/rules/cleancode.html#elseexpression

Define a constant instead of duplicating this literal "Y-m-d H:i:s" 3 times.
Open

        file_put_contents(self::DEBUG_FILE, '============ ' . date('Y-m-d H:i:s') . ' ====== Request ======' . PHP_EOL, FILE_APPEND);
Severity: Critical
Found in app/Integrations/Dav/Debug.php by sonar-php

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

function run() {
  prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
  execute('action1');
  release('action1');
}

Compliant Solution

ACTION_1 = 'action1';

function run() {
  prepare(ACTION_1);
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "============ " 3 times.
Open

        file_put_contents(self::DEBUG_FILE, '============ ' . date('Y-m-d H:i:s') . ' ====== Request ======' . PHP_EOL, FILE_APPEND);
Severity: Critical
Found in app/Integrations/Dav/Debug.php by sonar-php

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

function run() {
  prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
  execute('action1');
  release('action1');
}

Compliant Solution

ACTION_1 = 'action1';

function run() {
  prepare(ACTION_1);
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Avoid unused parameters such as '$request'.
Open

    public function afterResponse(RequestInterface $request, ResponseInterface $response)
Severity: Minor
Found in app/Integrations/Dav/Debug.php by phpmd

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$response'.
Open

    public function beforeMethod(RequestInterface $request, ResponseInterface $response)
Severity: Minor
Found in app/Integrations/Dav/Debug.php by phpmd

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

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

    public function initialize(DAV\Server $server)
Severity: Minor
Found in app/Integrations/Dav/Debug.php by phan

Call to method __toString from undeclared class \Sabre\HTTP\ResponseInterface
Open

            $content = $response->__toString();
Severity: Critical
Found in app/Integrations/Dav/Debug.php by phan

Reference to instance property httpRequest from undeclared class \Sabre\DAV\server
Open

        $error .= 'request: ' . PHP_EOL . ($this->request ?? $this->server->httpRequest) . PHP_EOL;
Severity: Minor
Found in app/Integrations/Dav/Debug.php by phan

Reference to instance property httpResponse from undeclared class \Sabre\DAV\server
Open

        $error .= 'response: ' . PHP_EOL . ($this->response ?? $this->server->httpResponse);
Severity: Minor
Found in app/Integrations/Dav/Debug.php by phan

Call to method getMethod from undeclared class \Sabre\HTTP\RequestInterface
Open

            $content = $request->getMethod() . ' ' . $request->getUrl() . ' HTTP/' . $request->getHTTPVersion() . "\r\n";
Severity: Critical
Found in app/Integrations/Dav/Debug.php by phan

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

    protected $server;
Severity: Minor
Found in app/Integrations/Dav/Debug.php by phan

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

        $this->server->setLogger((new Logger()));
Severity: Critical
Found in app/Integrations/Dav/Debug.php by phan

Call to method getUrl from undeclared class \Sabre\HTTP\RequestInterface
Open

            $content = $request->getMethod() . ' ' . $request->getUrl() . ' HTTP/' . $request->getHTTPVersion() . "\r\n";
Severity: Critical
Found in app/Integrations/Dav/Debug.php by phan

Call to method getHeaders from undeclared class \Sabre\HTTP\RequestInterface
Open

            foreach ($request->getHeaders() as $key => $value) {
Severity: Critical
Found in app/Integrations/Dav/Debug.php by phan

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

        $this->server->on('exception', [$this, 'exception']);
Severity: Critical
Found in app/Integrations/Dav/Debug.php by phan

Call to method getHTTPVersion from undeclared class \Sabre\HTTP\RequestInterface
Open

            $content = $request->getMethod() . ' ' . $request->getUrl() . ' HTTP/' . $request->getHTTPVersion() . "\r\n";
Severity: Critical
Found in app/Integrations/Dav/Debug.php by phan

Parameter $response has undeclared type \Sabre\HTTP\ResponseInterface
Open

    public function beforeMethod(RequestInterface $request, ResponseInterface $response)
Severity: Minor
Found in app/Integrations/Dav/Debug.php by phan

Call to method __toString from undeclared class \Sabre\HTTP\RequestInterface
Open

            $content = $request->__toString();
Severity: Critical
Found in app/Integrations/Dav/Debug.php by phan

Class extends undeclared class \Sabre\DAV\serverplugin
Open

class Debug extends DAV\ServerPlugin
Severity: Critical
Found in app/Integrations/Dav/Debug.php by phan

Parameter $request has undeclared type \Sabre\HTTP\RequestInterface
Open

    public function beforeMethod(RequestInterface $request, ResponseInterface $response)
Severity: Minor
Found in app/Integrations/Dav/Debug.php by phan

Parameter $request has undeclared type \Sabre\HTTP\RequestInterface
Open

    public function afterResponse(RequestInterface $request, ResponseInterface $response)
Severity: Minor
Found in app/Integrations/Dav/Debug.php by phan

Parameter $response has undeclared type \Sabre\HTTP\ResponseInterface
Open

    public function afterResponse(RequestInterface $request, ResponseInterface $response)
Severity: Minor
Found in app/Integrations/Dav/Debug.php by phan

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

        $this->server->on('afterResponse', [$this, 'afterResponse']);
Severity: Critical
Found in app/Integrations/Dav/Debug.php by phan

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

        $this->server->on('beforeMethod:*', [$this, 'beforeMethod'], 50);
Severity: Critical
Found in app/Integrations/Dav/Debug.php by phan

Call to method getMethod from undeclared class \Sabre\HTTP\RequestInterface
Open

        if (\in_array($request->getMethod(), ['PROPFIND', 'REPORT', 'PUT'])) {
Severity: Critical
Found in app/Integrations/Dav/Debug.php by phan

Call to method getHeader from undeclared class \Sabre\HTTP\ResponseInterface
Open

        $contentType = explode(';', $response->getHeader('Content-Type'));
Severity: Critical
Found in app/Integrations/Dav/Debug.php by phan

Avoid variables with short names like $e. Configured minimum length is 3.
Open

    public function exception(\Exception $e)
Severity: Minor
Found in app/Integrations/Dav/Debug.php by phpmd

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

Source https://phpmd.org/rules/naming.html#shortvariable

Avoid variables with short names like $no. Configured minimum length is 3.
Open

    public static function exceptionErrorHandler(int $no, string $str, string $file, int $line): void
Severity: Minor
Found in app/Integrations/Dav/Debug.php by phpmd

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

Source https://phpmd.org/rules/naming.html#shortvariable

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

     * Exception file path.

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

     * @param ResponseInterface $response

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

    public function afterResponse(RequestInterface $request, ResponseInterface $response)

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 (\in_array($content, ['text/html', 'application/xml'])) {

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

    {

Line exceeds 120 characters; contains 147 characters
Open

        $error .= 'file: ' . rtrim(str_replace(ROOT_DIRECTORY . \DIRECTORY_SEPARATOR, '', $e->getFile()), PHP_EOL) . ':' . $e->getLine() . PHP_EOL;

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

     * Response body.

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 string

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

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

Line exceeds 120 characters; contains 133 characters
Open

        file_put_contents(self::DEBUG_FILE, '============ ' . date('Y-m-d H:i:s') . ' ====== Request ======' . PHP_EOL, FILE_APPEND);

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

        file_put_contents(self::EXCEPTION_FILE, '============ ' . date('Y-m-d H:i:s') . PHP_EOL . $error . PHP_EOL, FILE_APPEND);

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

     * @var string

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

            foreach ($request->getHeaders() as $key => $value) {

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

    /**

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

        $content = reset($contentType);

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 $request;

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

     * Force user authentication.

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

    public function beforeMethod(RequestInterface $request, ResponseInterface $response)

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

            $content = $request->getMethod() . ' ' . $request->getUrl() . ' HTTP/' . $request->getHTTPVersion() . "\r\n";

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

        $this->request = $content;

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 $response;

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

        file_put_contents(self::DEBUG_FILE, $content . PHP_EOL, FILE_APPEND);

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

        file_put_contents(self::DEBUG_FILE, '============ ' . date('Y-m-d H:i:s') . ' ====== Response ======'

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

    public function exception(\Exception $e)

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

        $error .= 'response: ' . PHP_EOL . ($this->response ?? $this->server->httpResponse);

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

    /**

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

        file_put_contents(self::DEBUG_FILE, '============ ' . date('Y-m-d H:i:s') . ' ====== Request ======' . PHP_EOL, FILE_APPEND);

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

        if (\in_array($request->getMethod(), ['PROPFIND', 'REPORT', 'PUT'])) {

Line exceeds 120 characters; contains 121 characters
Open

            $content = $request->getMethod() . ' ' . $request->getUrl() . ' HTTP/' . $request->getHTTPVersion() . "\r\n";

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

     * @var string

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

    /**

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

                    $content .= $key . ': ' . $v . "\r\n";

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

            }

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

        $this->response = $content;

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

        $this->server->on('beforeMethod:*', [$this, 'beforeMethod'], 50);

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

        $this->server->setLogger((new Logger()));

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

     * This function will cause the "exception" event

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

        return true;

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

     * Request body.

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

     *

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

            $content = $request->__toString();

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

        return true;

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

     * @return bool

Line exceeds 120 characters; contains 129 characters
Open

        file_put_contents(self::EXCEPTION_FILE, '============ ' . date('Y-m-d H:i:s') . PHP_EOL . $error . PHP_EOL, FILE_APPEND);

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

    const DEBUG_FILE = 'cache/logs/davRequests.log';

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

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

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

     * @return bool

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

            . PHP_EOL . $content . PHP_EOL, FILE_APPEND);

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

        return true;

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 string

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

     * @param ResponseInterface $response

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

        } else {

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

    }

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

        $error .= 'file: ' . rtrim(str_replace(ROOT_DIRECTORY . \DIRECTORY_SEPARATOR, '', $e->getFile()), PHP_EOL) . ':' . $e->getLine() . PHP_EOL;

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

     */

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

     * Debug file path.

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

    const EXCEPTION_FILE = 'cache/logs/davExceptions.log';

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

     *

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

                foreach ($value as $v) {

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

            $content .= PHP_EOL . file_get_contents('php://input');

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

     * to occur as soon as the error document is returned.

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

        $error = 'exception: ' . \get_class($e) . ' [code: ' . $e->getCode() . ']' . PHP_EOL;

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

        $error .= 'message: ' . $e->getMessage() . PHP_EOL;

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

        $error .= 'request: ' . PHP_EOL . ($this->request ?? $this->server->httpRequest) . PHP_EOL;

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

                }

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

     * @param \Exception $e

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

     * @param \Sabre\DAV\Server $server

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

     * @param RequestInterface  $request

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

        }

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

        $contentType = explode(';', $response->getHeader('Content-Type'));

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

    }

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

    /**

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

     *

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

     * Initializes selected functions.

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

     * @return bool

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

     * Places a list of headers.

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

     * @param RequestInterface  $request

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

            $content = $response->__toString();

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

        $error .= rtrim(str_replace(ROOT_DIRECTORY . \DIRECTORY_SEPARATOR, '', $e->getTraceAsString()), PHP_EOL) . PHP_EOL . PHP_EOL;

Line exceeds 120 characters; contains 133 characters
Open

        $error .= rtrim(str_replace(ROOT_DIRECTORY . \DIRECTORY_SEPARATOR, '', $e->getTraceAsString()), PHP_EOL) . PHP_EOL . PHP_EOL;

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

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

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

     * the issue and send a proper response back to the client (HTTP/1.1 500).

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

    public static function exceptionErrorHandler(int $no, string $str, string $file, int $line): void

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

        throw new \App\Exceptions\AppException($str, 0, new \ErrorException($str, 0, $no, $file, $line));

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

     * using \Sabre\DAV\Server::getPlugin

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

            'description' => 'Utility saving log requests, response and exception.',

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

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

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

     * While this is not strictly needed, it makes a lot of sense to do so. If an

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

     * @param int    $no

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 string $str

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

     * be sanitized.

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

     * E_NOTICE or anything appears in your code, this allows SabreDAV to intercept

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

     * @param string $file

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

     * @param int    $line

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

    }

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

     * @throws \App\Exceptions\AppException

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

    {

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

     *

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

        return 'Yeti debug';

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

     * Mapping PHP errors to exceptions.

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

    {

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 string

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