diff --git a/.travis.yml b/.travis.yml index f15d510..d9fe5cb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,17 +35,16 @@ before_script: fi - | if [[ "$WP_TRAVISCI" == "phpcs" ]] ; then - composer global require wp-coding-standards/wpcs - composer global require wimg/php-compatibility - phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs,$HOME/.composer/vendor/wimg/php-compatibility + composer install fi - if [[ "$WP_TRAVISCI" == "node" ]]; then yarn install; fi script: - | if [[ "$WP_TRAVISCI" == "phpcs" ]] ; then - find -L . -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l - phpcs -p -s -v . --standard=./phpcs.xml --extensions=php --runtime-set testVersion $TRAVIS_PHP_VERSION + find . -name '*.php' ! -path "./vendor/*" ! -path "./wp-content/*" -print0 | xargs -0 -n 1 -P 4 php -l + echo Running phpcs for PHP version $TRAVIS_PHP_VERSION … + ./vendor/bin/phpcs --runtime-set testVersion $TRAVIS_PHP_VERSION fi - if [[ "$WP_TRAVISCI" == "node" ]]; then yarn lint; fi diff --git a/README.md b/README.md index 1deb7bb..ea11b74 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,17 @@ Install the module using Composer `composer require dekodeinteraktiv/hogan-galle ## Changelog -## [1.2.0] -### Breaking Changes +### 1.2.2 +- Update module to new registration method introduced in [Hogan Core 1.1.7](https://github.com/DekodeInteraktiv/hogan-core/releases/tag/1.1.7) +- Set hogan-core dependency `"dekodeinteraktiv/hogan-core": ">=1.1.7"` +- Add Dekode Coding Standards. + +### 1.2.1 +- Add support for Photoswipe animation. +- Enable animation by default. + +### 1.2.0 +#### Breaking Changes - Remove heading field, provided from Core in [#53](https://github.com/DekodeInteraktiv/hogan-core/pull/53) - Heading field has to be added using filter (was default on before). @@ -23,7 +32,3 @@ Install the module using Composer `composer require dekodeinteraktiv/hogan-galle - Heading classname changed from `.heading` to `.hogan-heading`. (#5) - Template markup changed from `ul > li` to `div` (#7) - Added schema to markup (#7) - -### 1.2.1 -- Add support for Photoswipe animation. -- Enable animation by default. diff --git a/assets/photoswipe-template.php b/assets/photoswipe-template.php index ce4683c..5c1d012 100644 --- a/assets/photoswipe-template.php +++ b/assets/photoswipe-template.php @@ -5,6 +5,8 @@ * @package Hogan */ +declare( strict_types = 1 ); + ?>