Skip to content
Extraits de code Groupes Projets
Valider b1e99c69 rédigé par Matthieu Napoli's avatar Matthieu Napoli
Parcourir les fichiers

phpdoc and scrutinizer warning fixes

parent cec6ca0a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -77,8 +77,8 @@ class Request ...@@ -77,8 +77,8 @@ class Request
* mappings. The current query parameters (everything in `$_GET` and `$_POST`) are * mappings. The current query parameters (everything in `$_GET` and `$_POST`) are
* forwarded to request array before it is returned. * forwarded to request array before it is returned.
* *
* @param string|array $request The base request string or array, eg, * @param string|array|null $request The base request string or array, eg,
* `'module=UserLanguage&action=getLanguage'`. * `'module=UserLanguage&action=getLanguage'`.
* @param array $defaultRequest Default query parameters. If a query parameter is absent in `$request`, it will be loaded * @param array $defaultRequest Default query parameters. If a query parameter is absent in `$request`, it will be loaded
* from this. Defaults to `$_GET + $_POST`. * from this. Defaults to `$_GET + $_POST`.
* @return array * @return array
......
...@@ -25,7 +25,7 @@ class CliMulti { ...@@ -25,7 +25,7 @@ class CliMulti {
public $supportsAsync = null; public $supportsAsync = null;
/** /**
* @var \Piwik\CliMulti\Process[] * @var Process[]
*/ */
private $processes = array(); private $processes = array();
...@@ -36,7 +36,7 @@ class CliMulti { ...@@ -36,7 +36,7 @@ class CliMulti {
private $concurrentProcessesLimit = null; private $concurrentProcessesLimit = null;
/** /**
* @var \Piwik\CliMulti\Output[] * @var Output[]
*/ */
private $outputs = array(); private $outputs = array();
......
...@@ -48,9 +48,7 @@ class Config extends Singleton ...@@ -48,9 +48,7 @@ class Config extends Singleton
const DEFAULT_GLOBAL_CONFIG_PATH = '/config/global.ini.php'; const DEFAULT_GLOBAL_CONFIG_PATH = '/config/global.ini.php';
/** /**
* Contains configuration files values * @var boolean
*
* @var array
*/ */
protected $initialized = false; protected $initialized = false;
protected $configGlobal = array(); protected $configGlobal = array();
......
...@@ -23,7 +23,7 @@ class ContainerFactory ...@@ -23,7 +23,7 @@ class ContainerFactory
/** /**
* Optional environment config to load. * Optional environment config to load.
* *
* @var bool * @var string|null
*/ */
private $environment; private $environment;
......
...@@ -1039,6 +1039,9 @@ class CronArchive ...@@ -1039,6 +1039,9 @@ class CronArchive
return in_array($token_auth, $this->validTokenAuths); return in_array($token_auth, $this->validTokenAuths);
} }
/**
* @param string|bool $piwikUrl
*/
protected function initPiwikHost($piwikUrl = false) protected function initPiwikHost($piwikUrl = false)
{ {
// If core:archive command run as a web cron, we use the current hostname+path // If core:archive command run as a web cron, we use the current hostname+path
......
...@@ -38,6 +38,9 @@ class Aggregator implements MetricsProvider ...@@ -38,6 +38,9 @@ class Aggregator implements MetricsProvider
return $metrics; return $metrics;
} }
/**
* @return MetricsProvider[]
*/
private function getProviders() private function getProviders()
{ {
$container = StaticContainer::getContainer(); $container = StaticContainer::getContainer();
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter