From 57636afbfc87f1bf033dc6f8e0d7997320537342 Mon Sep 17 00:00:00 2001 From: Andrii Vasyliev Date: Sun, 17 Jan 2016 21:07:20 +0000 Subject: [PATCH] fixed build --- .gitignore | 29 ++++++++++++------------ .hidev/config.yml | 7 +++--- .php_cs | 5 +++- .scrutinizer.yml | 9 ++++++++ .travis.yml | 19 ++++++++-------- LICENSE | 2 +- README.md | 4 +++- src/Gateway.php | 2 +- src/Message/AbstractRequest.php | 2 +- src/Message/CompletePurchaseRequest.php | 2 +- src/Message/CompletePurchaseResponse.php | 2 +- src/Message/PurchaseRequest.php | 2 +- src/Message/PurchaseResponse.php | 2 +- 13 files changed, 52 insertions(+), 35 deletions(-) create mode 100644 .scrutinizer.yml diff --git a/.gitignore b/.gitignore index 4beaef5..551783a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,3 @@ -# vendor dirs -vendor - -# composer lock files -composer.lock - # hidev internals .hidev/composer.json .hidev/composer.lock @@ -11,19 +5,26 @@ composer.lock # IDE & OS files .*.swp -.idea -nbproject +.DS_Store .buildpath +.idea .project .settings Thumbs.db -.DS_Store +nbproject + +# php-cs-fixer cache +.php_cs.cache + +# vendor dirs +vendor + +# composer lock files +composer.lock # phpunit generated files coverage.clover -# Codeception generated files -tests/_support/_generated - -# php-cs-fixer cache -.php_cs.cache +# PHARs +php-cs-fixer.phar +phpunit.phar diff --git a/.hidev/config.yml b/.hidev/config.yml index 8a3f266..85bbd45 100644 --- a/.hidev/config.yml +++ b/.hidev/config.yml @@ -1,16 +1,17 @@ package: + type: library name: omnipay-epayservice namespace: Omnipay\ePayService - headline: Omnipay: ePayService + headline: 'Omnipay: ePayService' title: ePayService driver for the Omnipay PHP payment processing library - type: library license: MIT keywords: php, omnipay, epayservice, merchant, payment + year: 2015 description: | [Omnipay](https://github.com/omnipay/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements [ePayService](http://epayservices.com/) support for Omnipay. require: - hiqdev/hidev-vendor: "*" hiqdev/hidev-php: "*" + hiqdev/hidev-vendor: "*" diff --git a/.php_cs b/.php_cs index 456f874..bf4322a 100644 --- a/.php_cs +++ b/.php_cs @@ -6,7 +6,7 @@ ePayService driver for the Omnipay PHP payment processing library @link https://github.com/hiqdev/omnipay-epayservice @package omnipay-epayservice @license MIT -@copyright Copyright (c) 2015, HiQDev (http://hiqdev.com/) +@copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/) EOF; Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header); @@ -26,6 +26,9 @@ return Symfony\CS\Config\Config::create() '-phpdoc_no_empty_return', /// @return void and @return null annotations should be omitted from phpdocs. '-empty_return', /// A return statement wishing to return nothing should be simply "return". '-return', /// An empty line feed should precede a return statement. + '-phpdoc_params', /// All items of the @param, @throws, @return, @var, and @type phpdoc tags must be aligned vertically. + '-phpdoc_scalar', /// Scalar types should always be written in the same form. "int", not "integer"; "bool", not "boolean". + '-phpdoc_separation', /// Annotations of a different type are separated by a single blank line. 'header_comment', /// Add, replace or remove header comment. 'concat_with_spaces', /// Concatenation should be used with at least one whitespace around. 'ereg_to_preg', /// Replace deprecated ereg regular expression functions with preg. Warning! This could change code behavior. diff --git a/.scrutinizer.yml b/.scrutinizer.yml new file mode 100644 index 0000000..4d60661 --- /dev/null +++ b/.scrutinizer.yml @@ -0,0 +1,9 @@ +checks: + php: + code_rating: true + duplication: true +tools: + php_code_coverage: + enabled: true + external_code_coverage: + timeout: 600 diff --git a/.travis.yml b/.travis.yml index 0c73bac..250eabb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,25 +1,26 @@ language: php php: - - 5.4 - 5.5 - 5.6 - 7 - hhvm matrix: allow_failures: - - - php: 7 - php: hhvm cache: directories: - $HOME/.composer/cache +before_install: + - 'composer self-update' + - 'composer --version' + - 'wget http://hiqdev.com/hidev/hidev.phar -O hidev.phar && chmod a+x hidev.phar' + - './hidev.phar --version' + - './hidev.phar travis/before_install' sudo: false install: - - 'travis_retry composer self-update 1.0.0-alpha11' - - 'travis_retry composer global require "fxp/composer-asset-plugin:~1.1" "yiisoft/yii2-composer:~2.0"' - - 'travis_retry composer global require "hiqdev/hidev:*@dev" "phpunit/phpunit:^4.8" "phpunit/phpunit-skeleton-generator:*" "fabpot/php-cs-fixer:*"' - - 'travis_retry composer install --no-interaction' - - '$HOME/.composer/vendor/bin/hidev travis/install' + - './hidev.phar travis/install' script: - - '$HOME/.composer/vendor/bin/hidev travis/script' + - './hidev.phar travis/script' +after_script: + - './hidev.phar travis/after_script' diff --git a/LICENSE b/LICENSE index c161c68..2e87fe1 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright © 2015, HiQDev (http://hiqdev.com/) +Copyright © 2015-2016, HiQDev (http://hiqdev.com/) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index ecb0ea0..5a2832d 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ Omnipay: ePayService [![Latest Stable Version](https://poser.pugx.org/hiqdev/omnipay-epayservice/v/stable)](https://packagist.org/packages/hiqdev/omnipay-epayservice) [![Total Downloads](https://poser.pugx.org/hiqdev/omnipay-epayservice/downloads)](https://packagist.org/packages/hiqdev/omnipay-epayservice) [![Build Status](https://img.shields.io/travis/hiqdev/omnipay-epayservice.svg)](https://travis-ci.org/hiqdev/omnipay-epayservice) +[![Code Coverage](https://scrutinizer-ci.com/g/hiqdev/omnipay-epayservice/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/hiqdev/omnipay-epayservice/?branch=master) +[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/hiqdev/omnipay-epayservice/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/hiqdev/omnipay-epayservice/?branch=master) [![Dependency Status](https://www.versioneye.com/php/hiqdev:omnipay-epayservice/dev-master/badge.svg)](https://www.versioneye.com/php/hiqdev:omnipay-epayservice/dev-master) [Omnipay](https://github.com/omnipay/omnipay) is a framework agnostic, multi-gateway payment @@ -56,4 +58,4 @@ or better yet, fork the library and submit a pull request. This project is released under the terms of the MIT [license](LICENSE). Read more [here](http://choosealicense.com/licenses/mit). -Copyright © 2015, HiQDev (http://hiqdev.com/) +Copyright © 2015-2016, HiQDev (http://hiqdev.com/) diff --git a/src/Gateway.php b/src/Gateway.php index a598c78..34dff7e 100644 --- a/src/Gateway.php +++ b/src/Gateway.php @@ -6,7 +6,7 @@ * @link https://github.com/hiqdev/omnipay-epayservice * @package omnipay-epayservice * @license MIT - * @copyright Copyright (c) 2015, HiQDev (http://hiqdev.com/) + * @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/) */ namespace Omnipay\ePayService; diff --git a/src/Message/AbstractRequest.php b/src/Message/AbstractRequest.php index 1bcb963..594d165 100644 --- a/src/Message/AbstractRequest.php +++ b/src/Message/AbstractRequest.php @@ -6,7 +6,7 @@ * @link https://github.com/hiqdev/omnipay-epayservice * @package omnipay-epayservice * @license MIT - * @copyright Copyright (c) 2015, HiQDev (http://hiqdev.com/) + * @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/) */ namespace Omnipay\ePayService\Message; diff --git a/src/Message/CompletePurchaseRequest.php b/src/Message/CompletePurchaseRequest.php index a5f5f22..2c303bd 100644 --- a/src/Message/CompletePurchaseRequest.php +++ b/src/Message/CompletePurchaseRequest.php @@ -6,7 +6,7 @@ * @link https://github.com/hiqdev/omnipay-epayservice * @package omnipay-epayservice * @license MIT - * @copyright Copyright (c) 2015, HiQDev (http://hiqdev.com/) + * @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/) */ namespace Omnipay\ePayService\Message; diff --git a/src/Message/CompletePurchaseResponse.php b/src/Message/CompletePurchaseResponse.php index 905ad47..ec2ae5b 100644 --- a/src/Message/CompletePurchaseResponse.php +++ b/src/Message/CompletePurchaseResponse.php @@ -6,7 +6,7 @@ * @link https://github.com/hiqdev/omnipay-epayservice * @package omnipay-epayservice * @license MIT - * @copyright Copyright (c) 2015, HiQDev (http://hiqdev.com/) + * @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/) */ namespace Omnipay\ePayService\Message; diff --git a/src/Message/PurchaseRequest.php b/src/Message/PurchaseRequest.php index 042c37c..eb4dff5 100644 --- a/src/Message/PurchaseRequest.php +++ b/src/Message/PurchaseRequest.php @@ -6,7 +6,7 @@ * @link https://github.com/hiqdev/omnipay-epayservice * @package omnipay-epayservice * @license MIT - * @copyright Copyright (c) 2015, HiQDev (http://hiqdev.com/) + * @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/) */ namespace Omnipay\ePayService\Message; diff --git a/src/Message/PurchaseResponse.php b/src/Message/PurchaseResponse.php index 43a252f..c1e55f1 100644 --- a/src/Message/PurchaseResponse.php +++ b/src/Message/PurchaseResponse.php @@ -6,7 +6,7 @@ * @link https://github.com/hiqdev/omnipay-epayservice * @package omnipay-epayservice * @license MIT - * @copyright Copyright (c) 2015, HiQDev (http://hiqdev.com/) + * @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/) */ namespace Omnipay\ePayService\Message;