original_string: protected function getListShipping()
      {
          $id = $this->getParam(0);
  
          if (!isset($id)) {
              $list = $this->shipping->getList();
              $this->limitArray($list);
              return $list;
          }
  
          $method = $this->shipping->get($id);
  
          if (empty($method)) {
              $this->errorAndExit($this->text('Unexpected result'));
          }
  
          return array($method);
      }
code: protected function getListShipping()
      {
          $id = $this->getParam(0);
  
          if (!isset($id)) {
              $list = $this->shipping->getList();
              $this->limitArray($list);
              return $list;
          }
  
          $method = $this->shipping->get($id);
  
          if (empty($method)) {
              $this->errorAndExit($this->text('Unexpected result'));
          }
  
          return array($method);
      }
code_tokens: protected function getListShipping ( ) { $ id = $ this -> getParam ( 0 ) ; if ( ! isset ( $ id ) ) { $ list = $ this -> shipping -> getList ( ) ; $ this -> limitArray ( $ list ) ; return $ list ; } $ method = $ this -> shipping -> get ( $ id ) ; if ( empty ( $ method ) ) { $ this -> errorAndExit ( $ this -> text ( 'Unexpected result' ) ) ; } return array ( $ method ) ; }
docstring: Returns an array of shipping methods
  @return array
docstring_tokens: Returns an array of shipping methods