original_string: private static function parseDefinitions(array $definitions): array
      {
          if (\count($definitions) === 0) {
              return $definitions;
          }
  
          return \array_map(
              function ($definition) {
                  if (\is_array($definition)) {
                      return $definition;
                  }
  
                  return self::loadDefinitionsFromPath($definition);
              },
              $definitions
          );
      }
code: private static function parseDefinitions(array $definitions): array
      {
          if (\count($definitions) === 0) {
              return $definitions;
          }
  
          return \array_map(
              function ($definition) {
                  if (\is_array($definition)) {
                      return $definition;
                  }
  
                  return self::loadDefinitionsFromPath($definition);
              },
              $definitions
          );
      }
code_tokens: private static function parseDefinitions ( array $ definitions ) : array { if ( \ count ( $ definitions ) === 0 ) { return $ definitions ; } return \ array_map ( function ( $ definition ) { if ( \ is_array ( $ definition ) ) { return $ definition ; } return self :: loadDefinitionsFromPath ( $ definition ) ; } , $ definitions ) ; }
docstring: Parse definitions.
  
  @param array $definitions
  
  @throws \RuntimeException
  
  @return array
docstring_tokens: Parse definitions .