Showing 4 of 309 total issues
Piwik
has 32 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Piwik
{
use ConfigTrait {
ConfigTrait::__construct as private __configConstruct;
}
Method getParsedLastVisitsDetails
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getParsedLastVisitsDetails(array $visits): array
{
$result = [];
foreach ($visits as $visit) {
$actionDetails = (array) $this->safeGetArrayEntry($visit, 'actionDetails');
Method createAppSpecificTokenAuth
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function createAppSpecificTokenAuth($userLogin, $password, $description, $expireDate = '', $expireHours = 0, $format = null)
Method addUser
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function addUser($userLogin, $password, $email, $alias = null, $initialIdSite = null, $format = null)