@@ -94,7 +94,7 @@ public function install() {
9494 return true ;
9595 }
9696
97- private function sendSyncUrl (): void {
97+ private function sendSyncUrl () {
9898 if (!Configuration::get ($ this ->getConfigName ('SYNC_PROD_REVIEWS ' ))) {
9999 return ;
100100 }
@@ -366,7 +366,7 @@ private function sendInvites($ps_shop_id) {
366366 ) {
367367 $ this ->markInviteAsSent ($ order ['id_order ' ]);
368368 PrestaShopLogger::addLog (
369- sprintf ('Invitation was not created for order (%s) as customer did not consent ' , $ order ['id_order ' ]),
369+ sprintf ('Invitation was not created for order (%s) as customer did not consent ' , $ order ['id_order ' ])
370370 );
371371 return ;
372372 }
@@ -637,7 +637,7 @@ private function request(string $url, string $method, array $options = []): stri
637637 throw new RuntimeException (sprintf (
638638 'curl: (%s) %s ' ,
639639 curl_errno ($ ch ),
640- curl_error ($ ch ),
640+ curl_error ($ ch )
641641 ));
642642 }
643643 return $ response ;
@@ -678,7 +678,7 @@ private function hasConsent(int $order_id, int $ps_shop_id): bool {
678678 'id ' => Configuration::get ($ this ->getConfigName ('SHOP_ID ' ), null , null , $ ps_shop_id ),
679679 'code ' => Configuration::get ($ this ->getConfigName ('API_KEY ' ), null , null , $ ps_shop_id ),
680680 'orderNumber ' => $ order_id ,
681- ]),
681+ ])
682682 );
683683
684684 try {
@@ -687,7 +687,7 @@ private function hasConsent(int $order_id, int $ps_shop_id): bool {
687687 $ message = sprintf (
688688 'Checking consent for order %s failed: %s ' ,
689689 $ order_id ,
690- $ e ->getMessage (),
690+ $ e ->getMessage ()
691691 );
692692 PrestaShopLogger::addLog ($ message );
693693 return false ;
@@ -696,7 +696,7 @@ private function hasConsent(int $order_id, int $ps_shop_id): bool {
696696 return $ response_data ['has_consent ' ] ?? false ;
697697 }
698698
699- private function markInviteAsSent (int $ order_id ): void {
699+ private function markInviteAsSent (int $ order_id ) {
700700 $ db = Db::getInstance ();
701701 $ db ->execute ("UPDATE ` {$ this ->getTableName ('orders ' )}` SET {$ this ->getPluginColumnName ('invite_sent ' )} = 1 WHERE id_order = " . $ order_id );
702702 }
0 commit comments