Skip to content

Commit

Permalink
fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Jan 18, 2016
1 parent 904f2b6 commit bc1ccf9
Show file tree
Hide file tree
Showing 22 changed files with 61 additions and 40 deletions.
29 changes: 15 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
# vendor dirs
vendor

# composer lock files
composer.lock

# hidev internals
.hidev/composer.json
.hidev/composer.lock
.hidev/vendor

# 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
5 changes: 5 additions & 0 deletions .hidev/commits.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ hiqdev/yii2-cart commits history

## Under development

- 904f2b6 2015-12-25 Module - added shoppingCartOptions property (d.naumenko.a@gmail.com)
- 8982a03 2015-12-25 ShoppingCart - PHPDocs improved (d.naumenko.a@gmail.com)
- 06670cf 2015-12-25 CartController::actionUpdateQuantity - fixed broken redirect (d.naumenko.a@gmail.com)
- 69b9a1f 2015-12-22 Add bulk Renewal (andreyklochok@gmail.com)
- 9820938 2015-12-22 Some changes (andreyklochok@gmail.com)
- Added configration options to Module
- 5cc02b9 2015-12-15 added test for get/setOrderButton (sol@hiqdev.com)
- 213c03b 2015-12-15 fixed travis and tests (sol@hiqdev.com)
Expand Down
1 change: 1 addition & 0 deletions .hidev/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package:
headline: Yii2 Cart
title: Cart module for Yii2
keywords: cart, yii2, extension
year: 2015
description: |
[Yii2](http://yiiframework.com) extension providing shopping cart module.
Uses [omnilight/yii2-shopping-cart](https://github.com/omnilight/yii2-shopping-cart) for shopping cart abstraction.
Expand Down
3 changes: 2 additions & 1 deletion .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Cart module for Yii2
@link https://github.com/hiqdev/yii2-cart
@package yii2-cart
@license BSD-3-Clause
@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);
Expand All @@ -27,6 +27,7 @@ return Symfony\CS\Config\Config::create()
'-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.
Expand Down
9 changes: 9 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
checks:
php:
code_rating: true
duplication: true
tools:
php_code_coverage:
enabled: true
external_code_coverage:
timeout: 600
13 changes: 8 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ matrix:
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"'
- 'wget http://hiqdev.com/hidev/hidev.phar && chmod a+x hidev.phar'
- 'travis_retry composer global require "fabpot/php-cs-fixer:*" "phpunit/phpunit-skeleton-generator:*" "phpunit/phpunit:^4.8"'
- 'travis_retry composer install --no-interaction'
- './hidev.phar travis/install'
script:
- './hidev.phar travis/script'
after_script:
- './hidev.phar travis/after_script'
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright © 2015, HiQDev (http://hiqdev.com/)
Copyright © 2015-2016, HiQDev (http://hiqdev.com/)
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand All @@ -11,7 +11,7 @@ are met:
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
* Neither the name of HiQDev nor Yii2 Cart nor the names of its
* Neither the name of HiQDev nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Yii2 Cart
[![Latest Stable Version](https://poser.pugx.org/hiqdev/yii2-cart/v/stable)](https://packagist.org/packages/hiqdev/yii2-cart)
[![Total Downloads](https://poser.pugx.org/hiqdev/yii2-cart/downloads)](https://packagist.org/packages/hiqdev/yii2-cart)
[![Build Status](https://img.shields.io/travis/hiqdev/yii2-cart.svg)](https://travis-ci.org/hiqdev/yii2-cart)
[![Code Coverage](https://scrutinizer-ci.com/g/hiqdev/yii2-cart/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/hiqdev/yii2-cart/?branch=master)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/hiqdev/yii2-cart/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/hiqdev/yii2-cart/?branch=master)
[![Dependency Status](https://www.versioneye.com/php/hiqdev:yii2-cart/dev-master/badge.svg)](https://www.versioneye.com/php/hiqdev:yii2-cart/dev-master)

[Yii2](http://yiiframework.com) extension providing shopping cart module.
Expand Down Expand Up @@ -34,4 +36,4 @@ to the require section of your composer.json.
This project is released under the terms of the BSD-3-Clause [license](LICENSE).
Read more [here](http://choosealicense.com/licenses/bsd-3-clause).

Copyright © 2015, HiQDev (http://hiqdev.com/)
Copyright © 2015-2016, HiQDev (http://hiqdev.com/)
2 changes: 1 addition & 1 deletion src/CartPositionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @link https://github.com/hiqdev/yii2-cart
* @package yii2-cart
* @license BSD-3-Clause
* @copyright Copyright (c) 2015, HiQDev (http://hiqdev.com/)
* @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
*/

namespace hiqdev\yii2\cart;
Expand Down
2 changes: 1 addition & 1 deletion src/CartPositionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @link https://github.com/hiqdev/yii2-cart
* @package yii2-cart
* @license BSD-3-Clause
* @copyright Copyright (c) 2015, HiQDev (http://hiqdev.com/)
* @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
*/

namespace hiqdev\yii2\cart;
Expand Down
2 changes: 1 addition & 1 deletion src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @link https://github.com/hiqdev/yii2-cart
* @package yii2-cart
* @license BSD-3-Clause
* @copyright Copyright (c) 2015, HiQDev (http://hiqdev.com/)
* @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
*/

namespace hiqdev\yii2\cart;
Expand Down
4 changes: 2 additions & 2 deletions src/ShoppingCart.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @link https://github.com/hiqdev/yii2-cart
* @package yii2-cart
* @license BSD-3-Clause
* @copyright Copyright (c) 2015, HiQDev (http://hiqdev.com/)
* @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
*/

namespace hiqdev\yii2\cart;
Expand All @@ -15,7 +15,7 @@
use Yii;

/**
* Class ShoppingCart
* Class ShoppingCart.
* @property AbstractCartPosition[] $positions
*/
class ShoppingCart extends \yz\shoppingcart\ShoppingCart
Expand Down
3 changes: 1 addition & 2 deletions src/actions/AddToCartAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
* @link https://github.com/hiqdev/yii2-cart
* @package yii2-cart
* @license BSD-3-Clause
* @copyright Copyright (c) 2015, HiQDev (http://hiqdev.com/)
* @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
*/

namespace hiqdev\yii2\cart\actions;

use hipanel\modules\domain\models\Domain;
use hiqdev\hiart\Collection;
use hiqdev\yii2\cart\Module;
use Yii;
Expand Down
4 changes: 2 additions & 2 deletions src/controllers/CartController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @link https://github.com/hiqdev/yii2-cart
* @package yii2-cart
* @license BSD-3-Clause
* @copyright Copyright (c) 2015, HiQDev (http://hiqdev.com/)
* @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
*/

namespace hiqdev\yii2\cart\controllers;
Expand All @@ -17,7 +17,7 @@
use yii\web\NotFoundHttpException;

/**
* Cart controller
* Cart controller.
*
* @property ShoppingCart $cart The shopping cart instance
*/
Expand Down
2 changes: 1 addition & 1 deletion src/grid/QuantityColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @link https://github.com/hiqdev/yii2-cart
* @package yii2-cart
* @license BSD-3-Clause
* @copyright Copyright (c) 2015, HiQDev (http://hiqdev.com/)
* @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
*/

namespace hiqdev\yii2\cart\grid;
Expand Down
2 changes: 1 addition & 1 deletion src/messages/ru/cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @link https://github.com/hiqdev/yii2-cart
* @package yii2-cart
* @license BSD-3-Clause
* @copyright Copyright (c) 2015, HiQDev (http://hiqdev.com/)
* @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/PanelTopCart.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @link https://github.com/hiqdev/yii2-cart
* @package yii2-cart
* @license BSD-3-Clause
* @copyright Copyright (c) 2015, HiQDev (http://hiqdev.com/)
* @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
*/

namespace hiqdev\yii2\cart\widgets;
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/QuantityCell.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @link https://github.com/hiqdev/yii2-cart
* @package yii2-cart
* @license BSD-3-Clause
* @copyright Copyright (c) 2015, HiQDev (http://hiqdev.com/)
* @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
*/

namespace hiqdev\yii2\cart\widgets;
Expand Down
2 changes: 1 addition & 1 deletion tests/_bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @link https://github.com/hiqdev/yii2-cart
* @package yii2-cart
* @license BSD-3-Clause
* @copyright Copyright (c) 2015, HiQDev (http://hiqdev.com/)
* @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
*/

error_reporting(E_ALL & ~E_NOTICE);
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/FakeCartPosition.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @link https://github.com/hiqdev/yii2-cart
* @package yii2-cart
* @license BSD-3-Clause
* @copyright Copyright (c) 2015, HiQDev (http://hiqdev.com/)
* @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
*/

namespace hiqdev\yii2\cart\tests\unit;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/ModuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @link https://github.com/hiqdev/yii2-cart
* @package yii2-cart
* @license BSD-3-Clause
* @copyright Copyright (c) 2015, HiQDev (http://hiqdev.com/)
* @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
*/

namespace hiqdev\yii2\cart\tests\unit;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/ShoppingCartTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @link https://github.com/hiqdev/yii2-cart
* @package yii2-cart
* @license BSD-3-Clause
* @copyright Copyright (c) 2015, HiQDev (http://hiqdev.com/)
* @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
*/

namespace hiqdev\yii2\cart\tests\unit;
Expand Down

0 comments on commit bc1ccf9

Please sign in to comment.