original_string: public function get_bit(string $id, bool $with_config = true): array
    {
      if (
        \bbn\str::is_uid($id) &&
        ($bit = $this->db->rselect($this->class_cfg['tables']['user_options_bits'], [], [
          $this->class_cfg['arch']['user_options_bits']['id'] => $id
        ]))
      ){
        if ( !empty($with_config) ){
          return $this->explode_bit_cfg($bit);
        }
        return $bit;
      }
      return [];
    }
code: public function get_bit(string $id, bool $with_config = true): array
    {
      if (
        \bbn\str::is_uid($id) &&
        ($bit = $this->db->rselect($this->class_cfg['tables']['user_options_bits'], [], [
          $this->class_cfg['arch']['user_options_bits']['id'] => $id
        ]))
      ){
        if ( !empty($with_config) ){
          return $this->explode_bit_cfg($bit);
        }
        return $bit;
      }
      return [];
    }
code_tokens: public function get_bit ( string $ id , bool $ with_config = true ) : array { if ( \ bbn \ str :: is_uid ( $ id ) && ( $ bit = $ this -> db -> rselect ( $ this -> class_cfg [ 'tables' ] [ 'user_options_bits' ] , [ ] , [ $ this -> class_cfg [ 'arch' ] [ 'user_options_bits' ] [ 'id' ] => $ id ] ) ) ) { if ( ! empty ( $ with_config ) ) { return $ this -> explode_bit_cfg ( $ bit ) ; } return $ bit ; } return [ ] ; }
docstring: Returns a single preference's bit
  
  @param string $id The bit's ID
  @return array
docstring_tokens: Returns a single preference s bit