original_string: public function registerMailTemplates(array $definitions)
      {
          if (!$this->registeredTemplates) {
              $this->registeredTemplates = [];
          }
  
          // Prior sytax where (key) code => (value) description
          if (!isset($definitions[0])) {
              $definitions = array_keys($definitions);
          }
  
          $definitions = array_combine($definitions, $definitions);
  
          $this->registeredTemplates = $definitions + $this->registeredTemplates;
      }
code: public function registerMailTemplates(array $definitions)
      {
          if (!$this->registeredTemplates) {
              $this->registeredTemplates = [];
          }
  
          // Prior sytax where (key) code => (value) description
          if (!isset($definitions[0])) {
              $definitions = array_keys($definitions);
          }
  
          $definitions = array_combine($definitions, $definitions);
  
          $this->registeredTemplates = $definitions + $this->registeredTemplates;
      }
code_tokens: public function registerMailTemplates ( array $ definitions ) { if ( ! $ this -> registeredTemplates ) { $ this -> registeredTemplates = [ ] ; } // Prior sytax where (key) code => (value) description if ( ! isset ( $ definitions [ 0 ] ) ) { $ definitions = array_keys ( $ definitions ) ; } $ definitions = array_combine ( $ definitions , $ definitions ) ; $ this -> registeredTemplates = $ definitions + $ this -> registeredTemplates ; }
docstring: Registers mail views and manageable templates.
docstring_tokens: Registers mail views and manageable templates .