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";
- Read upRead up
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));
- Read upRead up
- Exclude checks
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));
- Read upRead up
- Exclude checks
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();
}
- Read upRead up
- Exclude checks
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);
- Read upRead up
- Exclude checks
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);
- Read upRead up
- Exclude checks
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)
- Read upRead up
- Exclude checks
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)
- Read upRead up
- Exclude checks
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)
- Exclude checks
Call to method __toString
from undeclared class \Sabre\HTTP\ResponseInterface
Open
$content = $response->__toString();
- Exclude checks
Reference to instance property httpRequest
from undeclared class \Sabre\DAV\server
Open
$error .= 'request: ' . PHP_EOL . ($this->request ?? $this->server->httpRequest) . PHP_EOL;
- Exclude checks
Reference to instance property httpResponse
from undeclared class \Sabre\DAV\server
Open
$error .= 'response: ' . PHP_EOL . ($this->response ?? $this->server->httpResponse);
- Exclude checks
Call to method getMethod
from undeclared class \Sabre\HTTP\RequestInterface
Open
$content = $request->getMethod() . ' ' . $request->getUrl() . ' HTTP/' . $request->getHTTPVersion() . "\r\n";
- Exclude checks
Property \App\Integrations\Dav\Debug->server
has undeclared type \Sabre\DAV\server
Open
protected $server;
- Exclude checks
Call to method setLogger
from undeclared class \Sabre\DAV\server
Open
$this->server->setLogger((new Logger()));
- Exclude checks
Call to method getUrl
from undeclared class \Sabre\HTTP\RequestInterface
Open
$content = $request->getMethod() . ' ' . $request->getUrl() . ' HTTP/' . $request->getHTTPVersion() . "\r\n";
- Exclude checks
Call to method getHeaders
from undeclared class \Sabre\HTTP\RequestInterface
Open
foreach ($request->getHeaders() as $key => $value) {
- Exclude checks
Call to method on
from undeclared class \Sabre\DAV\server
Open
$this->server->on('exception', [$this, 'exception']);
- Exclude checks
Call to method getHTTPVersion
from undeclared class \Sabre\HTTP\RequestInterface
Open
$content = $request->getMethod() . ' ' . $request->getUrl() . ' HTTP/' . $request->getHTTPVersion() . "\r\n";
- Exclude checks
Parameter $response
has undeclared type \Sabre\HTTP\ResponseInterface
Open
public function beforeMethod(RequestInterface $request, ResponseInterface $response)
- Exclude checks
Call to method __toString
from undeclared class \Sabre\HTTP\RequestInterface
Open
$content = $request->__toString();
- Exclude checks
Class extends undeclared class \Sabre\DAV\serverplugin
Open
class Debug extends DAV\ServerPlugin
- Exclude checks
Parameter $request
has undeclared type \Sabre\HTTP\RequestInterface
Open
public function beforeMethod(RequestInterface $request, ResponseInterface $response)
- Exclude checks
Parameter $request
has undeclared type \Sabre\HTTP\RequestInterface
Open
public function afterResponse(RequestInterface $request, ResponseInterface $response)
- Exclude checks
Parameter $response
has undeclared type \Sabre\HTTP\ResponseInterface
Open
public function afterResponse(RequestInterface $request, ResponseInterface $response)
- Exclude checks
Call to method on
from undeclared class \Sabre\DAV\server
Open
$this->server->on('afterResponse', [$this, 'afterResponse']);
- Exclude checks
Call to method on
from undeclared class \Sabre\DAV\server
Open
$this->server->on('beforeMethod:*', [$this, 'beforeMethod'], 50);
- Exclude checks
Call to method getMethod
from undeclared class \Sabre\HTTP\RequestInterface
Open
if (\in_array($request->getMethod(), ['PROPFIND', 'REPORT', 'PUT'])) {
- Exclude checks
Call to method getHeader
from undeclared class \Sabre\HTTP\ResponseInterface
Open
$contentType = explode(';', $response->getHeader('Content-Type'));
- Exclude checks
Avoid variables with short names like $e. Configured minimum length is 3. Open
public function exception(\Exception $e)
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Exception file path.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @param ResponseInterface $response
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function afterResponse(RequestInterface $request, ResponseInterface $response)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (\in_array($content, ['text/html', 'application/xml'])) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
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;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
protected $server;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Response body.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @var string
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->server->on('exception', [$this, 'exception']);
- Exclude checks
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);
- Exclude checks
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);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Using this name other plugins will be able to access other plugins
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @var string
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->server = $server;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
foreach ($request->getHeaders() as $key => $value) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$content = reset($contentType);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
protected $request;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Force user authentication.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function beforeMethod(RequestInterface $request, ResponseInterface $response)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$content = $request->getMethod() . ' ' . $request->getUrl() . ' HTTP/' . $request->getHTTPVersion() . "\r\n";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->request = $content;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
protected $response;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
file_put_contents(self::DEBUG_FILE, $content . PHP_EOL, FILE_APPEND);
- Exclude checks
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 ======'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function exception(\Exception $e)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$error .= 'response: ' . PHP_EOL . ($this->response ?? $this->server->httpResponse);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Returns a plugin name.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function initialize(DAV\Server $server)
- Exclude checks
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);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (\in_array($request->getMethod(), ['PROPFIND', 'REPORT', 'PUT'])) {
- Exclude checks
Line exceeds 120 characters; contains 121 characters Open
$content = $request->getMethod() . ' ' . $request->getUrl() . ' HTTP/' . $request->getHTTPVersion() . "\r\n";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @var string
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$content .= $key . ': ' . $v . "\r\n";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->response = $content;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->server->on('beforeMethod:*', [$this, 'beforeMethod'], 50);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->server->setLogger((new Logger()));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* This function will cause the "exception" event
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return true;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Request body.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$content = $request->__toString();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return true;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @return bool
- Exclude checks
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);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
const DEBUG_FILE = 'cache/logs/davRequests.log';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->server->on('afterResponse', [$this, 'afterResponse']);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @return bool
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
. PHP_EOL . $content . PHP_EOL, FILE_APPEND);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return true;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @var string
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @param ResponseInterface $response
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
} else {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
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;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Debug file path.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
const EXCEPTION_FILE = 'cache/logs/davExceptions.log';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
foreach ($value as $v) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$content .= PHP_EOL . file_get_contents('php://input');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* to occur as soon as the error document is returned.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$error = 'exception: ' . \get_class($e) . ' [code: ' . $e->getCode() . ']' . PHP_EOL;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$error .= 'message: ' . $e->getMessage() . PHP_EOL;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$error .= 'request: ' . PHP_EOL . ($this->request ?? $this->server->httpRequest) . PHP_EOL;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @param \Exception $e
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @param \Sabre\DAV\Server $server
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @param RequestInterface $request
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$contentType = explode(';', $response->getHeader('Content-Type'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Reference to server object.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Initializes selected functions.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @return bool
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Places a list of headers.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @param RequestInterface $request
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$content = $response->__toString();
- Exclude checks
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;
- Exclude checks
Line exceeds 120 characters; contains 133 characters Open
$error .= rtrim(str_replace(ROOT_DIRECTORY . \DIRECTORY_SEPARATOR, '', $e->getTraceAsString()), PHP_EOL) . PHP_EOL . PHP_EOL;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function getPluginName()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Returns a bunch of meta-data about the plugin.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
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
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
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).
- Exclude checks
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
- Exclude checks
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));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @return array
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* using \Sabre\DAV\Server::getPlugin
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'description' => 'Utility saving log requests, response and exception.',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Providing this information is optional, and is mainly displayed by the
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
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
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @param int $no
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @param string $str
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/** @codeCoverageIgnoreEnd */
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* be sanitized.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'name' => $this->getPluginName(),
- Exclude checks
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
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @param string $file
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @param int $line
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'link' => 'https://yetiforce.com/',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @throws \App\Exceptions\AppException
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Browser plugin.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return 'Yeti debug';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Mapping PHP errors to exceptions.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function getPluginInfo()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @return string
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks