original_string: public function runAssets($pageSlug, $isShortcode = false)
      {
          $cssList = $this->css;
          $jsList = $this->js;
  
          MbWPActionHook::addActionCallback($this->getActionEnqueue(), function () use ($pageSlug, $cssList, $jsList) {
              foreach ($cssList as $i => $css) {
                  wp_enqueue_style("style_mb_{$pageSlug}_{$i}", $css);
              }
  
              foreach ($jsList as $i => $js) {
                  wp_enqueue_script("script_mb_{$pageSlug}_{$i}", $js['path'], [], $js['version'], $js['footer']);
              }
          });
  
          if ($isShortcode) {
              MbWPActionHook::doAction($this->getActionEnqueue());
          }
      }
code: public function runAssets($pageSlug, $isShortcode = false)
      {
          $cssList = $this->css;
          $jsList = $this->js;
  
          MbWPActionHook::addActionCallback($this->getActionEnqueue(), function () use ($pageSlug, $cssList, $jsList) {
              foreach ($cssList as $i => $css) {
                  wp_enqueue_style("style_mb_{$pageSlug}_{$i}", $css);
              }
  
              foreach ($jsList as $i => $js) {
                  wp_enqueue_script("script_mb_{$pageSlug}_{$i}", $js['path'], [], $js['version'], $js['footer']);
              }
          });
  
          if ($isShortcode) {
              MbWPActionHook::doAction($this->getActionEnqueue());
          }
      }
code_tokens: public function runAssets ( $ pageSlug , $ isShortcode = false ) { $ cssList = $ this -> css ; $ jsList = $ this -> js ; MbWPActionHook :: addActionCallback ( $ this -> getActionEnqueue ( ) , function ( ) use ( $ pageSlug , $ cssList , $ jsList ) { foreach ( $ cssList as $ i => $ css ) { wp_enqueue_style ( "style_mb_{$pageSlug}_{$i}" , $ css ) ; } foreach ( $ jsList as $ i => $ js ) { wp_enqueue_script ( "script_mb_{$pageSlug}_{$i}" , $ js [ 'path' ] , [ ] , $ js [ 'version' ] , $ js [ 'footer' ] ) ; } } ) ; if ( $ isShortcode ) { MbWPActionHook :: doAction ( $ this -> getActionEnqueue ( ) ) ; } }
docstring: Send assets to wordpress
  
  @param string $pageSlug
  @param bool   $isShortcode
  
  @return void
docstring_tokens: Send assets to wordpress