controllers/commands/Shipping.php
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);
    }
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);
    }
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 ) ; }
Returns an array of shipping methods
@return array
Returns an array of shipping methods