Skip to content

Commit

Permalink
Merge branch 'release/1.0.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
ma4nn committed May 26, 2020
2 parents d7bb09a + 5604b62 commit dcae68f
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Block/CheckoutSuccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@
class CheckoutSuccess extends Template
{
/**
* @var \Magento\Checkout\Model\Session\Proxy
* @var \Magento\Checkout\Model\Session
*/
private $session;

/**
* @param \Magento\Framework\View\Element\Template\Context $context
* @param \Magento\Checkout\Model\Session\Proxy $session
* @param \Magento\Checkout\Model\Session $session
* @param array $data
*/
public function __construct(
\Magento\Framework\View\Element\Template\Context $context,
\Magento\Checkout\Model\Session\Proxy $session,
\Magento\Checkout\Model\Session $session,
array $data
) {
$this->session = $session;
Expand Down
3 changes: 3 additions & 0 deletions Model/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ public function __construct(
*/
public function generate($storeId = null)
{
// phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged,Magento2.Functions.DiscouragedFunction.Discouraged
@set_time_limit(0);
// phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged,Magento2.Functions.DiscouragedFunction.Discouraged
@ini_set('memory_limit', '-1');

if (empty($storeId) === true) {
Expand Down Expand Up @@ -210,6 +212,7 @@ private function generateForStore(\Magento\Store\Api\Data\StoreInterface $store)
*/
public function getFeedFilename(\Magento\Store\Api\Data\StoreInterface $store)
{
// phpcs:ignore Magento2.Security.InsecureFunction.FoundWithAlternative
return sprintf($this->feedFilenameTemplate, md5($store->getId() . '#' . $store->getName() . '#' . $store->getCode()) . '-' . $store->getCode());
}

Expand Down
10 changes: 5 additions & 5 deletions Model/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class User
private $customerSession;

/**
* @var \Magento\Checkout\Model\Session\Proxy
* @var \Magento\Checkout\Model\Session
*/
private $checkoutSession;

Expand All @@ -66,16 +66,16 @@ class User
private $scopeConfig;

/**
* @param \Magento\Customer\Model\Session\Proxy $customerSession
* @param \Magento\Checkout\Model\Session\Proxy $checkoutSession
* @param \Magento\Customer\Model\Session $customerSession
* @param \Magento\Checkout\Model\Session $checkoutSession
* @param \Magento\Customer\Api\GroupRepositoryInterface $groupRepository
* @param \Magento\Sales\Api\OrderRepositoryInterface $orderRepository
* @param \Magento\Framework\Api\SearchCriteriaBuilder $searchCriteriaBuilder
* @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
*/
public function __construct(
\Magento\Customer\Model\Session\Proxy $customerSession,
\Magento\Checkout\Model\Session\Proxy $checkoutSession,
\Magento\Customer\Model\Session $customerSession,
\Magento\Checkout\Model\Session $checkoutSession,
\Magento\Customer\Api\GroupRepositoryInterface $groupRepository,
\Magento\Sales\Api\OrderRepositoryInterface $orderRepository,
\Magento\Framework\Api\SearchCriteriaBuilder $searchCriteriaBuilder,
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ We recommend to proceed with the following preparational steps before you start
#### Installation with Composer (recommended)
1. In the root directory of your Magento 2 installation install the Recolize Recommendation Engine Extension via the following composer command:
```
composer require recolize/module-recommendation-engine-magento2
composer require --no-dev recolize/module-recommendation-engine-magento2
```

2. Afterwards activate the Magento 2 Extension with the following commands:
Expand Down
11 changes: 11 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,16 @@
"psr-4": {
"Recolize\\RecommendationEngine\\": ""
}
},
"require-dev": {
"magento/magento-coding-standard": "^5.0"
},
"scripts": {
"post-install-cmd": [
"([ $COMPOSER_DEV_MODE -eq 0 ] || vendor/bin/phpcs --config-set installed_paths ../../magento/magento-coding-standard/)"
],
"post-update-cmd": [
"([ $COMPOSER_DEV_MODE -eq 0 ] || vendor/bin/phpcs --config-set installed_paths ../../magento/magento-coding-standard/)"
]
}
}

0 comments on commit dcae68f

Please sign in to comment.