Showing 302 of 309 total issues
Piwik
has 32 functions (exceeds 20 allowed). Consider refactoring. Open
class Piwik
{
use ConfigTrait {
ConfigTrait::__construct as private __configConstruct;
}
Method getParsedLastVisitsDetails
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function getParsedLastVisitsDetails(array $visits): array
{
$result = [];
foreach ($visits as $visit) {
$actionDetails = (array) $this->safeGetArrayEntry($visit, 'actionDetails');
Method addUser
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
public function addUser($userLogin, $password, $email, $alias = null, $initialIdSite = null, $format = null)
Method createAppSpecificTokenAuth
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
public function createAppSpecificTokenAuth($userLogin, $password, $description, $expireDate = '', $expireHours = 0, $format = null)
There must be one blank line after the namespace declaration Open
namespace RobBrazier\Piwik\Module;
- Exclude checks
Function closing brace must go on the next line following the body; found 1 blank lines before brace Open
}
- Exclude checks
There must be one blank line after the namespace declaration Open
namespace RobBrazier\Piwik\Module;
- Exclude checks
There must be one blank line after the namespace declaration Open
namespace RobBrazier\Piwik\Module;
- Exclude checks
There must be one blank line after the namespace declaration Open
namespace RobBrazier\Piwik\Module;
- Exclude checks
There must be one blank line after the namespace declaration Open
namespace RobBrazier\Piwik\Module;
- Exclude checks
Function closing brace must go on the next line following the body; found 1 blank lines before brace Open
}
- Exclude checks
The closing brace for the trait must go on the next line after the body Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
- Exclude checks
Line exceeds 120 characters; contains 121 characters Open
* @param string $access user access role ({@see https://matomo.org/docs/manage-users/#advanced-user-management})
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Line exceeds 120 characters; contains 135 characters Open
public function createAppSpecificTokenAuth($userLogin, $password, $description, $expireDate = '', $expireHours = 0, $format = null)
- Exclude checks
Multiple headers with the same content Open
- Read upRead up
- Exclude checks
MD024 - Multiple headers with the same content
Tags: headers
Aliases: no-duplicate-header
Parameters: allowdifferentnesting (boolean; default false)
This rule is triggered if there are multiple headers in the document that have the same text:
# Some text
## Some text
To fix this, ensure that the content of each header is different:
# Some text
## Some more text
Rationale: Some markdown parses generate anchors for headers based on the header name, and having headers with the same content can cause problems with this.
If the parameter allow_different_nesting
is set to true
, header duplication
under different nesting is allowed, like it usually happens in change logs:
# Change log
## 2.0.0
### Bug fixes
### Features
## 1.0.0
### Bug fixes
Trailing spaces Open
Unless otherwise specified, the methods will accept the following arguments:
- Read upRead up
- Exclude checks
MD009 - Trailing spaces
Tags: whitespace
Aliases: no-trailing-spaces
Parameters: br_spaces (number; default: 0)
This rule is triggered on any lines that end with whitespace. To fix this, find the line that is triggered and remove any trailing spaces from the end.
The brspaces parameter allows an exception to this rule for a specific amount of trailing spaces used to insert an explicit line break/br element. For example, set brspaces to 2 to allow exactly 2 spaces at the end of a line.
Note: you have to set brspaces to 2 or higher for this exception to take effect - you can't insert a br element with just a single trailing space, so if you set brspaces to 1, the exception will be disabled, just as if it was set to the default of 0.
Multiple headers with the same content Open
#### Verbose Example
- Read upRead up
- Exclude checks
MD024 - Multiple headers with the same content
Tags: headers
Aliases: no-duplicate-header
Parameters: allowdifferentnesting (boolean; default false)
This rule is triggered if there are multiple headers in the document that have the same text:
# Some text
## Some text
To fix this, ensure that the content of each header is different:
# Some text
## Some more text
Rationale: Some markdown parses generate anchors for headers based on the header name, and having headers with the same content can cause problems with this.
If the parameter allow_different_nesting
is set to true
, header duplication
under different nesting is allowed, like it usually happens in change logs:
# Change log
## 2.0.0
### Bug fixes
### Features
## 1.0.0
### Bug fixes
Multiple headers with the same content Open
#### Parameters
- Read upRead up
- Exclude checks
MD024 - Multiple headers with the same content
Tags: headers
Aliases: no-duplicate-header
Parameters: allowdifferentnesting (boolean; default false)
This rule is triggered if there are multiple headers in the document that have the same text:
# Some text
## Some text
To fix this, ensure that the content of each header is different:
# Some text
## Some more text
Rationale: Some markdown parses generate anchors for headers based on the header name, and having headers with the same content can cause problems with this.
If the parameter allow_different_nesting
is set to true
, header duplication
under different nesting is allowed, like it usually happens in change logs:
# Change log
## 2.0.0
### Bug fixes
### Features
## 1.0.0
### Bug fixes