From 721fca893e8ee1d8d6cbfcd44f0d6a871358e91f Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sun, 1 Jan 2017 11:46:47 +0100 Subject: [PATCH 1/6] update year in license file --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 967410f..b4a076b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2014-2016 Christian Flothmann +Copyright (c) 2014-2017 Christian Flothmann Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From e43c0acb7af7a34d92f2af24e1f80a0ef55953b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Parmentier?= Date: Mon, 27 Mar 2017 10:21:16 +0200 Subject: [PATCH 2/6] Add an exception for unsupported statement version --- CHANGELOG.md | 5 +++++ src/UnsupportedStatementVersionException.php | 21 ++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 src/UnsupportedStatementVersionException.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 1cb6cc9..0c94c80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ CHANGELOG ========= +0.2.0 +----- + +* Added `UnsupportedStatementVersionException`. + 0.1.1 ----- diff --git a/src/UnsupportedStatementVersionException.php b/src/UnsupportedStatementVersionException.php new file mode 100644 index 0000000..19252a5 --- /dev/null +++ b/src/UnsupportedStatementVersionException.php @@ -0,0 +1,21 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Xabbuh\XApi\Common\Exception; + +/** + * Unsupported statement version exception. + * + * @author Jérôme Parmentier + */ +class UnsupportedStatementVersionException extends XApiException +{ +} From 55f0173ff98cb82f5c0a3cba157fbb8658f96670 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Wed, 29 Mar 2017 18:05:42 +0200 Subject: [PATCH 3/6] update branch alias --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index cc19a7c..976d964 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ }, "extra": { "branch-alias": { - "dev-master": "0.1.x-dev" + "dev-master": "0.2.x-dev" } } } From ea8ae95480d5cdb0171de78244bdd6d1338300f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Parmentier?= Date: Tue, 4 Apr 2017 16:18:00 +0200 Subject: [PATCH 4/6] Introduce new StatementIdAlreadyExistsException --- CHANGELOG.md | 1 + src/StatementIdAlreadyExistsException.php | 25 +++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 src/StatementIdAlreadyExistsException.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c94c80..6f911a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ CHANGELOG 0.2.0 ----- +* Added `StatementIdAlreadyExistsException`. * Added `UnsupportedStatementVersionException`. 0.1.1 diff --git a/src/StatementIdAlreadyExistsException.php b/src/StatementIdAlreadyExistsException.php new file mode 100644 index 0000000..9751ce6 --- /dev/null +++ b/src/StatementIdAlreadyExistsException.php @@ -0,0 +1,25 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Xabbuh\XApi\Common\Exception; + +/** + * Statement id already exists exception. + * + * @author Jérôme Parmentier + */ +class StatementIdAlreadyExistsException extends XApiException +{ + public function __construct($statementId, \Exception $previous = null) + { + parent::__construct(sprintf('A statement with ID "%s" already exists.', $statementId), 0, $previous); + } +} From 756096cfaf0503d8aa291cfac51269994eb13b1f Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Mon, 23 Apr 2018 10:45:13 +0200 Subject: [PATCH 5/6] update year in license --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index b4a076b..00e1421 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2014-2017 Christian Flothmann +Copyright (c) 2014-2018 Christian Flothmann Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From 04b644ec2e497a4f1928c5038aa39732fb529d07 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Fri, 26 Mar 2021 18:38:22 +0100 Subject: [PATCH 6/6] lint all files with GitHub Actions --- .github/workflows/ci.yaml | 49 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..c92aa01 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,49 @@ +name: 'CI' + +on: + - 'push' + - 'pull_request' + +jobs: + tests: + name: 'Lint files' + + runs-on: 'ubuntu-latest' + + strategy: + matrix: + php-version: + - '5.3' + - '5.4' + - '5.5' + - '5.6' + - '7.0' + - '7.1' + - '7.2' + - '7.3' + - '7.4' + - '8.0' + + steps: + - name: 'Check out' + uses: 'actions/checkout@v2' + + - name: 'Set up PHP' + uses: 'shivammathur/setup-php@v2' + with: + php-version: '${{ matrix.php-version }}' + coverage: 'none' + + - name: 'Get Composer cache directory' + id: 'composer-cache' + run: 'echo "::set-output name=cache-dir::$(composer config cache-files-dir)"' + + - name: 'Cache dependencies' + uses: 'actions/cache@v2' + with: + path: '${{ steps.composer-cache.outputs.cache-dir }}' + key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}" + restore-keys: 'php-${{ matrix.php-version }}-composer-locked-' + + - name: 'Lint PHP files' + run: 'find src -type f -name "*.php" -exec php -l {} \; | (! grep -v "No syntax errors detected" )'