original_string: public function getCurrentRemote()
      {
          /** @var $result CallResult */
          $result = $this->getGit()->{'remote'}($this->getRepositoryPath(), array(
               '-v'
          ));
          $result->assertSuccess(sprintf('Cannot remote "%s"', $this->getRepositoryPath()));
  
          $tmp = $result->getStdOut();
  
          preg_match_all('/([a-z]*)\h(.*)\h\((.*)\)/', $tmp, $matches);
  
          $retVar = array();
          foreach($matches[0] as $key => $value)
              $retVar[$matches[1][$key]][$matches[3][$key]] = $matches[2][$key];
  
          return $retVar;
      }
code: public function getCurrentRemote()
      {
          /** @var $result CallResult */
          $result = $this->getGit()->{'remote'}($this->getRepositoryPath(), array(
               '-v'
          ));
          $result->assertSuccess(sprintf('Cannot remote "%s"', $this->getRepositoryPath()));
  
          $tmp = $result->getStdOut();
  
          preg_match_all('/([a-z]*)\h(.*)\h\((.*)\)/', $tmp, $matches);
  
          $retVar = array();
          foreach($matches[0] as $key => $value)
              $retVar[$matches[1][$key]][$matches[3][$key]] = $matches[2][$key];
  
          return $retVar;
      }
code_tokens: public function getCurrentRemote ( ) { /** @var $result CallResult */ $ result = $ this -> getGit ( ) -> { 'remote' } ( $ this -> getRepositoryPath ( ) , array ( '-v' ) ) ; $ result -> assertSuccess ( sprintf ( 'Cannot remote "%s"' , $ this -> getRepositoryPath ( ) ) ) ; $ tmp = $ result -> getStdOut ( ) ; preg_match_all ( '/([a-z]*)\h(.*)\h\((.*)\)/' , $ tmp , $ matches ) ; $ retVar = array ( ) ; foreach ( $ matches [ 0 ] as $ key => $ value ) $ retVar [ $ matches [ 1 ] [ $ key ] ] [ $ matches [ 3 ] [ $ key ] ] = $ matches [ 2 ] [ $ key ] ; return $ retVar ; }
docstring: Returns the remote info
  
  @return  array
docstring_tokens: Returns the remote info