original_string: public function getNamespaceDefinitions(): string
      {
          $script = 'var Frontend = {};';
          $script .= 'var App = { Controllers: {}, Components: {}, Lib: {} };';
          $tpl = 'App.Controllers.%s = {};';
          foreach ($this->_pluginJsNamespaces as $pluginName) {
              $script .= sprintf($tpl, $pluginName);
          }
  
          return $this->Html->scriptBlock($script);
      }
code: public function getNamespaceDefinitions(): string
      {
          $script = 'var Frontend = {};';
          $script .= 'var App = { Controllers: {}, Components: {}, Lib: {} };';
          $tpl = 'App.Controllers.%s = {};';
          foreach ($this->_pluginJsNamespaces as $pluginName) {
              $script .= sprintf($tpl, $pluginName);
          }
  
          return $this->Html->scriptBlock($script);
      }
code_tokens: public function getNamespaceDefinitions ( ) : string { $ script = 'var Frontend = {};' ; $ script .= 'var App = { Controllers: {}, Components: {}, Lib: {} };' ; $ tpl = 'App.Controllers.%s = {};' ; foreach ( $ this -> _pluginJsNamespaces as $ pluginName ) { $ script .= sprintf ( $ tpl , $ pluginName ) ; } return $ this -> Html -> scriptBlock ( $ script ) ; }
docstring: Returns a script block containing namespace definitions for plugin controllers.
  
  @return string
docstring_tokens: Returns a script block containing namespace definitions for plugin controllers .