original_string: public function getByName($name) {
          $templates = $this->listAll();
          if (empty($templates['user']))
              return false;
          foreach ($templates['user'] as $template) {
              if ($template['name'] === $name) {
                  return $template['id'];
              }
          }
          return false;
      }
code: public function getByName($name) {
          $templates = $this->listAll();
          if (empty($templates['user']))
              return false;
          foreach ($templates['user'] as $template) {
              if ($template['name'] === $name) {
                  return $template['id'];
              }
          }
          return false;
      }
code_tokens: public function getByName ( $ name ) { $ templates = $ this -> listAll ( ) ; if ( empty ( $ templates [ 'user' ] ) ) return false ; foreach ( $ templates [ 'user' ] as $ template ) { if ( $ template [ 'name' ] === $ name ) { return $ template [ 'id' ] ; } } return false ; }
docstring: Get template id by Name
  
  @param type $name name of the template
  @return int|boolean $id template_id or false
docstring_tokens: Get template id by Name