original_string: public function repositories(string $code=''){
      $all = $this->options->full_soptions($this->options->from_code('PATHS', 'ide', 'appui'));      
      $cats = [];
      $r = [];
      foreach ( $all as $a ){
        if ( \defined($a['bbn_path']) ){
          $k = $a['bbn_path'] . '/' . ($a['code'] === '/' ? '' : $a['code']);
          if ( !isset($cats[$a['id_alias']]) ){
            unset($a['alias']['cfg']);
            $cats[$a['id_alias']] = $a['alias'];
          }
          unset($a['cfg']);
          unset($a['alias']);
          $r[$k] = $a;
          $r[$k]['title'] = $r[$k]['text'];
          $r[$k]['alias_code'] = $cats[$a['id_alias']]['code'];
          if ( !empty($cats[$a['id_alias']]['tabs']) ){
            $r[$k]['tabs'] = $cats[$a['id_alias']]['tabs'];
          }
          else if( !empty($cats[$a['id_alias']]['extensions']) ){
            $r[$k]['extensions'] = $cats[$a['id_alias']]['extensions'];
          }
          unset($r[$k]['alias']);
        }
      }
      if ( $code ){
        return isset($r[$code]) ? $r[$code] : false;
      }
      return $r;
    }
code: public function repositories(string $code=''){
      $all = $this->options->full_soptions($this->options->from_code('PATHS', 'ide', 'appui'));      
      $cats = [];
      $r = [];
      foreach ( $all as $a ){
        if ( \defined($a['bbn_path']) ){
          $k = $a['bbn_path'] . '/' . ($a['code'] === '/' ? '' : $a['code']);
          if ( !isset($cats[$a['id_alias']]) ){
            unset($a['alias']['cfg']);
            $cats[$a['id_alias']] = $a['alias'];
          }
          unset($a['cfg']);
          unset($a['alias']);
          $r[$k] = $a;
          $r[$k]['title'] = $r[$k]['text'];
          $r[$k]['alias_code'] = $cats[$a['id_alias']]['code'];
          if ( !empty($cats[$a['id_alias']]['tabs']) ){
            $r[$k]['tabs'] = $cats[$a['id_alias']]['tabs'];
          }
          else if( !empty($cats[$a['id_alias']]['extensions']) ){
            $r[$k]['extensions'] = $cats[$a['id_alias']]['extensions'];
          }
          unset($r[$k]['alias']);
        }
      }
      if ( $code ){
        return isset($r[$code]) ? $r[$code] : false;
      }
      return $r;
    }
code_tokens: public function repositories ( string $ code = '' ) { $ all = $ this -> options -> full_soptions ( $ this -> options -> from_code ( 'PATHS' , 'ide' , 'appui' ) ) ; $ cats = [ ] ; $ r = [ ] ; foreach ( $ all as $ a ) { if ( \ defined ( $ a [ 'bbn_path' ] ) ) { $ k = $ a [ 'bbn_path' ] . '/' . ( $ a [ 'code' ] === '/' ? '' : $ a [ 'code' ] ) ; if ( ! isset ( $ cats [ $ a [ 'id_alias' ] ] ) ) { unset ( $ a [ 'alias' ] [ 'cfg' ] ) ; $ cats [ $ a [ 'id_alias' ] ] = $ a [ 'alias' ] ; } unset ( $ a [ 'cfg' ] ) ; unset ( $ a [ 'alias' ] ) ; $ r [ $ k ] = $ a ; $ r [ $ k ] [ 'title' ] = $ r [ $ k ] [ 'text' ] ; $ r [ $ k ] [ 'alias_code' ] = $ cats [ $ a [ 'id_alias' ] ] [ 'code' ] ; if ( ! empty ( $ cats [ $ a [ 'id_alias' ] ] [ 'tabs' ] ) ) { $ r [ $ k ] [ 'tabs' ] = $ cats [ $ a [ 'id_alias' ] ] [ 'tabs' ] ; } else if ( ! empty ( $ cats [ $ a [ 'id_alias' ] ] [ 'extensions' ] ) ) { $ r [ $ k ] [ 'extensions' ] = $ cats [ $ a [ 'id_alias' ] ] [ 'extensions' ] ; } unset ( $ r [ $ k ] [ 'alias' ] ) ; } } if ( $ code ) { return isset ( $ r [ $ code ] ) ? $ r [ $ code ] : false ; } return $ r ; }
docstring: Makes the repositories' configurations.
  
  @param string $code The repository's name (code)
  @return array|bool
docstring_tokens: Makes the repositories configurations .