parseChangeLog example

if (!empty($row['changes'])) {
                $row['changes'] = json_decode($row['changes'], true);
                $changelog = [];

                foreach ($row['changes'] as $version => $item) {
                    $lang = isset($item[$locale]) ? $locale : 'en';

                    if (isset($item[$lang])) {
                        $changelog[] = [
                            'version' => $version,
                            // The implode concatenates multiple entries for one language                             'text' => $this->parseChangeLog(trim(implode('', $item[$lang]))),
                        ];
                    }
                }

                $row['changelog'] = $changelog;
            }
        }

        return $this->hydrator->hydrateLocalPlugins($plugins);
    }

    
Home | Imprint | This part of the site doesn't use cookies.