From ef28a61b3ad37adab1facd2e6e6bb07f17fb42ad Mon Sep 17 00:00:00 2001 From: Brian Date: Tue, 8 Dec 2020 16:06:47 +0700 Subject: [PATCH] Clean code --- .github/ISSUE_TEMPLATE/bug_report.md | 68 +++++++-------- .../developer-experience-issue.md | 38 ++++---- .github/ISSUE_TEMPLATE/feature_request.md | 44 +++++----- .github/PULL_REQUEST_TEMPLATE.md | 38 ++++---- .github/no-response.yml | 26 +++--- Helper/Data.php | 1 + composer.json | 4 +- etc/adminhtml/di.xml | 86 +++++++++---------- view/frontend/templates/schedule.phtml | 2 +- 9 files changed, 154 insertions(+), 153 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 65788ed..dafbad1 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,34 +1,34 @@ ---- -name: Bug report -about: Technical issue with the extension -labels: 'Issue' - ---- - - - -### Preconditions (*) - -1. -2. - -### Steps to reproduce (*) - -1. -2. - -### Expected result (*) - -1. [Screenshots, logs or description] -2. - -### Actual result (*) - -1. [Screenshots, logs or description] -2. +--- +name: Bug report +about: Technical issue with the extension +labels: 'Issue' + +--- + + + +### Preconditions (*) + +1. +2. + +### Steps to reproduce (*) + +1. +2. + +### Expected result (*) + +1. [Screenshots, logs or description] +2. + +### Actual result (*) + +1. [Screenshots, logs or description] +2. diff --git a/.github/ISSUE_TEMPLATE/developer-experience-issue.md b/.github/ISSUE_TEMPLATE/developer-experience-issue.md index 90a4fb5..597f869 100644 --- a/.github/ISSUE_TEMPLATE/developer-experience-issue.md +++ b/.github/ISSUE_TEMPLATE/developer-experience-issue.md @@ -1,19 +1,19 @@ ---- -name: Developer experience issue -about: Issues related to customization, extensibility, modularity -labels: 'Experience' - ---- - - - -### Summary (*) - - -### Examples (*) - - -### Proposed solution - +--- +name: Developer experience issue +about: Issues related to customization, extensibility, modularity +labels: 'Experience' + +--- + + + +### Summary (*) + + +### Examples (*) + + +### Proposed solution + diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 3cd5bb4..c7708c5 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,22 +1,22 @@ ---- -name: Feature request -about: Request feature for development -labels: 'Feature Request' - ---- - - - -### Description (*) - - -### Expected behavior (*) - - -### Benefits - - -### Additional information - +--- +name: Feature request +about: Request feature for development +labels: 'Feature Request' + +--- + + + +### Description (*) + + +### Expected behavior (*) + + +### Benefits + + +### Additional information + diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 8f862f9..6b8e961 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,19 +1,19 @@ - - -### Description - - -### Fixed Issues (if relevant) - -1. https://github.com/mageplaza/magento-2-reports/: Issue title -2. ... - -### Manual testing scenarios - -1. -2. - -### Contribution checklist - - [ ] Pull request has a meaningful description of its purpose - - [ ] All commits are accompanied by meaningful commit messages - - [ ] All new or changed code is covered with unit/integration tests (if applicable) + + +### Description + + +### Fixed Issues (if relevant) + +1. https://github.com/mageplaza/magento-2-reports/: Issue title +2. ... + +### Manual testing scenarios + +1. +2. + +### Contribution checklist + - [ ] Pull request has a meaningful description of its purpose + - [ ] All commits are accompanied by meaningful commit messages + - [ ] All new or changed code is covered with unit/integration tests (if applicable) diff --git a/.github/no-response.yml b/.github/no-response.yml index 06a2899..64568da 100644 --- a/.github/no-response.yml +++ b/.github/no-response.yml @@ -1,13 +1,13 @@ -# Configuration for probot-no-response - https://github.com/probot/no-response - -# Number of days of inactivity before an Issue is closed for lack of response -daysUntilClose: 7 -# Label requiring a response -responseRequiredLabel: waiting-customer-response -# Comment to post when closing an Issue for lack of response. Set to `false` to disable -closeComment: > - This issue has been automatically closed because there has been no response - to our request for more information from the original author. With only the - information that is currently in the issue, we don't have enough information - to take action. Please reach out if you have or find the answers we need so - that we can investigate further. +# Configuration for probot-no-response - https://github.com/probot/no-response + +# Number of days of inactivity before an Issue is closed for lack of response +daysUntilClose: 7 +# Label requiring a response +responseRequiredLabel: waiting-customer-response +# Comment to post when closing an Issue for lack of response. Set to `false` to disable +closeComment: > + This issue has been automatically closed because there has been no response + to our request for more information from the original author. With only the + information that is currently in the issue, we don't have enough information + to take action. Please reach out if you have or find the answers we need so + that we can investigate further. diff --git a/Helper/Data.php b/Helper/Data.php index 2b44a2a..f3682c9 100644 --- a/Helper/Data.php +++ b/Helper/Data.php @@ -193,6 +193,7 @@ public function getTime($isFloor = false) /** * @param string $date + * * @return string * @throws Exception */ diff --git a/composer.json b/composer.json index cd14273..71a1eae 100644 --- a/composer.json +++ b/composer.json @@ -2,10 +2,10 @@ "name": "mageplaza/module-cron-schedule", "description": "Magento 2 Cron Schedule Extension", "require": { - "mageplaza/module-core": "^1.4.5" + "mageplaza/module-core": "^1.4.10" }, "type": "magento2-module", - "version": "1.0.1", + "version": "1.0.2", "license": "proprietary", "authors": [ { diff --git a/etc/adminhtml/di.xml b/etc/adminhtml/di.xml index 20eb0c0..e5d65f4 100644 --- a/etc/adminhtml/di.xml +++ b/etc/adminhtml/di.xml @@ -1,43 +1,43 @@ - - - - - - - Mageplaza\CronSchedule\Model\Message - - - - - - - - created_at - scheduled_at - executed_at - finished_at - - - - - + + + + + + + Mageplaza\CronSchedule\Model\Message + + + + + + + + created_at + scheduled_at + executed_at + finished_at + + + + + diff --git a/view/frontend/templates/schedule.phtml b/view/frontend/templates/schedule.phtml index ebfb1a4..2d03e03 100644 --- a/view/frontend/templates/schedule.phtml +++ b/view/frontend/templates/schedule.phtml @@ -41,7 +41,7 @@ $items = $collection ? $collection->getItems() : []; getStatus(); ?>