Skip to content

Commit

Permalink
fix: php-cs-fixer and php-stan
Browse files Browse the repository at this point in the history
  • Loading branch information
fox-john committed Dec 5, 2024
1 parent bca8b9d commit 1b88f57
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion config.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
'ps_eventbus.sync_api_url' => 'http://reverse-proxy/sync-api',
'ps_eventbus.live_sync_api_url' => 'http://reverse-proxy/live-sync-api/v1',
'ps_eventbus.sentry_dsn' => 'https://[email protected]/stuff',
'ps_eventbus.sentry_env' => 'development'
'ps_eventbus.sentry_env' => 'development',
];
6 changes: 3 additions & 3 deletions ps_eventbus.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class Ps_eventbus extends Module
public $version;

/**
* @var PrestaShop\Module\PsEventbus\DependencyInjection\ServiceContainer
* @var PrestaShop\Module\PsEventbus\ServiceContainer\ServiceContainer
*/
private $container;

Expand Down Expand Up @@ -169,14 +169,14 @@ public function uninstall()
}

/**
* @return ServiceContainer
* @return PrestaShop\Module\PsEventbus\ServiceContainer\ServiceContainer
*
* @throws Exception
*/
public function getServiceContainer()
{
if (null === $this->container) {
$this->container = ServiceContainer::createInstance(
$this->container = PrestaShop\Module\PsEventbus\ServiceContainer\ServiceContainer::createInstance(
__DIR__ . '/config.php'
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Service/ShopContent/ProductsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ private function castProducts(&$products)
$product['id_attribute'] = (int) $product['id_attribute'];
$product['id_category_default'] = (int) $product['id_category_default'];
$product['quantity'] = (int) $product['quantity'];

$product['weight'] = (float) $product['weight'];
$product['active'] = $product['active'] == '1';
$product['manufacturer'] = (string) $product['manufacturer'];
Expand Down
2 changes: 0 additions & 2 deletions src/Service/SynchronizationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ public function __construct(
$this->languagesService = $languagesService;
$this->proxyService = $proxyService;
$this->errorHandler = $errorHandler;


}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceContainer/Provider/RepositoryProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
use PrestaShop\Module\PsEventbus\Repository\ImageRepository;
use PrestaShop\Module\PsEventbus\Repository\ImageTypeRepository;
use PrestaShop\Module\PsEventbus\Repository\IncrementalSyncRepository;
use PrestaShop\Module\PsEventbus\Repository\InfoRepository;
use PrestaShop\Module\PsEventbus\Repository\LanguageRepository;
use PrestaShop\Module\PsEventbus\Repository\LiveSyncRepository;
use PrestaShop\Module\PsEventbus\Repository\ManufacturerRepository;
Expand All @@ -46,7 +47,6 @@
use PrestaShop\Module\PsEventbus\Repository\OrderStatusHistoryRepository;
use PrestaShop\Module\PsEventbus\Repository\ProductRepository;
use PrestaShop\Module\PsEventbus\Repository\ProductSupplierRepository;
use PrestaShop\Module\PsEventbus\Repository\InfoRepository;
use PrestaShop\Module\PsEventbus\Repository\SpecificPriceRepository;
use PrestaShop\Module\PsEventbus\Repository\StockMovementRepository;
use PrestaShop\Module\PsEventbus\Repository\StockRepository;
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceContainer/Provider/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
use PrestaShop\Module\PsEventbus\Repository\ImageRepository;
use PrestaShop\Module\PsEventbus\Repository\ImageTypeRepository;
use PrestaShop\Module\PsEventbus\Repository\IncrementalSyncRepository;
use PrestaShop\Module\PsEventbus\Repository\InfoRepository;
use PrestaShop\Module\PsEventbus\Repository\LanguageRepository;
use PrestaShop\Module\PsEventbus\Repository\LiveSyncRepository;
use PrestaShop\Module\PsEventbus\Repository\ManufacturerRepository;
Expand All @@ -49,7 +50,6 @@
use PrestaShop\Module\PsEventbus\Repository\OrderStatusHistoryRepository;
use PrestaShop\Module\PsEventbus\Repository\ProductRepository;
use PrestaShop\Module\PsEventbus\Repository\ProductSupplierRepository;
use PrestaShop\Module\PsEventbus\Repository\InfoRepository;
use PrestaShop\Module\PsEventbus\Repository\SpecificPriceRepository;
use PrestaShop\Module\PsEventbus\Repository\StockMovementRepository;
use PrestaShop\Module\PsEventbus\Repository\StockRepository;
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/Hooks/UseEmployeeHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function hookActionObjectEmployeeUpdateAfter()
false
);
}

/**
* @return void
*/
Expand Down
1 change: 0 additions & 1 deletion src/Traits/Hooks/UseLanguageHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,4 @@ public function hookActionObjectLanguageDeleteAfter($parameters)
);
}
}

}
2 changes: 1 addition & 1 deletion src/Traits/Hooks/UseSupplierHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function hookActionObjectSupplierUpdateAfter($parameters)
);
}
}

/**
* @param array<mixed> $parameters
*
Expand Down
6 changes: 3 additions & 3 deletions src/Traits/UseHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
use PrestaShop\Module\PsEventbus\Traits\Hooks\UseStockHooks;
use PrestaShop\Module\PsEventbus\Traits\Hooks\UseStoreHooks;
use PrestaShop\Module\PsEventbus\Traits\Hooks\UseSupplierHooks;
use PrestaShop\Module\PsEventbus\Traits\Hooks\UseTaxRuleGroupHooks;
use PrestaShop\Module\PsEventbus\Traits\Hooks\UseTaxHooks;
use PrestaShop\Module\PsEventbus\Traits\Hooks\UseTaxRuleGroupHooks;
use PrestaShop\Module\PsEventbus\Traits\Hooks\UseWishlistHooks;
use PrestaShop\Module\PsEventbus\Traits\Hooks\UseZoneHooks;

Expand Down Expand Up @@ -173,8 +173,8 @@ public function getHooks()
'actionObjectTaxRulesGroupAddAfter',
'actionObjectTaxRulesGroupUpdateAfter',
'actionObjectTaxRulesGroupDeleteAfter',
'actionObjectWishlistAddAfter',

'actionObjectWishlistAddAfter',
'actionObjectWishlistUpdateAfter',
'actionObjectWishlistDeleteAfter',

Expand Down

0 comments on commit 1b88f57

Please sign in to comment.