original_string: private function getResourcePathFromClassName($class)
      {
          $reflection = new \ReflectionClass($class);
  
          if (is_dir($dir = dirname($reflection->getFileName()).'/Resources/contao')) {
              return $dir;
          }
  
          return null;
      }
code: private function getResourcePathFromClassName($class)
      {
          $reflection = new \ReflectionClass($class);
  
          if (is_dir($dir = dirname($reflection->getFileName()).'/Resources/contao')) {
              return $dir;
          }
  
          return null;
      }
code_tokens: private function getResourcePathFromClassName ( $ class ) { $ reflection = new \ ReflectionClass ( $ class ) ; if ( is_dir ( $ dir = dirname ( $ reflection -> getFileName ( ) ) . '/Resources/contao' ) ) { return $ dir ; } return null ; }
docstring: Returns the resources path from the class name.
  
  @param string $class The class name of the bundle.
  
  @return string|null
docstring_tokens: Returns the resources path from the class name .