Skip to content

Commit

Permalink
Code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rekhyt committed Apr 4, 2024
1 parent aabbf30 commit 79d09fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Backend/SgateShopgatePlugin/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5340,9 +5340,9 @@ protected function createItems($limit = null, $offset = null, array $uids = arra

$articles = $this->eventManager->filter('sgate.export.items.createItems.article_load_after', $list, ['data' => $list]);
$logMessage = 'Articles after filter: ' . $this->getHelper(self::HELPER_DATASTRUCTURE)->jsonEncode(array_map(function ($article) {
if ($article['id'] == 5568) {
$this->log('Found it (filtered)! ' . $this->getHelper(self::HELPER_DATASTRUCTURE)->jsonEncode($article), ShopgateLogger::LOGTYPE_ACCESS);
}
if ($article['id'] == 5568) {
$this->log('Found it (filtered)! ' . $this->getHelper(self::HELPER_DATASTRUCTURE)->jsonEncode($article), ShopgateLogger::LOGTYPE_ACCESS);
}
return ['id' => $article['id'], 'mainDetailId' => $article['mainDetailId']];
}, $articles));
$this->log($logMessage, ShopgateLogger::LOGTYPE_ACCESS);
Expand Down

0 comments on commit 79d09fa

Please sign in to comment.