diff --git a/README.md b/README.md index 5843e9f..3e5f760 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Make sure `docker` & `docker-compose` are installed. ## Copyright and license -The Snowplow PHP Tracker is copyright 2014-2019 Snowplow Analytics Ltd. +The Snowplow PHP Tracker is copyright 2014-2021 Snowplow Analytics Ltd. Licensed under the **[Apache License, Version 2.0][license]** (the "License"); you may not use this software except in compliance with the License. @@ -67,4 +67,4 @@ limitations under the License. [license]: https://www.apache.org/licenses/LICENSE-2.0 [tracker-classificiation]: https://github.com/snowplow/snowplow/wiki/Tracker-Maintenance-Classification -[early-release]: https://img.shields.io/static/v1?style=flat&label=Snowplow&message=Early%20Release&color=014477&labelColor=9ba0aa&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAeFBMVEVMaXGXANeYANeXANZbAJmXANeUANSQAM+XANeMAMpaAJhZAJeZANiXANaXANaOAM2WANVnAKWXANZ9ALtmAKVaAJmXANZaAJlXAJZdAJxaAJlZAJdbAJlbAJmQAM+UANKZANhhAJ+EAL+BAL9oAKZnAKVjAKF1ALNBd8J1AAAAKHRSTlMAa1hWXyteBTQJIEwRgUh2JjJon21wcBgNfmc+JlOBQjwezWF2l5dXzkW3/wAAAHpJREFUeNokhQOCA1EAxTL85hi7dXv/E5YPCYBq5DeN4pcqV1XbtW/xTVMIMAZE0cBHEaZhBmIQwCFofeprPUHqjmD/+7peztd62dWQRkvrQayXkn01f/gWp2CrxfjY7rcZ5V7DEMDQgmEozFpZqLUYDsNwOqbnMLwPAJEwCopZxKttAAAAAElFTkSuQmCC +[early-release]: https://img.shields.io/static/v1?style=flat&label=Snowplow&message=Early%20Release&color=014477&labelColor=9ba0aa&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAeFBMVEVMaXGXANeYANeXANZbAJmXANeUANSQAM+XANeMAMpaAJhZAJeZANiXANaXANaOAM2WANVnAKWXANZ9ALtmAKVaAJmXANZaAJlXAJZdAJxaAJlZAJdbAJlbAJmQAM+UANKZANhhAJ+EAL+BAL9oAKZnAKVjAKF1ALNBd8J1AAAAKHRSTlMAa1hWXyteBTQJIEwRgUh2JjJon21wcBgNfmc+JlOBQjwezWF2l5dXzkW3/wAAAHpJREFUeNokhQOCA1EAxTL85hi7dXv/E5YPCYBq5DeN4pcqV1XbtW/xTVMIMAZE0cBHEaZhBmIQwCFofeprPUHqjmD/+7peztd62dWQRkvrQayXkn01f/gWp2CrxfjY7rcZ5V7DEMDQgmEozFpZqLUYDsNwOqbnMLwPAJEwCopZxKttAAAAAElFTkSuQmCC diff --git a/Worker.php b/Worker.php index a30fd23..ea8be43 100644 --- a/Worker.php +++ b/Worker.php @@ -2,7 +2,7 @@ /* Worker.php - Copyright (c) 2014-2019 Snowplow Analytics Ltd. All rights reserved. + Copyright (c) 2014-2021 Snowplow Analytics Ltd. All rights reserved. This program is licensed to you under the Apache License Version 2.0, and you may not use this file except in compliance with the Apache License @@ -16,7 +16,7 @@ language governing permissions and limitations there under. Authors: Joshua Beemster - Copyright: Copyright (c) 2014-2019 Snowplow Analytics Ltd + Copyright: Copyright (c) 2014-2021 Snowplow Analytics Ltd License: Apache License Version 2.0 */ diff --git a/src/Constants.php b/src/Constants.php index 79125d4..d1773f6 100644 --- a/src/Constants.php +++ b/src/Constants.php @@ -2,7 +2,7 @@ /* Constants.php - Copyright (c) 2014-2019 Snowplow Analytics Ltd. All rights reserved. + Copyright (c) 2014-2021 Snowplow Analytics Ltd. All rights reserved. This program is licensed to you under the Apache License Version 2.0, and you may not use this file except in compliance with the Apache License @@ -16,7 +16,7 @@ language governing permissions and limitations there under. Authors: Joshua Beemster - Copyright: Copyright (c) 2014-2019 Snowplow Analytics Ltd + Copyright: Copyright (c) 2014-2021 Snowplow Analytics Ltd License: Apache License Version 2.0 */ diff --git a/src/Emitter.php b/src/Emitter.php index a0c7b54..1427fde 100644 --- a/src/Emitter.php +++ b/src/Emitter.php @@ -3,7 +3,7 @@ /* Emitter.php - Copyright (c) 2014-2019 Snowplow Analytics Ltd. All rights reserved. + Copyright (c) 2014-2021 Snowplow Analytics Ltd. All rights reserved. This program is licensed to you under the Apache License Version 2.0, and you may not use this file except in compliance with the Apache License @@ -17,7 +17,7 @@ language governing permissions and limitations there under. Authors: Joshua Beemster - Copyright: Copyright (c) 2014-2019 Snowplow Analytics Ltd + Copyright: Copyright (c) 2014-2021 Snowplow Analytics Ltd License: Apache License Version 2.0 */ @@ -241,7 +241,7 @@ public function closeFile($file_path) { } catch (ErrorException $e) { return $e->getMessage(); } - } + } /** * Attempts to copy a file to a new directory @@ -263,7 +263,7 @@ public function copyFile($path_from, $path_to) { * Attempts to delete a file * * @param string $file_path - The path of the file we want to delete - * @return + * @return */ public function deleteFile($file_path) { try { diff --git a/src/Emitters/CurlEmitter.php b/src/Emitters/CurlEmitter.php index 06669d2..fcbe28a 100644 --- a/src/Emitters/CurlEmitter.php +++ b/src/Emitters/CurlEmitter.php @@ -2,7 +2,7 @@ /* CurlEmitter.php - Copyright (c) 2014-2019 Snowplow Analytics Ltd. All rights reserved. + Copyright (c) 2014-2021 Snowplow Analytics Ltd. All rights reserved. This program is licensed to you under the Apache License Version 2.0, and you may not use this file except in compliance with the Apache License @@ -16,7 +16,7 @@ language governing permissions and limitations there under. Authors: Joshua Beemster - Copyright: Copyright (c) 2014-2019 Snowplow Analytics Ltd + Copyright: Copyright (c) 2014-2021 Snowplow Analytics Ltd License: Apache License Version 2.0 */ @@ -70,7 +70,7 @@ public function __construct($uri, $protocol = NULL, $type = NULL, $buffer_size = * - Or force the execution of the curl emitter * * @param $buffer - An array of events we are going to convert into curl resources - * @param bool $curl_send - Whether or not we are going to send the buffered curl + * @param bool $curl_send - Whether or not we are going to send the buffered curl * objects before we reach the limit * @return bool|string - Either true or an error string */ diff --git a/src/Emitters/FileEmitter.php b/src/Emitters/FileEmitter.php index d3c99f8..cc451a8 100644 --- a/src/Emitters/FileEmitter.php +++ b/src/Emitters/FileEmitter.php @@ -2,7 +2,7 @@ /* FileEmitter.php - Copyright (c) 2014-2019 Snowplow Analytics Ltd. All rights reserved. + Copyright (c) 2014-2021 Snowplow Analytics Ltd. All rights reserved. This program is licensed to you under the Apache License Version 2.0, and you may not use this file except in compliance with the Apache License @@ -16,7 +16,7 @@ language governing permissions and limitations there under. Authors: Joshua Beemster - Copyright: Copyright (c) 2014-2019 Snowplow Analytics Ltd + Copyright: Copyright (c) 2014-2021 Snowplow Analytics Ltd License: Apache License Version 2.0 */ @@ -24,7 +24,7 @@ use Snowplow\Tracker\Emitter; class FileEmitter extends Emitter { - + // Emitter Parameters private $type; @@ -34,7 +34,7 @@ class FileEmitter extends Emitter { private $fatal_error_occured = false; // Worker Parameters - + private $worker = 0; private $worker_paths = array(); diff --git a/src/Emitters/SocketEmitter.php b/src/Emitters/SocketEmitter.php index 065b427..ff2b8d2 100644 --- a/src/Emitters/SocketEmitter.php +++ b/src/Emitters/SocketEmitter.php @@ -2,7 +2,7 @@ /* SocketEmitter.php - Copyright (c) 2014-2019 Snowplow Analytics Ltd. All rights reserved. + Copyright (c) 2014-2021 Snowplow Analytics Ltd. All rights reserved. This program is licensed to you under the Apache License Version 2.0, and you may not use this file except in compliance with the Apache License @@ -16,7 +16,7 @@ language governing permissions and limitations there under. Authors: Joshua Beemster - Copyright: Copyright (c) 2014-2019 Snowplow Analytics Ltd + Copyright: Copyright (c) 2014-2021 Snowplow Analytics Ltd License: Apache License Version 2.0 */ @@ -25,7 +25,7 @@ use Exception; class SocketEmitter extends Emitter { - + // Emitter Parameters private $uri; diff --git a/src/Emitters/SyncEmitter.php b/src/Emitters/SyncEmitter.php index eaaf86d..47084b5 100644 --- a/src/Emitters/SyncEmitter.php +++ b/src/Emitters/SyncEmitter.php @@ -2,7 +2,7 @@ /* SyncEmitter.php - Copyright (c) 2014-2019 Snowplow Analytics Ltd. All rights reserved. + Copyright (c) 2014-2021 Snowplow Analytics Ltd. All rights reserved. This program is licensed to you under the Apache License Version 2.0, and you may not use this file except in compliance with the Apache License @@ -16,7 +16,7 @@ language governing permissions and limitations there under. Authors: Joshua Beemster - Copyright: Copyright (c) 2014-2019 Snowplow Analytics Ltd + Copyright: Copyright (c) 2014-2021 Snowplow Analytics Ltd License: Apache License Version 2.0 */ @@ -26,9 +26,9 @@ use Exception; class SyncEmitter extends Emitter { - + // Emitter Parameters - + private $type; private $url; diff --git a/src/Payload.php b/src/Payload.php index c050569..39bd9d7 100644 --- a/src/Payload.php +++ b/src/Payload.php @@ -3,7 +3,7 @@ /* Payload.php - Copyright (c) 2014-2019 Snowplow Analytics Ltd. All rights reserved. + Copyright (c) 2014-2021 Snowplow Analytics Ltd. All rights reserved. This program is licensed to you under the Apache License Version 2.0, and you may not use this file except in compliance with the Apache License @@ -17,16 +17,16 @@ language governing permissions and limitations there under. Authors: Joshua Beemster - Copyright: Copyright (c) 2014-2019 Snowplow Analytics Ltd + Copyright: Copyright (c) 2014-2021 Snowplow Analytics Ltd License: Apache License Version 2.0 */ namespace Snowplow\Tracker; class Payload extends Constants { - + // Payload Parameters - + private $nv_pairs; /** diff --git a/src/Subject.php b/src/Subject.php index f1f8f9a..6aaf53d 100644 --- a/src/Subject.php +++ b/src/Subject.php @@ -3,7 +3,7 @@ /* Subject.php - Copyright (c) 2014-2019 Snowplow Analytics Ltd. All rights reserved. + Copyright (c) 2014-2021 Snowplow Analytics Ltd. All rights reserved. This program is licensed to you under the Apache License Version 2.0, and you may not use this file except in compliance with the Apache License @@ -17,7 +17,7 @@ language governing permissions and limitations there under. Authors: Joshua Beemster - Copyright: Copyright (c) 2014-2019 Snowplow Analytics Ltd + Copyright: Copyright (c) 2014-2021 Snowplow Analytics Ltd License: Apache License Version 2.0 */ @@ -167,7 +167,7 @@ public function setPageUrl($pageUrl) { } // Subject Return Functions - + public function returnTrackerSettings() { return $this->tracker_settings; } diff --git a/src/Tracker.php b/src/Tracker.php index aefe654..15f8229 100644 --- a/src/Tracker.php +++ b/src/Tracker.php @@ -3,7 +3,7 @@ /* Tracker.php - Copyright (c) 2014-2019 Snowplow Analytics Ltd. All rights reserved. + Copyright (c) 2014-2021 Snowplow Analytics Ltd. All rights reserved. This program is licensed to you under the Apache License Version 2.0, and you may not use this file except in compliance with the Apache License @@ -17,7 +17,7 @@ language governing permissions and limitations there under. Authors: Joshua Beemster - Copyright: Copyright (c) 2014-2019 Snowplow Analytics Ltd + Copyright: Copyright (c) 2014-2021 Snowplow Analytics Ltd License: Apache License Version 2.0 */ diff --git a/tests/tests/ClassInitTests/EmitterTest.php b/tests/tests/ClassInitTests/EmitterTest.php index 8160ab0..60e34ba 100644 --- a/tests/tests/ClassInitTests/EmitterTest.php +++ b/tests/tests/ClassInitTests/EmitterTest.php @@ -2,7 +2,7 @@ /* EmitterTest.php - Copyright (c) 2014-2019 Snowplow Analytics Ltd. All rights reserved. + Copyright (c) 2014-2021 Snowplow Analytics Ltd. All rights reserved. This program is licensed to you under the Apache License Version 2.0, and you may not use this file except in compliance with the Apache License @@ -16,7 +16,7 @@ language governing permissions and limitations there under. Authors: Joshua Beemster - Copyright: Copyright (c) 2014-2019 Snowplow Analytics Ltd + Copyright: Copyright (c) 2014-2021 Snowplow Analytics Ltd License: Apache License Version 2.0 */ diff --git a/tests/tests/ClassInitTests/PayloadTest.php b/tests/tests/ClassInitTests/PayloadTest.php index c01223a..e713e19 100644 --- a/tests/tests/ClassInitTests/PayloadTest.php +++ b/tests/tests/ClassInitTests/PayloadTest.php @@ -2,7 +2,7 @@ /* PayloadTest.php - Copyright (c) 2014-2019 Snowplow Analytics Ltd. All rights reserved. + Copyright (c) 2014-2021 Snowplow Analytics Ltd. All rights reserved. This program is licensed to you under the Apache License Version 2.0, and you may not use this file except in compliance with the Apache License @@ -16,7 +16,7 @@ language governing permissions and limitations there under. Authors: Joshua Beemster - Copyright: Copyright (c) 2014-2019 Snowplow Analytics Ltd + Copyright: Copyright (c) 2014-2021 Snowplow Analytics Ltd License: Apache License Version 2.0 */ diff --git a/tests/tests/ClassInitTests/SubjectTest.php b/tests/tests/ClassInitTests/SubjectTest.php index 14efcc1..e830192 100644 --- a/tests/tests/ClassInitTests/SubjectTest.php +++ b/tests/tests/ClassInitTests/SubjectTest.php @@ -2,7 +2,7 @@ /* SubjectTest.php - Copyright (c) 2014-2019 Snowplow Analytics Ltd. All rights reserved. + Copyright (c) 2014-2021 Snowplow Analytics Ltd. All rights reserved. This program is licensed to you under the Apache License Version 2.0, and you may not use this file except in compliance with the Apache License @@ -16,7 +16,7 @@ language governing permissions and limitations there under. Authors: Joshua Beemster - Copyright: Copyright (c) 2014-2019 Snowplow Analytics Ltd + Copyright: Copyright (c) 2014-2021 Snowplow Analytics Ltd License: Apache License Version 2.0 */ diff --git a/tests/tests/ClassInitTests/TrackerTest.php b/tests/tests/ClassInitTests/TrackerTest.php index ab204c9..1b3f254 100644 --- a/tests/tests/ClassInitTests/TrackerTest.php +++ b/tests/tests/ClassInitTests/TrackerTest.php @@ -2,7 +2,7 @@ /* TrackerTest.php - Copyright (c) 2014-2019 Snowplow Analytics Ltd. All rights reserved. + Copyright (c) 2014-2021 Snowplow Analytics Ltd. All rights reserved. This program is licensed to you under the Apache License Version 2.0, and you may not use this file except in compliance with the Apache License @@ -16,7 +16,7 @@ language governing permissions and limitations there under. Authors: Joshua Beemster - Copyright: Copyright (c) 2014-2019 Snowplow Analytics Ltd + Copyright: Copyright (c) 2014-2021 Snowplow Analytics Ltd License: Apache License Version 2.0 */ diff --git a/tests/tests/EmitterTests/CurlEmitterTest.php b/tests/tests/EmitterTests/CurlEmitterTest.php index d406109..ba7e270 100644 --- a/tests/tests/EmitterTests/CurlEmitterTest.php +++ b/tests/tests/EmitterTests/CurlEmitterTest.php @@ -2,7 +2,7 @@ /* CurlEmitterTest.php - Copyright (c) 2014-2019 Snowplow Analytics Ltd. All rights reserved. + Copyright (c) 2014-2021 Snowplow Analytics Ltd. All rights reserved. This program is licensed to you under the Apache License Version 2.0, and you may not use this file except in compliance with the Apache License @@ -16,7 +16,7 @@ language governing permissions and limitations there under. Authors: Joshua Beemster - Copyright: Copyright (c) 2014-2019 Snowplow Analytics Ltd + Copyright: Copyright (c) 2014-2021 Snowplow Analytics Ltd License: Apache License Version 2.0 */ diff --git a/tests/tests/EmitterTests/FileEmitterTest.php b/tests/tests/EmitterTests/FileEmitterTest.php index 0dcd8df..b30bd5b 100644 --- a/tests/tests/EmitterTests/FileEmitterTest.php +++ b/tests/tests/EmitterTests/FileEmitterTest.php @@ -2,7 +2,7 @@ /* FileEmitterTest.php - Copyright (c) 2014-2019 Snowplow Analytics Ltd. All rights reserved. + Copyright (c) 2014-2021 Snowplow Analytics Ltd. All rights reserved. This program is licensed to you under the Apache License Version 2.0, and you may not use this file except in compliance with the Apache License @@ -16,7 +16,7 @@ language governing permissions and limitations there under. Authors: Joshua Beemster - Copyright: Copyright (c) 2014-2019 Snowplow Analytics Ltd + Copyright: Copyright (c) 2014-2021 Snowplow Analytics Ltd License: Apache License Version 2.0 */ diff --git a/tests/tests/EmitterTests/SocketEmitterTest.php b/tests/tests/EmitterTests/SocketEmitterTest.php index b8c8dd7..02a58e1 100644 --- a/tests/tests/EmitterTests/SocketEmitterTest.php +++ b/tests/tests/EmitterTests/SocketEmitterTest.php @@ -2,7 +2,7 @@ /* SocketEmitterTest.php - Copyright (c) 2014-2019 Snowplow Analytics Ltd. All rights reserved. + Copyright (c) 2014-2021 Snowplow Analytics Ltd. All rights reserved. This program is licensed to you under the Apache License Version 2.0, and you may not use this file except in compliance with the Apache License @@ -16,7 +16,7 @@ language governing permissions and limitations there under. Authors: Joshua Beemster - Copyright: Copyright (c) 2014-2019 Snowplow Analytics Ltd + Copyright: Copyright (c) 2014-2021 Snowplow Analytics Ltd License: Apache License Version 2.0 */ diff --git a/tests/tests/EmitterTests/SyncEmitterTest.php b/tests/tests/EmitterTests/SyncEmitterTest.php index 4f50822..0190ee5 100644 --- a/tests/tests/EmitterTests/SyncEmitterTest.php +++ b/tests/tests/EmitterTests/SyncEmitterTest.php @@ -2,7 +2,7 @@ /* SyncEmitterTest.php - Copyright (c) 2014-2019 Snowplow Analytics Ltd. All rights reserved. + Copyright (c) 2014-2021 Snowplow Analytics Ltd. All rights reserved. This program is licensed to you under the Apache License Version 2.0, and you may not use this file except in compliance with the Apache License @@ -16,7 +16,7 @@ language governing permissions and limitations there under. Authors: Joshua Beemster - Copyright: Copyright (c) 2014-2019 Snowplow Analytics Ltd + Copyright: Copyright (c) 2014-2021 Snowplow Analytics Ltd License: Apache License Version 2.0 */ diff --git a/tests/tests/IntegrationTest.php b/tests/tests/IntegrationTest.php index f69bcef..7990ccd 100644 --- a/tests/tests/IntegrationTest.php +++ b/tests/tests/IntegrationTest.php @@ -2,7 +2,7 @@ /* IntegrationTest.php - Copyright (c) 2014-2019 Snowplow Analytics Ltd. All rights reserved. + Copyright (c) 2014-2021 Snowplow Analytics Ltd. All rights reserved. This program is licensed to you under the Apache License Version 2.0, and you may not use this file except in compliance with the Apache License @@ -16,7 +16,7 @@ language governing permissions and limitations there under. Authors: Joshua Beemster - Copyright: Copyright (c) 2014-2019 Snowplow Analytics Ltd + Copyright: Copyright (c) 2014-2021 Snowplow Analytics Ltd License: Apache License Version 2.0 */