original_string: public function getStatus()
      {
          /** @var $result CallResult */
          $result = $this->getSvn()->{'status'}($this->getRepositoryPath(), array(
              '--xml'
          ));
          $result->assertSuccess(
              sprintf('Cannot retrieve status from "%s"', $this->getRepositoryPath())
          );
  
          $xml    = simplexml_load_string($result->getStdOut());
          if (!$xml) {
              throw new \RuntimeException(sprintf('Cannot read status XML for "%s"', $this->getRepositoryPath()));
          }
  
          $status = array();
          foreach ($xml->xpath('/status/target/entry') as $entry) {
              $status[]   = array(
                  'file'      => (string)$entry['path'],
                  'status'    => (string)$entry->{'wc-status'}['item']
              );
          }
          return $status;
      }
code: public function getStatus()
      {
          /** @var $result CallResult */
          $result = $this->getSvn()->{'status'}($this->getRepositoryPath(), array(
              '--xml'
          ));
          $result->assertSuccess(
              sprintf('Cannot retrieve status from "%s"', $this->getRepositoryPath())
          );
  
          $xml    = simplexml_load_string($result->getStdOut());
          if (!$xml) {
              throw new \RuntimeException(sprintf('Cannot read status XML for "%s"', $this->getRepositoryPath()));
          }
  
          $status = array();
          foreach ($xml->xpath('/status/target/entry') as $entry) {
              $status[]   = array(
                  'file'      => (string)$entry['path'],
                  'status'    => (string)$entry->{'wc-status'}['item']
              );
          }
          return $status;
      }
code_tokens: public function getStatus ( ) { /** @var $result CallResult */ $ result = $ this -> getSvn ( ) -> { 'status' } ( $ this -> getRepositoryPath ( ) , array ( '--xml' ) ) ; $ result -> assertSuccess ( sprintf ( 'Cannot retrieve status from "%s"' , $ this -> getRepositoryPath ( ) ) ) ; $ xml = simplexml_load_string ( $ result -> getStdOut ( ) ) ; if ( ! $ xml ) { throw new \ RuntimeException ( sprintf ( 'Cannot read status XML for "%s"' , $ this -> getRepositoryPath ( ) ) ) ; } $ status = array ( ) ; foreach ( $ xml -> xpath ( '/status/target/entry' ) as $ entry ) { $ status [ ] = array ( 'file' => ( string ) $ entry [ 'path' ] , 'status' => ( string ) $ entry -> { 'wc-status' } [ 'item' ] ) ; } return $ status ; }
docstring: Returns the current status of the working directory
  
  The returned array structure is
  array(
  'file'      => '...',
  'status'    => '...'
  )
  
  @return  array
  @throws  \RuntimeException
docstring_tokens: Returns the current status of the working directory