original_string: protected function exportNotice($notice)
      {
          $docDirectoryPath = strtr($this->getDocumentationDirectory(true), [DIRECTORY_SEPARATOR => '/']).'/';
  
          return preg_replace_callback('/\[([^\]]*?)\]\(([^\)]*?)\)/', function($match) use ($docDirectoryPath) {
              return '['.$match[1].']('
                     .(preg_match('%^https?\:\/\/%i', $match[2]) ? '' : $docDirectoryPath)
                     .$match[2].')';
          }, $notice);
      }
code: protected function exportNotice($notice)
      {
          $docDirectoryPath = strtr($this->getDocumentationDirectory(true), [DIRECTORY_SEPARATOR => '/']).'/';
  
          return preg_replace_callback('/\[([^\]]*?)\]\(([^\)]*?)\)/', function($match) use ($docDirectoryPath) {
              return '['.$match[1].']('
                     .(preg_match('%^https?\:\/\/%i', $match[2]) ? '' : $docDirectoryPath)
                     .$match[2].')';
          }, $notice);
      }
code_tokens: protected function exportNotice ( $ notice ) { $ docDirectoryPath = strtr ( $ this -> getDocumentationDirectory ( true ) , [ DIRECTORY_SEPARATOR => '/' ] ) . '/' ; return preg_replace_callback ( '/\[([^\]]*?)\]\(([^\)]*?)\)/' , function ( $ match ) use ( $ docDirectoryPath ) { return '[' . $ match [ 1 ] . '](' . ( preg_match ( '%^https?\:\/\/%i' , $ match [ 2 ] ) ? '' : $ docDirectoryPath ) . $ match [ 2 ] . ')' ; } , $ notice ) ; }
docstring: Export a notice
  
  @param $notice
  
  @return mixed
docstring_tokens: Export a notice