Skip to content

Commit

Permalink
Fixed code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Meijer committed Jul 21, 2021
1 parent a8ac8f2 commit aa1a892
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Plugin/SetProductsActive.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,18 @@
use Magento\Catalog\Api\Data\ProductInterface;
use Magento\Framework\Exception\CouldNotSaveException;
use Magento\Framework\Exception\NoSuchEntityException;
use Magento\Store\Model\ScopeInterface as scope;
use Magento\Store\Model\ScopeInterface as Scope;
use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Catalog\Model\Product\Attribute\Source\Status;
use Magento\Catalog\Api\ProductRepositoryInterface;
use Magento\Catalog\Model\Product as catalogProduct;
use Magento\Catalog\Model\Product as CatalogProduct;

class SetProductsActive
{
protected $config;
protected $entitiesHelper;

/**
* __construct function
* @param ScopeConfigInterface $config
* @param Entities $entitiesHelper
*/
Expand All @@ -42,7 +41,7 @@ public function __construct(
*/
public function afterInsertData(product $subject, $result)
{
$extensionEnabled = $this->config->getValue('akeneo_connector/justbetter/setproductsactive', scope::SCOPE_WEBSITE);
$extensionEnabled = $this->config->getValue('akeneo_connector/justbetter/setproductsactive', Scope::SCOPE_WEBSITE);
if (!$extensionEnabled) {
return $result;
}
Expand Down Expand Up @@ -80,10 +79,10 @@ protected function getProducts(product $subject): array

/**
* @param $identifier
* @return ProductInterface|catalogProduct|null
* @return CatalogProduct
* @throws NoSuchEntityException
*/
protected function getProduct(string $identifier): catalogProduct
protected function getProduct(string $identifier): CatalogProduct
{
return $this->productRepository->get($identifier);
}
Expand Down

0 comments on commit aa1a892

Please sign in to comment.