Function getHistory
has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring. Open
public static function getHistory()
{
$results = (new \App\Db\Query())->from('u_#__browsinghistory')
->where(['userid' => App\User::getCurrentUserId()])
->orderBy(['id' => SORT_DESC])
- 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
Method getHistory
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function getHistory()
{
$results = (new \App\Db\Query())->from('u_#__browsinghistory')
->where(['userid' => App\User::getCurrentUserId()])
->orderBy(['id' => SORT_DESC])
Method saveHistory
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function saveHistory($title)
{
if (empty(App\User::getCurrentUserId())) {
return false;
}
Function saveHistory
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
public static function saveHistory($title)
{
if (empty(App\User::getCurrentUserId())) {
return false;
}
- 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
Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed. Open
public static function getHistory()
- Read upRead up
- Exclude checks
Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.
See
Missing class import via use statement (line '21', column '19'). Open
$results = (new \App\Db\Query())->from('u_#__browsinghistory')
- 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 '55', column '27'). Open
$value['date'] = (new DateTimeField($userDate))->getDisplayTime(null, false);
- 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
Avoid using static access to class 'DateTimeField' in method 'getHistory'. Open
$value['date'] = DateTimeField::convertToUserFormat($userDate);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Utils\Completions' in method 'saveHistory'. Open
$title = \App\Utils\Completions::encodeEmoji($title);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\TextUtils' in method 'saveHistory'. Open
$title = \App\TextUtils::textTruncate($title, 255, false);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'App\Record' in method 'saveHistory'. Open
$title .= ' | ' . \App\Utils\Completions::encodeEmoji(App\Record::getLabel($urlQuery['record']));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Utils\Completions' in method 'getHistory'. Open
$value['title'] = \App\Utils\Completions::decodeEmoji($value['title']);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'App\User' in method 'deleteHistory'. Open
->delete('u_#__browsinghistory', ['userid' => App\User::getCurrentUserId()])
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
The method getHistory uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$value['date'] = DateTimeField::convertToUserFormat($userDate);
}
- 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
The method getHistory uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$value['hour'] = false;
if (!$older) {
$value['viewOlder'] = true;
$older = true;
- 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
Avoid using static access to class 'App\User' in method 'saveHistory'. Open
if (empty(App\User::getCurrentUserId())) {
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'App\User' in method 'saveHistory'. Open
'userid' => App\User::getCurrentUserId(),
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'App\User' in method 'getHistory'. Open
->where(['userid' => App\User::getCurrentUserId()])
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Utils\Completions' in method 'saveHistory'. Open
$title .= ' | ' . \App\Utils\Completions::encodeEmoji(App\Record::getLabel($urlQuery['record']));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'App\Config' in method 'getHistory'. Open
->limit(App\Config::performance('BROWSING_HISTORY_VIEW_LIMIT'))
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Purifier' in method 'saveHistory'. Open
$parsedUrl = parse_url(\App\Purifier::decodeHtml($url), PHP_URL_QUERY);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Define a constant instead of duplicating this literal "userid" 3 times. Open
->where(['userid' => App\User::getCurrentUserId()])
- 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 "u_#__browsinghistory" 3 times. Open
$results = (new \App\Db\Query())->from('u_#__browsinghistory')
- 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 "title" 3 times. Open
$value['title'] = \App\Utils\Completions::decodeEmoji($value['title']);
- 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.
Call to undeclared method \App\Db\Query::from
Open
$results = (new \App\Db\Query())->from('u_#__browsinghistory')
- Exclude checks
Call to method getCurrentUserId
from undeclared class \App\User
(Did you mean class \Tests\App\User) Open
->delete('u_#__browsinghistory', ['userid' => App\User::getCurrentUserId()])
- Exclude checks
Call to method encodeEmoji
from undeclared class \App\Utils\Completions
Open
$title .= ' | ' . \App\Utils\Completions::encodeEmoji(App\Record::getLabel($urlQuery['record']));
- Exclude checks
Call to method getCurrentUserId
from undeclared class \App\User
(Did you mean class \Tests\App\User) Open
'userid' => App\User::getCurrentUserId(),
- Exclude checks
Call to method encodeEmoji
from undeclared class \App\Utils\Completions
Open
$title = \App\Utils\Completions::encodeEmoji($title);
- Exclude checks
Argument 1 (value)
is string
but \DateTimeField::__construct()
takes \type
defined at /code/include/fields/DateTimeField.php:31
Open
$value['date'] = (new DateTimeField($userDate))->getDisplayTime(null, false);
- Exclude checks
Call to undeclared method \App\Db::createCommand
Open
\App\Db::getInstance()->createCommand()
- Exclude checks
Call to method getCurrentUserId
from undeclared class \App\User
(Did you mean class \Tests\App\User) Open
if (empty(App\User::getCurrentUserId())) {
- Exclude checks
Call to method getCurrentUserId
from undeclared class \App\User
(Did you mean class \Tests\App\User) Open
->where(['userid' => App\User::getCurrentUserId()])
- Exclude checks
Call to method decodeEmoji
from undeclared class \App\Utils\Completions
Open
$value['title'] = \App\Utils\Completions::decodeEmoji($value['title']);
- Exclude checks
Call to undeclared method \App\Db::createCommand
Open
\App\Db::getInstance()->createCommand()
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
class Vtiger_BrowsingHistory_Helper
- Exclude checks
The class Vtiger_BrowsingHistory_Helper is not named in CamelCase. Open
class Vtiger_BrowsingHistory_Helper
{
/**
* Get browsing history.
*
- Read upRead up
- Exclude checks
CamelCaseClassName
Since: 0.2
It is considered best practice to use the CamelCase notation to name classes.
Example
class class_name {
}
Source
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
public static function getHistory()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$yesterday = false;
- 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
$yesterday = true;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$value['hour'] = true;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->where(['userid' => App\User::getCurrentUserId()])
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->limit(App\Config::performance('BROWSING_HISTORY_VIEW_LIMIT'))
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$dateToday = DateTimeField::convertToUserTimeZone('today')->format('U');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$value['date'] = (new DateTimeField($userDate))->getDisplayTime(null, false);
- 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
])->execute();
- 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 array
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$older = false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
foreach ($results as &$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
$older = 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
if (!empty($urlQuery['module']) && !empty($urlQuery['view']) && \in_array($urlQuery['view'], $validViews)) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$title = \App\TextUtils::textTruncate($title, 255, false);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$value['hour'] = false;
- 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
$validViews = ['Index', 'List', 'Detail', 'Edit', 'DashBoard', 'ListPreview', 'TreeRecords', 'Tree'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$results = (new \App\Db\Query())->from('u_#__browsinghistory')
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$value['hour'] = true;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Save step in browsing history.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (empty($parsedUrl)) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->delete('u_#__browsinghistory', ['userid' => App\User::getCurrentUserId()])
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (!$yesterday) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->insert('u_#__browsinghistory', [
- 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
$value['title'] = \App\Utils\Completions::decodeEmoji($value['title']);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$value['viewToday'] = true;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$today = 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
->orderBy(['id' => SORT_DESC])
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$today = false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$dateYesterday = DateTimeField::convertToUserTimeZone('yesterday')->format('U');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (!$today) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$value['viewYesterday'] = 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
'url' => $url,
- 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 static function deleteHistory()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (strtotime($userDate) >= $dateToday) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
} elseif (strtotime($userDate) >= $dateYesterday) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (!$older) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$url = App\RequestUtil::getBrowserInfo()->requestUri;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$parsedUrl = parse_url(\App\Purifier::decodeHtml($url), PHP_URL_QUERY);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$title = \App\Utils\Completions::encodeEmoji($title);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
\App\Db::getInstance()->createCommand()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$value['viewOlder'] = true;
- 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
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->execute();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @param string $title
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (empty(App\User::getCurrentUserId())) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (mb_strlen($title) > 255) {
- 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 false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (!empty($urlQuery['record'])) {
- 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
$title .= ' | ' . \App\Utils\Completions::encodeEmoji(App\Record::getLabel($urlQuery['record']));
- 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
$userDate = DateTimeField::convertToUserTimeZone($value['date'])->format('Y-m-d H:i:s');
- 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 ($value['hour']) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$value['date'] = DateTimeField::convertToUserFormat($userDate);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return $results;
- 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 static function saveHistory($title)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (\is_string($title)) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Get browsing history.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->all();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
parse_str($parsedUrl, $urlQuery);
- 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 false;
- 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
\App\Db::getInstance()->createCommand()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'userid' => App\User::getCurrentUserId(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'date' => date('Y-m-d H:i:s'),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'title' => $title,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Clear browsing history for user.
- Exclude checks
Class name "Vtiger_BrowsingHistory_Helper" is not in camel caps format Open
class Vtiger_BrowsingHistory_Helper
- Exclude checks