code: protected function registerAssets($objSettings)
      {
          if (!$objSettings) {
              return;
          }
  
          // Include CSS.
          $arrCss = $objSettings->get('additionalCss');
  
          foreach ((array) $arrCss as $arrFile) {
              if ($arrFile['published']) {
                  $GLOBALS['TL_CSS'][md5($arrFile['file'])] = $arrFile['file'];
              }
          }
  
          // Include JS.
          $arrJs = $objSettings->get('additionalJs');
  
          foreach ((array) $arrJs as $arrFile) {
              if ($arrFile['published']) {
                  $GLOBALS['TL_JAVASCRIPT'][md5($arrFile['file'])] = $arrFile['file'];
              }
          }
      }
docs: Register the assets in Contao.
  
  @param ICollection|null $objSettings The render settings to use.
  
  @return void
  
  @SuppressWarnings(PHPMD.Superglobals)
  @SuppressWarnings(PHPMD.CamelCaseVariableName)