original_string: public function listTabbedPermissions()
      {
          $tabs = [];
  
          foreach ($this->listPermissions() as $permission) {
              $tab = $permission->tab ?? 'backend::lang.form.undefined_tab';
  
              if (!array_key_exists($tab, $tabs)) {
                  $tabs[$tab] = [];
              }
  
              $tabs[$tab][] = $permission;
          }
  
          return $tabs;
      }
code: public function listTabbedPermissions()
      {
          $tabs = [];
  
          foreach ($this->listPermissions() as $permission) {
              $tab = $permission->tab ?? 'backend::lang.form.undefined_tab';
  
              if (!array_key_exists($tab, $tabs)) {
                  $tabs[$tab] = [];
              }
  
              $tabs[$tab][] = $permission;
          }
  
          return $tabs;
      }
code_tokens: public function listTabbedPermissions ( ) { $ tabs = [ ] ; foreach ( $ this -> listPermissions ( ) as $ permission ) { $ tab = $ permission -> tab ?? 'backend::lang.form.undefined_tab' ; if ( ! array_key_exists ( $ tab , $ tabs ) ) { $ tabs [ $ tab ] = [ ] ; } $ tabs [ $ tab ] [ ] = $ permission ; } return $ tabs ; }
docstring: Returns an array of registered permissions, grouped by tabs.
  @return array
docstring_tokens: Returns an array of registered permissions grouped by tabs .