Skip to content

Commit

Permalink
php-cs-fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Nov 13, 2015
1 parent 19f56a5 commit 8baf894
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ return Symfony\CS\Config\Config::create()
'-align_equals', /// Align equals symbols in consecutive lines.
'-unalign_equals', /// Unalign equals symbols in consecutive lines.
'-blankline_after_open_tag', /// Ensure there is no code on the same line as the PHP open tag and it is followed by a blankline.
'-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.
'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.
Expand Down
11 changes: 10 additions & 1 deletion src/ShoppingCart.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* 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/)
*/

namespace hiqdev\yii2\cart;

use Yii;
Expand All @@ -24,6 +33,7 @@ public function getQuantity()
foreach ($this->_positions as $position) {
$count += $position->getQuantity();
}

return $count;
}

Expand All @@ -46,5 +56,4 @@ public function formatCurrency($sum, $currency = null)
{
return Yii::$app->formatter->format($sum, ['currency', $currency ?: $this->currency]);
}

}
6 changes: 3 additions & 3 deletions src/messages/ru/cart.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/*
* Yii2 extension for payment processing with Omnipay, Payum and more later
* Cart module for yii2
*
* @link https://github.com/hiqdev/yii2-merchant
* @package yii2-merchant
* @link https://github.com/hiqdev/yii2-cart
* @package yii2-cart
* @license BSD-3-Clause
* @copyright Copyright (c) 2015, HiQDev (http://hiqdev.com/)
*/
Expand Down

0 comments on commit 8baf894

Please sign in to comment.