/**
* adminPanelNotification
*
* @since 3.0.0
*
* @return array
*/
public static function adminPanelNotification()
{
$output = [];
$reader = new Reader();
$aliasFilter = new Filter\Alias();
$version = $aliasFilter->sanitize(Language::get('version', '_package'));
/* load result */
$urlVersion = 'http://service.redaxscript.com/version/' . $version;
$urlNews = 'http://service.redaxscript.com/news/' . $version;
$resultVersion = $reader->loadJSON($urlVersion)->getArray();
$resultNews = $reader->loadJSON($urlNews)->getArray();
/* merge as needed */
if (is_array($resultVersion)) {
$output = array_merge_recursive($output, $resultVersion);
}
if (is_array($resultNews)) {
$output = array_merge_recursive($output, $resultNews);
}
return $output;
}