original_string: protected function prepareMethodsCheckout(array &$list)
      {
          foreach ($list as &$item) {
              if (isset($item['module']) && isset($item['image'])) {
                  $path = GC_DIR_MODULE . "/{$item['module']}/{$item['image']}";
                  $item['image'] = $this->url(gplcart_path_relative($path));
              }
          }
      }
code: protected function prepareMethodsCheckout(array &$list)
      {
          foreach ($list as &$item) {
              if (isset($item['module']) && isset($item['image'])) {
                  $path = GC_DIR_MODULE . "/{$item['module']}/{$item['image']}";
                  $item['image'] = $this->url(gplcart_path_relative($path));
              }
          }
      }
code_tokens: protected function prepareMethodsCheckout ( array & $ list ) { foreach ( $ list as & $ item ) { if ( isset ( $ item [ 'module' ] ) && isset ( $ item [ 'image' ] ) ) { $ path = GC_DIR_MODULE . "/{$item['module']}/{$item['image']}" ; $ item [ 'image' ] = $ this -> url ( gplcart_path_relative ( $ path ) ) ; } } }
docstring: Prepare payment and shipping methods
  @param array $list
docstring_tokens: Prepare payment and shipping methods