original_string: public function get(string $id): ?array
    {
      $mask = $this->db->rselect('bbn_notes_masks', [], ['id_note' => $id]);
      if ( $data = $this->notes->get($mask['id_note']) ){
        $data['default'] = $mask['def'];
        $data['id_type'] = $mask['id_type'];
        $data['type'] = $this->o->text($mask['id_type']);
        $data['name'] = $mask['name'];
        return $data;
      }
      return null;
    }
code: public function get(string $id): ?array
    {
      $mask = $this->db->rselect('bbn_notes_masks', [], ['id_note' => $id]);
      if ( $data = $this->notes->get($mask['id_note']) ){
        $data['default'] = $mask['def'];
        $data['id_type'] = $mask['id_type'];
        $data['type'] = $this->o->text($mask['id_type']);
        $data['name'] = $mask['name'];
        return $data;
      }
      return null;
    }
code_tokens: public function get ( string $ id ) : ? array { $ mask = $ this -> db -> rselect ( 'bbn_notes_masks' , [ ] , [ 'id_note' => $ id ] ) ; if ( $ data = $ this -> notes -> get ( $ mask [ 'id_note' ] ) ) { $ data [ 'default' ] = $ mask [ 'def' ] ; $ data [ 'id_type' ] = $ mask [ 'id_type' ] ; $ data [ 'type' ] = $ this -> o -> text ( $ mask [ 'id_type' ] ) ; $ data [ 'name' ] = $ mask [ 'name' ] ; return $ data ; } return null ; }
docstring: Gets the content of a mask based on the provided ID
  @param string $id
  @return array|null
docstring_tokens: Gets the content of a mask based on the provided ID