original_string: protected function parsePath($path)
      {
          $path = ltrim($path, '/');
          foreach ($this->combinedResources as $resource) {
              if (strpos($path, $resource) !== false) {
                  list($part1, $part2) = explode($resource, $path, 2);
                  $parts = array_merge(explode('/', $part1), array($resource), explode('/', $part2));
                  return array_values(array_filter($parts));
              }
          }
          return explode('/', $path);
      }
code: protected function parsePath($path)
      {
          $path = ltrim($path, '/');
          foreach ($this->combinedResources as $resource) {
              if (strpos($path, $resource) !== false) {
                  list($part1, $part2) = explode($resource, $path, 2);
                  $parts = array_merge(explode('/', $part1), array($resource), explode('/', $part2));
                  return array_values(array_filter($parts));
              }
          }
          return explode('/', $path);
      }
code_tokens: protected function parsePath ( $ path ) { $ path = ltrim ( $ path , '/' ) ; foreach ( $ this -> combinedResources as $ resource ) { if ( strpos ( $ path , $ resource ) !== false ) { list ( $ part1 , $ part2 ) = explode ( $ resource , $ path , 2 ) ; $ parts = array_merge ( explode ( '/' , $ part1 ) , array ( $ resource ) , explode ( '/' , $ part2 ) ) ; return array_values ( array_filter ( $ parts ) ) ; } } return explode ( '/' , $ path ) ; }
docstring: Parse path to resource names, actions and ids
  
  @param string $path
  @return array
docstring_tokens: Parse path to resource names actions and ids