Update dhii/module-interface to version 0.3

This commit is contained in:
dinamiko 2021-07-14 14:58:23 +02:00
parent 090e829f75
commit 119543ae2d
12 changed files with 12 additions and 12 deletions

View file

@ -36,7 +36,7 @@ class AdminNotices implements ModuleInterface {
*
* @param ContainerInterface $container The container.
*/
public function run( ContainerInterface $container ) {
public function run( ContainerInterface $container ): void {
add_action(
'admin_notices',
function() use ( $container ) {

View file

@ -37,7 +37,7 @@ class ApiModule implements ModuleInterface {
*
* @param ContainerInterface $container The container.
*/
public function run( ContainerInterface $container ) {
public function run( ContainerInterface $container ): void {
}
/**

View file

@ -43,7 +43,7 @@ class ButtonModule implements ModuleInterface {
*
* @param ContainerInterface|null $container The Container.
*/
public function run( ContainerInterface $container ) {
public function run( ContainerInterface $container ): void {
add_action(
'wp',

View file

@ -40,7 +40,7 @@ class OnboardingModule implements ModuleInterface {
*
* @param ContainerInterface|null $container The container.
*/
public function run( ContainerInterface $container ) {
public function run( ContainerInterface $container ): void {
$asset_loader = $container->get( 'onboarding.assets' );
/**

View file

@ -37,7 +37,7 @@ class SessionModule implements ModuleInterface {
*
* @param ContainerInterface|null $container The container.
*/
public function run( ContainerInterface $container ) {
public function run( ContainerInterface $container ): void {
add_action(
'woocommerce_init',
function () use ( $container ) {

View file

@ -44,7 +44,7 @@ class SubscriptionModule implements ModuleInterface {
*
* @param ContainerInterface|null $container The container.
*/
public function run( ContainerInterface $container ) {
public function run( ContainerInterface $container ): void {
add_action(
'woocommerce_scheduled_subscription_payment_' . PayPalGateway::ID,
function ( $amount, $order ) use ( $container ) {

View file

@ -53,7 +53,7 @@ class WcGatewayModule implements ModuleInterface {
*
* @param ContainerInterface|null $container The container.
*/
public function run( ContainerInterface $container ) {
public function run( ContainerInterface $container ): void {
$this->register_payment_gateways( $container );
$this->register_order_functionality( $container );
$this->register_columns( $container );

View file

@ -36,7 +36,7 @@ class WebhookModule implements ModuleInterface {
*
* @param ContainerInterface|null $container The Container.
*/
public function run( ContainerInterface $container ) {
public function run( ContainerInterface $container ): void {
add_action(
'rest_api_init',
static function () use ( $container ) {

View file

@ -36,7 +36,7 @@ class WooCommerceLoggingModule implements ModuleInterface {
*
* @param ContainerInterface $container The container.
*/
public function run( ContainerInterface $container ) {
public function run( ContainerInterface $container ): void {
}