original_string: public function isTranslable()
      {
          if ($this->getPath() === null) {
              $this->detectUrlDetails();
          }
  
          foreach ($this->config->getExcludedUrls() as $regex) {
              $escapedRegex = Text::escapeForRegex(Text::fullTrim($regex));
              $fullRegex = sprintf('/%s/', $escapedRegex);
  
              if (preg_match($fullRegex, $this->getPath()) === 1) {
                  return false;
              }
          }
  
          return true;
      }
code: public function isTranslable()
      {
          if ($this->getPath() === null) {
              $this->detectUrlDetails();
          }
  
          foreach ($this->config->getExcludedUrls() as $regex) {
              $escapedRegex = Text::escapeForRegex(Text::fullTrim($regex));
              $fullRegex = sprintf('/%s/', $escapedRegex);
  
              if (preg_match($fullRegex, $this->getPath()) === 1) {
                  return false;
              }
          }
  
          return true;
      }
code_tokens: public function isTranslable ( ) { if ( $ this -> getPath ( ) === null ) { $ this -> detectUrlDetails ( ) ; } foreach ( $ this -> config -> getExcludedUrls ( ) as $ regex ) { $ escapedRegex = Text :: escapeForRegex ( Text :: fullTrim ( $ regex ) ) ; $ fullRegex = sprintf ( '/%s/' , $ escapedRegex ) ; if ( preg_match ( $ fullRegex , $ this -> getPath ( ) ) === 1 ) { return false ; } } return true ; }
docstring: Check if we need to translate given URL
  
  @return bool
docstring_tokens: Check if we need to translate given URL