original_string: protected function setClasses()
      {
          $classes = array();
  
          if (isset($this->current_route['pattern'])) {
              $pattern = $this->current_route['pattern'] ? $this->current_route['pattern'] : 'front';
              foreach (explode('/', $pattern) as $part) {
                  if (ctype_alpha($part)) {
                      $classes[] = "gc-$part";
                  }
              }
          }
  
          if ($this->is_maintenance) {
              $classes[] = "gc-maintenance";
          }
  
          $this->data['_classes'] = $classes;
      }
code: protected function setClasses()
      {
          $classes = array();
  
          if (isset($this->current_route['pattern'])) {
              $pattern = $this->current_route['pattern'] ? $this->current_route['pattern'] : 'front';
              foreach (explode('/', $pattern) as $part) {
                  if (ctype_alpha($part)) {
                      $classes[] = "gc-$part";
                  }
              }
          }
  
          if ($this->is_maintenance) {
              $classes[] = "gc-maintenance";
          }
  
          $this->data['_classes'] = $classes;
      }
code_tokens: protected function setClasses ( ) { $ classes = array ( ) ; if ( isset ( $ this -> current_route [ 'pattern' ] ) ) { $ pattern = $ this -> current_route [ 'pattern' ] ? $ this -> current_route [ 'pattern' ] : 'front' ; foreach ( explode ( '/' , $ pattern ) as $ part ) { if ( ctype_alpha ( $ part ) ) { $ classes [ ] = "gc-$part" ; } } } if ( $ this -> is_maintenance ) { $ classes [ ] = "gc-maintenance" ; } $ this -> data [ '_classes' ] = $ classes ; }
docstring: Sets an array of body CSS classes
docstring_tokens: Sets an array of body CSS classes