diff --git a/.github/ISSUE_TEMPLATE/BUG_REPORT.md b/.github/ISSUE_TEMPLATE/BUG_REPORT.md index 2e62bfe..43dc7f5 100644 --- a/.github/ISSUE_TEMPLATE/BUG_REPORT.md +++ b/.github/ISSUE_TEMPLATE/BUG_REPORT.md @@ -32,4 +32,3 @@ Important: Provide a set of clear steps to reproduce this bug. We can not provid 1. [Screenshots, logs or description] 2. - diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..087ae51 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,22 @@ +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.0.1 + hooks: + - id: end-of-file-fixer + - id: mixed-line-ending + args: ['--fix=lf'] + - id: trailing-whitespace + - id: check-xml + - id: check-yaml + - id: check-json + - id: pretty-format-json + args: ["--indent=4", "--autofix", "--no-sort-keys"] +- repo: https://github.com/eriocnemis/git.MagentoPreCommitHooks + rev: 1.0.10 + hooks: + - id: magento-xml + - id: magento-phpcs + args: ["--autofix"] +# - id: magento-phpmd +# - id: magento-phpcpd + - id: magento-phpstan diff --git a/COPYING.txt b/COPYING.txt index ea591c8..06427fd 100644 --- a/COPYING.txt +++ b/COPYING.txt @@ -2,4 +2,4 @@ Copyright © 2011-2019 Eriocnemis Team (dev.eriocnemis@gmail.com) Each Eriocnemis source file included in this distribution is licensed under OSL 3.0 http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -Please see LICENSE.md for the full text of the OSL 3.0 license. \ No newline at end of file +Please see LICENSE.md for the full text of the OSL 3.0 license. diff --git a/LICENSE.md b/LICENSE.md index 3a84162..36b2459 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -15,7 +15,7 @@ Licensed under the Open Software License version 3.0 4. to perform the Original Work publicly; and - 5. to display the Original Work publicly. + 5. to display the Original Work publicly. 2. Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works. @@ -45,4 +45,4 @@ Licensed under the Open Software License version 3.0 15. Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You. - 16. Modification of This License. This License is Copyright (C) 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Open Software License" or "OSL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under " or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process. \ No newline at end of file + 16. Modification of This License. This License is Copyright (C) 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Open Software License" or "OSL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under " or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process. diff --git a/composer.json b/composer.json index f31953f..d7bc2a2 100644 --- a/composer.json +++ b/composer.json @@ -2,25 +2,28 @@ "name": "eriocnemis/module-region-shipping-rule-api", "description": "The module serves as application program interface (API) responsible for functionality of shipping rules manage as well as bulk operations.", "type": "magento2-module", - "version": "2.3.1", - "authors": [{ - "name": "Eriocnemis Team", - "email": "dev.eriocnemis@gmail.com" - }], + "version": "2.3.2", + "authors": [ + { + "name": "Eriocnemis Team", + "email": "dev.eriocnemis@gmail.com" + } + ], "license": [ "OSL-3.0" ], "require": { + "php": "~7.1.3||~7.2.0||~7.3.0", "magento/framework": "102.0.*", "magento/module-webapi": "100.3.*", - "eriocnemis/module-region-api": "2.3.*" + "eriocnemis/module-region-api": "2.3.2" }, "autoload": { "files": [ - "registration.php" + "src/registration.php" ], "psr-4": { - "Eriocnemis\\RegionShippingRuleApi\\": "" + "Eriocnemis\\RegionShippingRuleApi\\": "src" } } } diff --git a/Api/Data/RuleInterface.php b/src/Api/Data/RuleInterface.php similarity index 100% rename from Api/Data/RuleInterface.php rename to src/Api/Data/RuleInterface.php diff --git a/Api/Data/RuleSearchResultInterface.php b/src/Api/Data/RuleSearchResultInterface.php similarity index 100% rename from Api/Data/RuleSearchResultInterface.php rename to src/Api/Data/RuleSearchResultInterface.php diff --git a/Api/DeleteRuleByIdInterface.php b/src/Api/DeleteRuleByIdInterface.php similarity index 100% rename from Api/DeleteRuleByIdInterface.php rename to src/Api/DeleteRuleByIdInterface.php diff --git a/Api/GetRuleByIdInterface.php b/src/Api/GetRuleByIdInterface.php similarity index 100% rename from Api/GetRuleByIdInterface.php rename to src/Api/GetRuleByIdInterface.php diff --git a/Api/GetRuleListInterface.php b/src/Api/GetRuleListInterface.php similarity index 100% rename from Api/GetRuleListInterface.php rename to src/Api/GetRuleListInterface.php diff --git a/Api/SaveRuleInterface.php b/src/Api/SaveRuleInterface.php similarity index 100% rename from Api/SaveRuleInterface.php rename to src/Api/SaveRuleInterface.php diff --git a/Api/ValidateRuleInterface.php b/src/Api/ValidateRuleInterface.php similarity index 100% rename from Api/ValidateRuleInterface.php rename to src/Api/ValidateRuleInterface.php diff --git a/etc/acl.xml b/src/etc/acl.xml similarity index 100% rename from etc/acl.xml rename to src/etc/acl.xml diff --git a/etc/module.xml b/src/etc/module.xml similarity index 100% rename from etc/module.xml rename to src/etc/module.xml diff --git a/i18n/en_US.csv b/src/i18n/en_US.csv similarity index 100% rename from i18n/en_US.csv rename to src/i18n/en_US.csv diff --git a/registration.php b/src/registration.php similarity index 100% rename from registration.php rename to src/registration.php