original_string: public function currentRequestAllUrls()
      {
          $urls = $this->allUrls;
  
          if ($urls === null) {
              if ($this->getPath() === null) {
                  $this->detectUrlDetails();
              }
  
              $urls = [];
              $current = $this->getHost() . $this->config->getPathPrefix() . $this->getPath();
              if (!is_null($this->getQuery())) {
                  $current .= '?'. $this->getQuery();
              }
              $urls[$this->translate->getDefault()] = $current;
              foreach ($this->translate->getLanguages() as $language) {
                  $current = $this->getHost() . $this->config->getPathPrefix() . '/' . $language . $this->getPath();
                  if (!is_null($this->getQuery())) {
                      $current .= '?'. $this->getQuery();
                  }
                  $urls[$language] = $current;
              }
  
              $this->allUrls = $urls;
          }
  
          return $urls;
      }
code: public function currentRequestAllUrls()
      {
          $urls = $this->allUrls;
  
          if ($urls === null) {
              if ($this->getPath() === null) {
                  $this->detectUrlDetails();
              }
  
              $urls = [];
              $current = $this->getHost() . $this->config->getPathPrefix() . $this->getPath();
              if (!is_null($this->getQuery())) {
                  $current .= '?'. $this->getQuery();
              }
              $urls[$this->translate->getDefault()] = $current;
              foreach ($this->translate->getLanguages() as $language) {
                  $current = $this->getHost() . $this->config->getPathPrefix() . '/' . $language . $this->getPath();
                  if (!is_null($this->getQuery())) {
                      $current .= '?'. $this->getQuery();
                  }
                  $urls[$language] = $current;
              }
  
              $this->allUrls = $urls;
          }
  
          return $urls;
      }
code_tokens: public function currentRequestAllUrls ( ) { $ urls = $ this -> allUrls ; if ( $ urls === null ) { if ( $ this -> getPath ( ) === null ) { $ this -> detectUrlDetails ( ) ; } $ urls = [ ] ; $ current = $ this -> getHost ( ) . $ this -> config -> getPathPrefix ( ) . $ this -> getPath ( ) ; if ( ! is_null ( $ this -> getQuery ( ) ) ) { $ current .= '?' . $ this -> getQuery ( ) ; } $ urls [ $ this -> translate -> getDefault ( ) ] = $ current ; foreach ( $ this -> translate -> getLanguages ( ) as $ language ) { $ current = $ this -> getHost ( ) . $ this -> config -> getPathPrefix ( ) . '/' . $ language . $ this -> getPath ( ) ; if ( ! is_null ( $ this -> getQuery ( ) ) ) { $ current .= '?' . $ this -> getQuery ( ) ; } $ urls [ $ language ] = $ current ; } $ this -> allUrls = $ urls ; } return $ urls ; }
docstring: Returns array with all possible URL for current Request
  
  @return array
docstring_tokens: Returns array with all possible URL for current Request