Commit 331d9df0 authored by Avris's avatar Avris

v4.0

parent dd6b3bd6
Avris\Micrus\GoogleAnalytics\GoogleAnalytics:
params: ['@config.parameters.?googleAnalytics']
arguments: ['@config.parameters.?googleAnalytics']
......@@ -23,10 +23,10 @@ HTML;
const COLLECT_URL = 'https://www.google-analytics.com/collect';
/** @var string */
protected $trackingId;
private $trackingId;
/** @var string[] */
protected $queue = [];
private $queue = [];
public function __construct(Bag $config)
{
......@@ -52,12 +52,7 @@ HTML;
];
}
/**
* @param RequestInterface $request
* @param bool $deferred
* @return bool
*/
public function collect(RequestInterface $request, $deferred = true)
public function collect(RequestInterface $request, bool $deferred = true): bool
{
if (!$this->trackingId) {
return false;
......@@ -94,7 +89,7 @@ HTML;
return true;
}
protected function sendReport($options)
private function sendReport($options)
{
$ch = curl_init();
curl_setopt_array($ch, $options);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment