-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update discount.php to newest version & Added Gift Card support (#12)
* Update Discount.php for M2 to the 1.1.15 v * Fixed PHPCS Errors * Fixed PHPMD Errors * Update composer.json * Update module.xml * [INT-130] Update Discount.php and Added PhpUnitTests to module * [INT-130] Run PhpUnit via Travis * [INT-130] Downgrade phpUnit version * [INT-130] Fixed codeSniffers * [INT-130] Fixed codeStyle via Fixer * [COL-16] Added Feature Gift Card support for Tax Inspection * [COL-62] Updated travis & grumphp. Updated copyrights * [COL-62] Removed unnecessary bootstrap.php
- Loading branch information
Showing
36 changed files
with
5,909 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
phpunit.xml.dist export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.travis.yml export-ignore | ||
.shippable.yml export-ignore | ||
.scrutinizer.yml export-ignore | ||
README.md export-ignore | ||
version.xml export-ignore | ||
magento.rb export-ignore | ||
.php_cs export-ignore | ||
grumphp.yml export-ignore | ||
phpcs.xml export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
/nbproject | ||
/node_modules | ||
/.idea | ||
/vendor | ||
/composer.lock | ||
.DS_Store | ||
.DS_Store | ||
.php_cs.cache | ||
auth.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<?php | ||
$header = <<<EOF | ||
@author Mygento Team | ||
@copyright 2014-2018 Mygento (https://www.mygento.ru) | ||
@package Mygento_Base | ||
EOF; | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->in('.') | ||
->name('*.phtml') | ||
->exclude('dev/tests/functional/generated') | ||
->exclude('dev/tests/functional/var') | ||
->exclude('dev/tests/functional/vendor') | ||
->exclude('dev/tests/integration/tmp') | ||
->exclude('dev/tests/integration/var') | ||
->exclude('lib/internal/Cm') | ||
->exclude('lib/internal/Credis') | ||
->exclude('lib/internal/Less') | ||
->exclude('lib/internal/LinLibertineFont') | ||
->exclude('pub/media') | ||
->exclude('pub/static') | ||
->exclude('setup/vendor') | ||
->exclude('var'); | ||
|
||
return PhpCsFixer\Config::create() | ||
->setFinder($finder) | ||
->setRules([ | ||
'@PSR2' => true, | ||
'array_syntax' => ['syntax' => 'short'], | ||
'concat_space' => ['spacing' => 'one'], | ||
'include' => true, | ||
'new_with_braces' => true, | ||
'no_empty_statement' => true, | ||
'no_extra_consecutive_blank_lines' => true, | ||
'no_leading_import_slash' => true, | ||
'no_leading_namespace_whitespace' => true, | ||
'no_multiline_whitespace_around_double_arrow' => true, | ||
'no_multiline_whitespace_before_semicolons' => true, | ||
'no_singleline_whitespace_before_semicolons' => true, | ||
'no_trailing_comma_in_singleline_array' => true, | ||
'no_unused_imports' => true, | ||
'no_whitespace_in_blank_line' => true, | ||
'object_operator_without_whitespace' => true, | ||
'ordered_imports' => true, | ||
'standardize_not_equals' => true, | ||
'ternary_operator_spaces' => true, | ||
// mygento | ||
'header_comment' => ['header' => $header, 'commentType'=>'PHPDoc'], | ||
'phpdoc_order' => true, | ||
'phpdoc_types' => true, | ||
'phpdoc_add_missing_param_annotation' => true, | ||
'single_quote' => true, | ||
'standardize_not_equals' => true, | ||
'ternary_to_null_coalescing' => true, | ||
'ternary_operator_spaces' => true, | ||
'lowercase_cast' => true, | ||
'no_empty_comment' => true, | ||
'no_empty_phpdoc' => true, | ||
'return_type_declaration' => true, | ||
'no_useless_return' => true | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.