RobBrazier/Laravel_Piwik

View on GitHub

Showing 4 of 309 total issues

Piwik has 32 functions (exceeds 20 allowed). Consider refactoring.
Open

class Piwik
{
    use ConfigTrait {
        ConfigTrait::__construct as private __configConstruct;
    }
Severity: Minor
Found in src/RobBrazier/Piwik/Piwik.php - About 4 hrs to fix

    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');
    Severity: Minor
    Found in src/RobBrazier/Piwik/Module/LiveModule.php - About 1 hr to fix

      Method createAppSpecificTokenAuth has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          public function createAppSpecificTokenAuth($userLogin, $password, $description, $expireDate = '', $expireHours = 0, $format = null)
      Severity: Minor
      Found in src/RobBrazier/Piwik/Module/UsersManagerModule.php - About 45 mins to fix

        Method addUser has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            public function addUser($userLogin, $password, $email, $alias = null, $initialIdSite = null, $format = null)
        Severity: Minor
        Found in src/RobBrazier/Piwik/Module/UsersManagerModule.php - About 45 mins to fix
          Severity
          Category
          Status
          Source
          Language