original_string: public static function factory($module, $action)
      {
          $listApiToReport = self::getMapOfModuleActionsToReport();
          $api = $module . '.' . ucfirst($action);
  
          if (!array_key_exists($api, $listApiToReport)) {
              return null;
          }
  
          $klassName = $listApiToReport[$api];
  
          return new $klassName;
      }
code: public static function factory($module, $action)
      {
          $listApiToReport = self::getMapOfModuleActionsToReport();
          $api = $module . '.' . ucfirst($action);
  
          if (!array_key_exists($api, $listApiToReport)) {
              return null;
          }
  
          $klassName = $listApiToReport[$api];
  
          return new $klassName;
      }
code_tokens: public static function factory ( $ module , $ action ) { $ listApiToReport = self :: getMapOfModuleActionsToReport ( ) ; $ api = $ module . '.' . ucfirst ( $ action ) ; if ( ! array_key_exists ( $ api , $ listApiToReport ) ) { return null ; } $ klassName = $ listApiToReport [ $ api ] ; return new $ klassName ; }
docstring: Get an instance of a specific report belonging to the given module and having the given action.
  @param  string $module
  @param  string $action
  @return null|\Piwik\Plugin\Report
  @api
docstring_tokens: Get an instance of a specific report belonging to the given module and having the given action .