Skip to content

Commit

Permalink
review-code
Browse files Browse the repository at this point in the history
  • Loading branch information
btn114 committed May 27, 2019
1 parent 6eec8b9 commit ebf20b5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Controller/Post/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ public function execute()
if (isset($params['cmt_text'])) {
$cmt_text = $params['cmt_text'];
$content = htmlentities($cmt_text, ENT_COMPAT, 'UTF-8') . "<br />";
$htmlentity = htmlentities($content, ENT_COMPAT, 'UTF-8');
$content = html_entity_decode($htmlentity);
$htmlEntity = htmlentities($content, ENT_COMPAT, 'UTF-8');
$content = html_entity_decode($htmlEntity);

$cmtText = $content;
$isReply = isset($params['isReply']) ? $params['isReply'] : 0;
Expand Down
2 changes: 1 addition & 1 deletion Model/ResourceModel/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ protected function _beforeSave(AbstractModel $object)
protected function _afterSave(AbstractModel $object)
{
/** @var \Mageplaza\Blog\Model\Category $object */
if (substr($object->getPath(), -1) == '/') {
if (substr($object->getPath(), -1) === '/') {
$object->setPath($object->getPath() . $object->getId());
$this->savePath($object);
}
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

**Magento 2 Blog by Mageplaza** is integrated right into the Magento backend so you can manage your blog and your e-commerce store all in the one place. It is the perfect marketing tool for your bussiness that not only provides update information to your existing customers but also drive more visitors to your online store.

[![Codacy Badge](https://api.codacy.com/project/badge/Grade/7f52db083c5f47648e26d92060d75b73)](https://app.codacy.com/app/mageplaza/magento-2-blog?utm_source=github.com&utm_medium=referral&utm_content=mageplaza/magento-2-blog&utm_campaign=Badge_Grade_Dashboard)
[![Latest Stable Version](https://poser.pugx.org/mageplaza/magento-2-blog-extension/v/stable)](https://packagist.org/packages/mageplaza/magento-2-blog-extension)
[![Total Downloads](https://poser.pugx.org/mageplaza/magento-2-blog-extension/downloads)](https://packagist.org/packages/mageplaza/magento-2-blog-extension)

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"mageplaza/module-core": "^1.4.0"
},
"type": "magento2-module",
"version": "3.0.4",
"version": "3.0.6",
"license": "proprietary",
"keywords": [
"magento 2",
Expand Down

0 comments on commit ebf20b5

Please sign in to comment.