original_string: public function getTabs()
      {
          // If there is no active tab, then active the first.
          if ($this->tabs->filter(function ($tab) {
              return $tab['active'];
          })->isEmpty()) {
              $first = $this->tabs->first();
              $first['active'] = true;
  
              $this->tabs->offsetSet(0, $first);
          }
  
          return $this->tabs;
      }
code: public function getTabs()
      {
          // If there is no active tab, then active the first.
          if ($this->tabs->filter(function ($tab) {
              return $tab['active'];
          })->isEmpty()) {
              $first = $this->tabs->first();
              $first['active'] = true;
  
              $this->tabs->offsetSet(0, $first);
          }
  
          return $this->tabs;
      }
code_tokens: public function getTabs ( ) { // If there is no active tab, then active the first. if ( $ this -> tabs -> filter ( function ( $ tab ) { return $ tab [ 'active' ] ; } ) -> isEmpty ( ) ) { $ first = $ this -> tabs -> first ( ) ; $ first [ 'active' ] = true ; $ this -> tabs -> offsetSet ( 0 , $ first ) ; } return $ this -> tabs ; }
docstring: Get all tabs.
  
  @return Collection
docstring_tokens: Get all tabs .